blob: 284a72e21ca9e050eaf013688ed17af213453739 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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=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"
else
echo "Language $directory missing!"
fi
fi
done
|