blob: eb3156008d30bea8fca36a491f54bfdc80c9c933 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# Filip Komar, 2019
# @license GPL v2
# @author Filip (copy i18n files from cauldron to stable release)
# inspired by rebuild_gettext_catalogs.sh
mga_release=define_number_of_release
mga_release=7
mga_previous_release=6
for directory in ./langs/*
do
# in each language directory except source
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 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
fi
done
|