Add explicit language list to update_messages.sh
This commit is contained in:
+2
-3
@@ -7,10 +7,9 @@ You only need `gettext` and a text editor, you can optionally use a graphical ed
|
||||
|
||||
# Adding a new language
|
||||
|
||||
* Edit the `tools/update_messages.sh`, adding the 2 letter [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code to the `LANGS` variable.
|
||||
* Run `tools/update_messages.sh LANG` where LANG is the 2 letter [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code, this will create files in the `locale` directory for the new language. Fill in the fields, `git add` the files, commit and file a pull request.
|
||||
* (optional) Edit the `tools/check_po.py`, add to the `countries` mapping a value with the language code on the left and the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) code of a flag on the right. The flag will only be used for continuous integration messages.
|
||||
* Run the `tools/update_messages.sh` script, this will create files in the `locale` directory for the new language. Fill in the fields, `git add` the files, commit and file a pull request.
|
||||
|
||||
# Editing existing translations
|
||||
|
||||
Run the `tools/update_messages.sh` script, this will add the lines for the missing translations, edit your language, then `git add` the files for the language you just edited, commit and file a pull request.
|
||||
Run the `tools/update_messages.sh [lang...]` script with the list of languages you wish to edit, this will add the lines for the missing translations, edit them, then `git add` the files for the language you just edited, commit and file a pull request.
|
||||
|
||||
@@ -27,7 +27,11 @@ xgettext \
|
||||
|
||||
sed -i 's/charset=CHARSET/charset=UTF-8/g' $WIVRN_CLIENT_POT $WIVRN_DASHBOARD_POT
|
||||
|
||||
LANGS="es fr it ja zh_TW pt_BR"
|
||||
if [ "$#" -ge 1 ] ; then
|
||||
LANGS="$@"
|
||||
else
|
||||
LANGS="$(ls -1 locale)"
|
||||
fi
|
||||
|
||||
for i in $LANGS
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user