Use “en_US” instead of “en_EN”
This commit is contained in:
parent
7f63ffd31a
commit
37a267f7e4
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ if [ $1 != "updpo" ] && [ $1 != "updmo" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
langs=("ar_AE" "be_BY" "ca_ES" "cs_CZ" "de_DE" "en_EN" "es_ES" "fa_IR" "fr_FR" "gl_ES" "id_ID" "it_IT" "nl_NL" "pl_PL" "pt_BR" "pt_PT" "ru_RU" "tr_TR" "uk_UA")
|
||||
langs=("ar_AE" "be_BY" "ca_ES" "cs_CZ" "de_DE" "en_US" "es_ES" "fa_IR" "fr_FR" "gl_ES" "id_ID" "it_IT" "nl_NL" "pl_PL" "pt_BR" "pt_PT" "ru_RU" "tr_TR" "uk_UA")
|
||||
|
||||
basedir=$(dirname "$0")
|
||||
cd "$basedir"
|
||||
|
@ -19,9 +19,9 @@ if [ $1 == "updpo" ]; then
|
|||
echo "Aggiorno masthelp.pot con xgettext"
|
||||
xgettext --no-wrap --from-code utf-8 --add-comments --copyright-holder masthelp@insicuri.net --package-name mastodon.help --package-version 1.1 --msgid-bugs-address masthelp@insicuri.net web/site/*.php web/lib/*.php -o - | sed -e 's/^"Language: \\n"$/"Language: en\\n"/' > web/site/locale/masthelp.pot
|
||||
echo "Aggiorno masthelp.po per «en» con msgen"
|
||||
msgen --no-wrap web/site/locale/masthelp.pot -o - | sed -e 's/msgstr "Not available{singular}"/msgstr "Not available"/' -e 's/msgstr "Not available{plural}"/msgstr "Not available"/' > web/site/locale/en_EN/LC_MESSAGES/masthelp.po
|
||||
msgen --no-wrap web/site/locale/masthelp.pot -o - | sed -e 's/msgstr "Not available{singular}"/msgstr "Not available"/' -e 's/msgstr "Not available{plural}"/msgstr "Not available"/' > web/site/locale/en_US/LC_MESSAGES/masthelp.po
|
||||
for lang in ${langs[@]}; do
|
||||
if [ $lang != "en_EN" ]; then
|
||||
if [ $lang != "en_US" ]; then
|
||||
echo "Aggiorno masthelp.po per «$lang» con msgmerge"
|
||||
msgmerge --update --no-wrap web/site/locale/$lang/LC_MESSAGES/masthelp.po web/site/locale/masthelp.pot
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue