Updated to consider the new directory layout (all library files in “web/lib”)

This commit is contained in:
pezcurrel 2023-12-26 23:41:04 +01:00
parent 5a473b6064
commit b2fa12b541

View file

@ -17,7 +17,7 @@ cd ../../
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/site/lib/*.php -o - | sed -e 's/^"Language: \\n"$/"Language: en\\n"/' > web/site/locale/masthelp.pot
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_US.UTF-8/LC_MESSAGES/masthelp.po
for lang in ${langs[@]}; do