mopro/translation-ui-bundle

A different UI for the JMSTranslationBundle

0.2.0 2016-02-09 11:52 UTC

This package is not auto-updated.

Last update: 2024-12-13 11:33:37 UTC


README

A different UI for the JMSTranslationBundle.

Installation

  • Install the bundle through composer

      composer require mopro/translation-ui-bundle
      php app/console assets:install
    
  • Instanciate the bundle for the dev environment

      if ('dev' === $this->getEnvironment()) {
          $bundles[] = new Mopro\Bundle\TranslationUIBundle\MoproTranslationUIBundle();
      }
    
  • Import routing in your app/config/routing_dev.yml file

      mopro_translation_ui:
          resource: "@MoproTranslationUIBundle/Controller/"
          type:     annotation
    

(The routing will conflict with the existing JMSTranslation UI, so remove the routes imports if needed)

Usage

Go to http://your.website/app_dev.php/_trans and start translating.

Development

This bundle relies on Javascript. It uses all the cool things we have in 2016 (see package.json file for a list of dependencies). If you want to develop, make sure you have at least node and npm installed. Then, you will need to run these command:

npm install -g webpack
npm install

In order to generate the javascript file, you will need to run the webpack command.

Remember to symlink your assets by using the php app/console assets:install --symlink command

LICENSE

See LICENSE file.