From ac6aee7a43ef85de9ed3c64b61798c3cd6d8fee6 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Thu, 2 Dec 2021 00:28:26 -0800 Subject: [PATCH] Update src/po/check_translations.sh to work again Docs shuffled around & gettext'ing a string in Tux Paint Config. changed, which caused it to not find things. --- src/po/check_translations.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/po/check_translations.sh b/src/po/check_translations.sh index efdc223ef..4d4672f1e 100755 --- a/src/po/check_translations.sh +++ b/src/po/check_translations.sh @@ -68,7 +68,7 @@ do if [ $stamps_directory_found -eq 1 ] ; then - echo -n Checking $stamps_directory/po/tuxpaint-stamps-$i + echo -n Checking $stamps_directory/po/tuxpaint-stamps-$i ... if [ -e $stamps_directory/po/tuxpaint-stamps-$i ] then echo OK $stamps_directory/po/tuxpaint-stamps-$i else echo _WARNING_ No stamps translation found @@ -145,42 +145,42 @@ do if [ $tpconfig_directory_found ] then - echo -n Checking $langname in langs in tuxpaint-config2.cxx + echo -n Checking $langname in langs in tuxpaint-config2.cxx... configlang=0 - for item in `cat $tpconfig_directory/src/tuxpaint-config2.cxx|sed -n '/Use system/,/};/{/american/d;/NUM_LANGS/d;/gettext/d;/};/d;s/.*, "//g;s/"}.*//g;p}'` + for item in `cat $tpconfig_directory/src/tuxpaint-config2.cxx|sed -n '/default/,/};/{/american/d;/NUM_LANGS/d;/gettext/d;/};/d;s/.*, "//g;s/"}.*//g;p}'` do if [ $item == $langname ]; then echo OK $item; configlang=1; break; fi done - if [ $configlang -eq 0 ]; then echo _WARNING_ $langname is missing in lang in tuxpaint-config2.cxx; fi + if [ $configlang -eq 0 ]; then echo _WARNING_ $langname is missing in lang in $tpconfig_directory/src/tuxpaint-config2.cxx; fi fi echo -n Checking in the manpage... manlang=0 - for item in `cat ../manpage/tuxpaint.1|sed -n '/american-english/,/.RE/{/RE/d;/TP/d;/^-/d;s/|//g;p}'` + for item in `cat ../../man/en/tuxpaint.1|sed -n '/american-english/,/.RE/{/RE/d;/TP/d;/^-/d;s/|//g;p}'` do if [ $item == $langname ]; then echo OK $item; manlang=1; break; fi done - if [ $manlang -eq 0 ]; then echo _WARNING_ $langname is missing in lang in ../manpage/tuxpaint.1; fi + if [ $manlang -eq 0 ]; then echo _WARNING_ $langname is missing in lang in ../../man/en/tuxpaint.1; fi echo -n Checking LANGUAGE table in OPTIONS.html... OPTIONSlang=0 - for item in `cat ../../docs/html/OPTIONS.html|sed -n '/english/,/table>/{/tr>/d;/table>/d;/nbsp/d;s///g;s/<\/code><\/td>//g;p}'` + for item in `cat ../../docs/en/html/OPTIONS.html|sed -n '/english/,/table>/{/tr>/d;/table>/d;/nbsp/d;s///g;s/<\/code>//g;p}'` do if [ $item == $langname ]; then echo OK $item; OPTIONSlang=1; break; fi done - if [ $OPTIONSlang -eq 0 ]; then echo _WARNING_ $langname is missing in "Available Options" in the lang=LANGUAGE table in ../../docs/html/OPTIONS.html; fi + if [ $OPTIONSlang -eq 0 ]; then echo _WARNING_ $langname is missing in "Available Options" in the lang=LANGUAGE table in ../../docs/en/html/OPTIONS.html; fi echo -n Checking Locale Code in OPTIONS.html... OPTIONSlocale=0 - for item in `cat ../../docs/html/OPTIONS.html|sed -n '/English/,/table>/{/tr>/d;/table>/d;/nbsp/d;s///g;s/<\/code>.*//g;//d;p}'` + for item in `cat ../../docs/en/html/OPTIONS.html|sed -n '/Locale values and the languages they represent./,/table>/{/tr>/d;/table>/d;/nbsp/d;s///g;s/<\/code>.*//g;//d;p}'` do if [ $item == $locale ]; then echo OK $item; OPTIONSlocale=1; break; fi done - if [ $OPTIONSlocale -eq 0 ]; then echo _WARNING_ $locale is missing in the "Available Languages" table in the "Locale Code" field in ../../docs/html/OPTIONS.html; fi + if [ $OPTIONSlocale -eq 0 ]; then echo _WARNING_ $locale is missing in the "Available Languages" table in the "Locale Code" field in ../../docs/en/html/OPTIONS.html; fi @@ -226,4 +226,4 @@ do echo -done \ No newline at end of file +done