... | ... | @@ -19,9 +19,19 @@ When a language reaches 20%, you can make a request on the [translation](/dev/tr |
|
|
|
|
|
Once the language is added, announce it on the [translation mattermost channel](https://chat.civicrm.org/civicrm/channels/translation) and also consider doing a blog post about it (involving/thanking the translators).
|
|
|
|
|
|
Technical changes:
|
|
|
|
|
|
* Add the language to [distributed_languages.txt](https://lab.civicrm.org/dev/translation/-/tree/master/conf).
|
|
|
##### Technical changes
|
|
|
|
|
|
* Create the new translation in transifex.
|
|
|
* If a language variant (e.g. fr_CA vs fr_FR), do an initial sync from an existing variant (see the script under Regional Translations below).
|
|
|
* Add the language to [conf/distributed_languages.txt](https://lab.civicrm.org/dev/translation/-/blob/master/conf/distributed_languages.txt).
|
|
|
* Wait a day until the language appears in the daily l10n tarball.
|
|
|
* Create a PR against core to update the relevant files:
|
|
|
* Update [xml/templates/languages.tpl](https://github.com/civicrm/civicrm-core/blob/master/xml/templates/languages.tpl)
|
|
|
* Run bin/regen.sh. This will autoupdate two more files:
|
|
|
* install/langs.php
|
|
|
* sql/civicrm_generated.mysql
|
|
|
* Add an upgrade script. Here is an [example for nl_BE](https://github.com/civicrm/civicrm-core/blob/b5f4c7d9b4d5aa77fe1237bcc080543e3c3efff8/CRM/Upgrade/Incremental/php/FiveTwentySix.php#L97-L116).
|
|
|
* In sites that have installed the latest l10n tarball but not upgraded core, the language will still be available but will appear as just the language code in dropdowns, instead of the full name.
|
|
|
* Spark:
|
|
|
* Add the language to the [list of available languages](https://civicrm.org/civicrm/admin/options/language_20190127170219?reset=1)
|
|
|
* Add the language to the server locales, otherwise native-gettext will not work: [aegir role](https://lab.civicrm.org/infra/ops/-/blob/master/ansible/roles/aegir/tasks/main.yml#L241) - look for the `aegir-locales` tag.
|
... | ... | |