From a47294ed7a62f9974fb590b0412047486badc9b5 Mon Sep 17 00:00:00 2001 From: zenobit Date: Mon, 27 Mar 2023 02:40:53 +0200 Subject: [PATCH] function create_translation_source --- dh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/dh b/dh index 8e663c5..f560bf3 100755 --- a/dh +++ b/dh @@ -406,6 +406,34 @@ function localization() { } # run +function create_translation_source() { + cat > header.tmp <=2 && n<=4 ? 1 : 2);\n" +"X-Generator: Poedit 3.2.2\n" +"X-Poedit-Basepath: ../..\n" +"X-Poedit-SearchPath-0: .\n" + +EOF + #cat ./dh | grep '$(gettext "' | cut -d'(' -f2 | cut -d'"' -f2 | cut -d')' -f1 > po.tmp + #sed -i 's/$/msgstr""\n\nmsgid "/g' po.tmp + #cat header.tmp po.tmp > locale/translation_source.po + #rm header.tmp po.tmp + #LANGUAGE="cs" + #export "LANGUAGE" + #echo "language: $LANGUAGE" + bash --dump-po-strings dh > locale/strings_dump-$version.po +} set_variables localization