From 1a19fef004da9c4738c6dbc3136378c05e340e37 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 3 Feb 2023 13:16:42 +0100 Subject: [PATCH] Fix the txt file. --- check-translations.sh | 8 ++++---- languages.txt | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/check-translations.sh b/check-translations.sh index f452283a0..e804cde0a 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -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:" diff --git a/languages.txt b/languages.txt index d0ffe33e4..55a5cc8ff 100644 --- a/languages.txt +++ b/languages.txt @@ -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% -- 2.39.2