diff options
author | filip <filip.komar@gmail.com> | 2015-06-17 00:25:47 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2015-06-17 00:25:47 +0200 |
commit | 2e47c84e91a0a16870c3839801e8cecf5c029fb4 (patch) | |
tree | a1006f1e95ce72d9de3a152178fc2b080c3aeb37 /tools | |
parent | 07ec6dbf24bda794950e0e0dcdd4aef9b3f005ff (diff) | |
download | www-2e47c84e91a0a16870c3839801e8cecf5c029fb4.tar www-2e47c84e91a0a16870c3839801e8cecf5c029fb4.tar.gz www-2e47c84e91a0a16870c3839801e8cecf5c029fb4.tar.bz2 www-2e47c84e91a0a16870c3839801e8cecf5c029fb4.tar.xz www-2e47c84e91a0a16870c3839801e8cecf5c029fb4.zip |
preparation for mga5 final release (concatenating l10n files
for preparation of final release)
Note: DO NOT use --unique argument with msgcat as
it can output empty msgstr strings instead of translated already
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rebuild_gettext_catalogs.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/rebuild_gettext_catalogs.sh b/tools/rebuild_gettext_catalogs.sh index b2556ef09..4b689f29b 100755 --- a/tools/rebuild_gettext_catalogs.sh +++ b/tools/rebuild_gettext_catalogs.sh @@ -126,6 +126,12 @@ do fi if [ -f "$directory/$resource.po" ] && [ -z $difference ]; then # update po file if it exists # msgfmt --statistics --verbose -c $directory/$resource.po -o /dev/null # usefull for debuging (msgctxt "/web/en/ or msgctxt "en/) + # merge the translations once if it's about mga version_soon_to_be_released but adjust the numbers and uncomment the code ;) +# if [ "$resource" = "5" ]; then +# msgcat --use-first --no-wrap $directory/5.po $directory/cauldron.po $directory/4.po > $directory/5_.po +# sed -i 's/Mageia 4/Mageia 5/g' $directory/5_.po +# mv $directory/5_.po $directory/5.po +# fi echo merging $directory/$resource.po msgmerge --quiet --no-wrap $directory/$resource.po ./langs/en/$resource.pot --output-file=$directory/$resource.tmp msgmerge_error_level=$? # catch msgmerge error level |