Download the PHP package ladela/personal-translations-widget-bundle without Composer
On this page you can find all versions of the php package ladela/personal-translations-widget-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ladela/personal-translations-widget-bundle
More information about ladela/personal-translations-widget-bundle
Files in ladela/personal-translations-widget-bundle
Download ladela/personal-translations-widget-bundle
More information about ladela/personal-translations-widget-bundle
Files in ladela/personal-translations-widget-bundle
Vendor ladela
Package personal-translations-widget-bundle
Short Description Adds translations widget based on Personal translations
License MIT
Homepage https://github.com/rodgermd/PersonalTranslationsWidget.git
Package personal-translations-widget-bundle
Short Description Adds translations widget based on Personal translations
License MIT
Homepage https://github.com/rodgermd/PersonalTranslationsWidget.git
Please rate this library. Is it a good library?
Informations about the package personal-translations-widget-bundle
Installation
Add to composer.json:
"ladela/personal-translations-widget-bundle" : "dev-master"
Add to AppKernel.php:
To edit template, copy this file:
Resources/views/Form/translatable_field_widget.html.twig located in the bundle directory
to
app/Resources/PersonalTranslationsWidgetBundle/views/Form/translatable_field_widget.html.twig located in the project root
Languages configuration
Getter service
The service should have a tag languages_getter and return array of languages: code = > name
or use languages as array:
personal_translations_widget:
languages:
en: English
es: Spanish
Sonata Admin sample
protected function configureFormFields(FormMapper $form)
{
$subject = $form->getAdmin()->getSubject();
$form
->add('translations', 'translatable_field', array(
'personal_translation' => 'Site\BaseBundle\Entity\AccommodationTranslation',
'fields' => array('title', 'description', 'secondary_text'),
'widgets' => array('title' => 'text', 'description' => 'textarea', 'secondary_text' => 'textarea'),
'field_options' => array('secondary_text' => array('attr' => array('class' => 'text-field')))
))
}
All versions of personal-translations-widget-bundle with dependencies
PHP Build Version
Package Version
Requires
symfony/symfony Version
>=3.2.0
stof/doctrine-extensions-bundle Version *
twig/extensions Version @stable
stof/doctrine-extensions-bundle Version *
twig/extensions Version @stable
The package ladela/personal-translations-widget-bundle contains the following files
Loading the files please wait ....