зеркало из
1
0
Форкнуть 0

Include FTL files in en folder as fallback

This commit is contained in:
Lauren Zugai 2022-05-18 11:07:36 -05:00 коммит произвёл GitHub
Родитель efcb501f65
Коммит 2e907a2d01
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -102,11 +102,6 @@ else
./scripts/merge_po.sh ./locale
fi
# Fluent extraction
cp $PAYMENTS_DIR/public/locales/en-US/*.ftl $L10N_DIR/locale/templates
cp $SETTINGS_DIR/public/locales/en-US/*.ftl $L10N_DIR/locale/templates
cp $MAILER_DIR/public/locales/en/*.ftl $L10N_DIR/locale/templates
# Some locales must be copied over to a different locale code
# See details in https://github.com/mozilla/fxa-content-server-l10n/pull/79#issuecomment-149281761
cp -r $L10N_DIR/locale/sv_SE/* $L10N_DIR/locale/sv
@ -125,4 +120,15 @@ cp -r $L10N_DIR/locale/fy_NL/* $L10N_DIR/locale/fy
sed -i'' -e 's/Language: fy_NL/Language: fy/g' "$L10N_DIR/locale/fy/LC_MESSAGES/client.po"
sed -i'' -e 's/Language: fy_NL/Language: fy/g' "$L10N_DIR/locale/fy/LC_MESSAGES/server.po"
# Fluent extraction
cp $PAYMENTS_DIR/public/locales/en-US/*.ftl $L10N_DIR/locale/templates
cp $SETTINGS_DIR/public/locales/en-US/*.ftl $L10N_DIR/locale/templates
cp $MAILER_DIR/public/locales/en/*.ftl $L10N_DIR/locale/templates
# Pontoon will read from the "templates" directory but we must copy the FTL files
# into "en" to ensure users with English will always see good fallback text.
# We can remove the "templates" directory once we are off of gettext entirely -
# then, Pontoon will read from the "en" directory.
cp $L10N_DIR/locale/templates/*.ftl $L10N_DIR/locale/en
set +x