]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix the txt file.
authorRudolf Polzer <divVerent@gmail.com>
Fri, 3 Feb 2023 12:16:42 +0000 (13:16 +0100)
committerRudolf Polzer <divVerent@gmail.com>
Fri, 3 Feb 2023 12:16:42 +0000 (13:16 +0100)
check-translations.sh
languages.txt

index f452283a031b06811e765f56a52498fe558fc631..e804cde0aa555be4acba34fe51aee6f84b525b43 100755 (executable)
@@ -61,10 +61,10 @@ if [ x"$mode" = x"txt" ]; then
                        fi
                        # Note: we're only reporting EXISTING fuzzy matches in the Fuzzy count, thus -N.
                        po=`msgmerge -N "$X" common.pot`
-                       ne=`printf "%s\n" "$po" | msgfmt -o /dev/null --check-format --check-header --use-fuzzy - 2>&1 | grep . | wc -l`
-                       nu=`printf "%s\n" "$po" | msgattrib --untranslated - | grep -c ^#:`
-                       nf=`printf "%s\n" "$po" | msgattrib --fuzzy - | grep -c ^#:`
-                       nt=`printf "%s\n" "$po" | grep -c ^#:`
+                       ne=`printf "%s\n" "$po" | msgfmt -o /dev/null --check-format --check-header --use-fuzzy - 2>&1 | grep . | wc -l || true`
+                       nu=`printf "%s\n" "$po" | msgattrib --untranslated - | grep -c ^#: || true`
+                       nf=`printf "%s\n" "$po" | msgattrib --fuzzy - | grep -c ^#: || true`
+                       nt=`printf "%s\n" "$po" | grep -c ^#: || true`
                        n=$(($ne + $nu + $nf))
                        p=$(( (nt - n) * 100 / nt ))
                        echo >&2 "TODO for translation $X:"
index d0ffe33e482059788d98d34f67340290325462c8..55a5cc8ff5e404f5fd3113239e62f5631a40825e 100644 (file)
@@ -1 +1,32 @@
+ast   "Asturian" "Asturianu" 74%
+de    "German" "Deutsch" 99%
+de_CH "German (Switzerland)" "Deutsch (Schweiz)" 99%
 en    "English" "English" 100%
+en_AU "English (Australia)" "English (Australia)" 69%
+es    "Spanish" "Español" 99%
+fr    "French" "Français" 100%
+ga    "Irish" "Irish" 29%
+it    "Italian" "Italiano" 99%
+hu    "Hungarian" "Magyar" 43%
+nl    "Dutch" "Nederlands" 62%
+pl    "Polish" "Polski" 80%
+pt    "Portuguese" "Português" 78%
+pt_BR "Portuguese (Brazil)" "Português (Brasil)" 100%
+ro    "Romanian" "Romana" 68%
+fi    "Finnish" "Suomi" 99%
+sv    "Swedish" "Svenska" 99%
+tr    "Turkish" "Türkçe" 50%
+id_ID "id_ID" "id_ID" 39%
+la "la" "la" 44%
+cs    "Czech" "Čeština" 31%
+el    "Greek" "Ελληνική" 44%
+be    "Belarusian" "Беларуская" 49%
+bg    "Bulgarian" "Български" 66%
+ru    "Russian" "Русский" 100%
+sr    "Serbian" "Српски" 58%
+uk    "Ukrainian" "Українська" 49%
+zh_TW "Chinese (Taiwan)" "中文(正體字)" 100%
+zh_CN "Chinese (China)" "中文(简体字)" 100%
+zh_HK "Chinese (Hong Kong)" "中文(香港字)" 100%
+ja_JP "Japanese" "日本語" 99%
+ko    "Korean" "한국의" 35%