Download the PHP package nercury/translation-editor-bundle without Composer
On this page you can find all versions of the php package nercury/translation-editor-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nercury/translation-editor-bundle
More information about nercury/translation-editor-bundle
Files in nercury/translation-editor-bundle
Package translation-editor-bundle
Short Description Translation editor form. Defines a form type to edit localized object translations.
License Apache
Homepage https://github.com/Nercury/TranslationEditorBundle
Informations about the package translation-editor-bundle
What it is
It is a translation editor form.
Using it with array
Example data:
Form requires that you create a form type for inner item, in this case it is named "TestType":
Form type is implemented in similar fassion as a collection. Use "type" to specify inner type form. Use "locale_field_name" to override locale field name (default is "lang").
Using it with a collection and entities
Form type also works with database translations defined in this or smilar table structure:
It follows the same style the old Doctrine1 behaviours used to do it.
Main Product entity must have a doctrine collection of translations, and "getTranslations()" method, and you should build your form using its name.
It will find other stuff in Doctrine class metadata.
Form theme
You can override form theme by overriding "fields.html.twig" file.
Javascript
Example
Example doctrine entity: