aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2019-06-30 13:59:54 +0200
committerfilip <filip.komar@gmail.com>2019-06-30 13:59:54 +0200
commitd05e9fe22b4fd6cdfec954879dc53e187c03a5f3 (patch)
tree7c4ad47fc77a2f49234a285479804bba6263a80d
parent1ca5b23d630e9131b8e4e1fa091efb97e88f63e7 (diff)
add automated option to use existing l10n for new release
-rwxr-xr-xtools/move_i1n8n_release.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/move_i1n8n_release.sh b/tools/move_i1n8n_release.sh
index 284a72e21..eb3156008 100755
--- a/tools/move_i1n8n_release.sh
+++ b/tools/move_i1n8n_release.sh
@@ -5,7 +5,8 @@
# inspired by rebuild_gettext_catalogs.sh
mga_release=define_number_of_release
-#~ mga_release=6
+mga_release=7
+mga_previous_release=6
for directory in ./langs/*
do
@@ -13,7 +14,10 @@ do
if [ -d "$directory/" ] && [ $directory != "./langs/en" ]; then
if [ -f "$directory/cauldron.po" ]; then
cp "$directory/cauldron.po" "$directory/$mga_release.po"
- echo "Language $directory/$mga_release.po copied"
+ echo "Language $directory/$mga_release.po copied from prerelease"
+ msgmerge "$directory/$mga_release.po" "$directory/$mga_previous_release.po" > "$directory/new_$mga_release.po"
+ mv "$directory/new_$mga_release.po" "$directory/$mga_release.po"
+ echo "Language $directory/$mga_release.po merged from previous release"
else
echo "Language $directory missing!"
fi