Translations
Biblioteca is currently available in French and English.
You can easily add new locales by following these steps:
Adding a new translation
Add the language to the forms
Edit UserType.php and ProfileType.php:
- UserType.php
- ProfileType.php
->add('language', ChoiceType::class, [
'choices' => [
'English' => 'en',
'French' => 'fr',
'name' => 'iso_code',
],
])Create translation files
Create new files for each category in the translations folder:
- AutocompleteBundle.en.yaml
- AutocompleteBundle.iso_code.yaml
- KnpPaginatorBundle.en.yaml
- KnpPaginatorBundle.iso_code.yaml
- messages+intl-icu.en.yaml
- messages+intl-icu.iso_code.yaml
Translate the files
Open the files and translate them.
If you see missing translations or untranslated strings in the app, please report them so we can add them to the default translations.