aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/rebuild_gettext_catalogs.sh6
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