From 63c6aa581613c8d4d7737c2c906fdf99881f63a7 Mon Sep 17 00:00:00 2001 From: Juhani Numminen Date: Sun, 14 Jul 2019 13:50:00 +0300 Subject: [PATCH] Don't duplicate locales, e.g. de -> de_DE The duplication seems to be unnecessary. Setting environment variable LANG=it_CH gives Italian as PySolFC language, even if we didn't explicitly create 'it_CH'. --- Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 402a7018..7c2cc2bf 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ pot: done mo: - for loc in ru ru_RU de de_AT de_BE de_DE de_LU de_CH pl pl_PL it it_IT; do \ + for loc in ru de pl it; do \ test -d locale/$${loc}/LC_MESSAGES || mkdir -p locale/$${loc}/LC_MESSAGES; \ done for lang in ru pl it; do \ @@ -56,12 +56,6 @@ mo: for lang in ru de pl it; do \ msgfmt -o locale/$${lang}/LC_MESSAGES/pysol.mo po/$${lang}.po; \ done - cp -f locale/ru/LC_MESSAGES/pysol.mo locale/ru_RU/LC_MESSAGES/pysol.mo - for dir in de_AT de_BE de_DE de_LU de_CH; do \ - cp -f locale/de/LC_MESSAGES/pysol.mo locale/$${dir}/LC_MESSAGES/pysol.mo; \ - done - cp -f locale/pl/LC_MESSAGES/pysol.mo locale/pl_PL/LC_MESSAGES/pysol.mo - cp -f locale/it/LC_MESSAGES/pysol.mo locale/it_IT/LC_MESSAGES/pysol.mo pretest: @rm -f tests/individually-importing/*.py # To avoid stray files