Permalink
Browse files

EZP-29961: Add preferred language value to User Preferences (ezsystem…

  • Loading branch information...
DominikaK committed Feb 7, 2019
1 parent 41356b8 commit cb1185bad100266057683bc1a689f2dc622e02d7
Showing with 21 additions and 3 deletions.
  1. +21 −3 docs/guide/internationalization.md
@@ -268,20 +268,38 @@ You can also assign a Default content availability flag to Content Types (availa

Note that if a language is not provided in the list of prioritized languages and it is not the Content item's first language, the URL alias for this content in this language will not be generated.

## Translating the UI of eZ Platform
## Back Office languages

### Installing new UI translations

If you want to install a new language in your project, install the corresponding package.

For example, if you want to translate your application into French, run:

`composer require ezplatform-i18n/ezplatform-i18n-fr_fr`
`composer require ezplatform-i18n/ezplatform-i18n-fr_fr`

and then clear the cache.

Now you can reload your eZ Platform back end which will be translated in French (if your browser is configured to `fr_FR`.)

##### UI translation
!!! tip

If you do not want to add a bundle with Back Office translation, you can manually add the necessary xliff files.
Add the language to an array under `ezsettings.default.user_preferences.additional_translations`, for example:

`ezsettings.default.user_preferences.additional_translations: ['pl_PL', 'fr_FR']`

Then, run `composer run post-update-cmd` and clear the cache.

##### Contributing Back Office translations

To learn how to contribute to a translation, see [Contributing translations](../community_resources/translations.md).

### Choosing language of the Back Office

Once you have language packages installed, you can switch the language of the Back Office
in the User Settings menu.

Otherwise, the language will be selected based on the browser language.
If you do not have a language defined in the browser, the language will be selected
based on `parameters.locale_fallback` in `default_parameters.yml`

0 comments on commit cb1185b

Please sign in to comment.