archinstall/archinstall/locales
Anton Hvornum a61db89a7f
moved the ur language due to #1048
2022-03-28 16:55:11 +02:00
..
de/LC_MESSAGES Updated locales 2022-03-28 16:46:23 +02:00
en/LC_MESSAGES Updated locales 2022-03-28 16:46:23 +02:00
es/LC_MESSAGES Updated locales 2022-03-28 16:46:23 +02:00
fr/LC_MESSAGES Updated locales 2022-03-28 16:46:23 +02:00
nl/LC_MESSAGES Updated locales 2022-03-28 16:46:23 +02:00
sv/LC_MESSAGES Updated locales 2022-03-28 16:46:23 +02:00
ur_issue_1048/LC_MESSAGES moved the ur language due to #1048 2022-03-28 16:55:11 +02:00
README.md Update nationalization (#944) 2022-02-06 11:30:26 +01:00
base.pot Updating language file 2022-03-28 16:49:38 +02:00
languages.json Provide nationalization (#893) 2022-02-05 00:27:29 +01:00
locales_generator.sh Added swedish locale (#965) 2022-02-12 11:28:18 +01:00

README.md

Nationalization

Archinstall supports multiple languages, which depend on translations coming from the community :)

New languages can be added simply by creating a new folder with the proper language abbrevation (see list languages.json if unsure).
Run the following command to create a new template for a language

    mkdir -p <abbr>/LC_MESSAGES/ && touch <abbr>/LC_MESSAGES/base.po

After that run the script ./locales_generator.sh it will automatically populate the new base.po file with the strings that need to be translated into the new language.
For example the base.po might contain something like the following now

#: lib/user_interaction.py:82
msgid "Do you really want to abort?"
msgstr ""

The msgid is the identifier of the string in the code as well as the default text to be displayed, meaning that if no translation is provided for a language then this is the text that is going to be shown.

To perform translations for a language this file can be edited manually or the neat poedit can be used (https://poedit.net/). If editing the file manually, write the translation in the msgstr part

#: lib/user_interaction.py:82
msgid "Do you really want to abort?"
msgstr "Wollen sie wirklich abbrechen?"

After the translations have been written, run the script once more ./locales_generator.sh and it will auto-generate the base.mo file with the included translations. After that you're all ready to go and enjoy Archinstall in the new language :)