Translations
Biblioteca is currently available in French and English.
You can easily add new locales by following these steps:
Creating a new theme
-
Add your language in the UserType and the ProfileType files:
Directorysrc
DirectoryForm
- UserType.php
- ProfileType.php
->add('language', ChoiceType::class, ['choices' => ['English' => 'en','French' => 'fr','name' => 'iso_code',],]) -
Create new files for each category in the translations folder:
Directorytranslations
- 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
- …
-
Open the files and translate them