How to change Localization / Translations?
Andrea
Last Update hace 2 años
By using this feature, you can significantly speed up the process of creating a multilingual website.
Select Settings, from side menu. Go to tab Localization.

You can configure the following:
- Default Language, Set the default language if you have a multilingual application.
- Translation Type, If you are doing the translations yourself, change it to "Custom"
- Languages Enabled, Choose the languages of the application that you want to enable.
The .po and .mo language files are used for translation purposes. The .po file allows for creating new translations. Files with the .po extension contain the application's content that can be translated. The .mo files are generated after translating (i.e., editing the .po file). We recommend using the application https://poedit.net/ for performing the translation.
To edit language files follow these steps:
1) NEW CUSTOM TRANSLATION: Copy the file locale/lang_code/LC_MESSAGES/default.po to your computer and rename it to custom.po
or
1) EXISTING CUSTOM TRANSLATION: Execute this command msgmerge --update locale/lang_code/LC_MESSAGES/custom.po locale/svt.pot to merge the new strings with your existing custom.po translation file
2) Edit the file custom.po with a text editor or with a POEditor like this one
3) Compile and generate the file custom.mo with the POEditor or with this command msgfmt custom.po --output-file=custom.mo
4) Copy the files custom.po and custom.mo to locale/lang_code/LC_MESSAGES/
5) Change Translation Type to Custom