-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathREADME.i18n
30 lines (21 loc) · 897 Bytes
/
README.i18n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# How to add a translation for Emeus
In order to add a translation, you need to take the `emeus.pot` file and
turn it into the `.po` file for your locale; the most direct way is to
just copy it, e.g.
# For the Italian (it) translation
cp po/emeus.pot po/it.po
In order for the build to pick the new file up, you'll have to modify
the `po/meson.build` file, and add your language to the list of available
ones, for instance:
langs = [
'en_GB',
+ 'it'',
]
Now edit the newly added translation file and commit it to the repository
when done.
# Regenerating the POT file
Run the `ninja emeus-pot` command, which will re-scan all the files
listed in the POTFILES file for translatable strings.
# Updating existing translations
Run the `ninja emeus-update-po` command, which will update the PO files
for all the listed languages with the contents of the POT file.