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