Prepare the addition of Polish
parent
e92dd3d6f8
commit
bc44b0a148
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
lang_short="E F"
|
lang_short="E F" # P"
|
||||||
lang_long="en fr"
|
lang_long="en fr" # pl"
|
||||||
|
|
||||||
categories="defi free lost perso proto scene1 scene2 scene3 scene4 scene5 scene6 scene7 scene8 scene9 train1 train2 train3 train4 train5 train6 train7"
|
categories="defi free lost perso proto scene1 scene2 scene3 scene4 scene5 scene6 scene7 scene8 scene9 train1 train2 train3 train4 train5 train6 train7"
|
||||||
empty_categories="win"
|
empty_categories="win"
|
||||||
|
@ -28,6 +28,7 @@ for lang in $lang_short; do
|
||||||
case $lang in
|
case $lang in
|
||||||
E) dot="";;
|
E) dot="";;
|
||||||
F) langcode=fr;;
|
F) langcode=fr;;
|
||||||
|
P) langcode=pl;;
|
||||||
esac
|
esac
|
||||||
destfile=$levelfile$dot$langcode.xml;
|
destfile=$levelfile$dot$langcode.xml;
|
||||||
allsfile=$allsfile_c$dot$langcode.$allsfile_e;
|
allsfile=$allsfile_c$dot$langcode.$allsfile_e;
|
||||||
|
@ -85,7 +86,7 @@ echo "* Category: $category "
|
||||||
echo -n " * Generate translation files: "
|
echo -n " * Generate translation files: "
|
||||||
for lang in $lang_long; do
|
for lang in $lang_long; do
|
||||||
if [ $lang = "en" ]; then continue; fi;
|
if [ $lang = "en" ]; then continue; fi;
|
||||||
echo -n "$lang"
|
echo -n "$lang "
|
||||||
echo "</body></html>" >> $category.$lang.$allsfile_e
|
echo "</body></html>" >> $category.$lang.$allsfile_e
|
||||||
pofile=$category-po/$lang.po
|
pofile=$category-po/$lang.po
|
||||||
if [ ! -f $pofile ]; then
|
if [ ! -f $pofile ]; then
|
||||||
|
@ -109,10 +110,13 @@ for levelfile in $(ls *.txt); do
|
||||||
rootfilename=$(echo $levelfile | sed 's/\.txt$//g')
|
rootfilename=$(echo $levelfile | sed 's/\.txt$//g')
|
||||||
mv $levelfile $levelfile.old
|
mv $levelfile $levelfile.old
|
||||||
for lang in $lang_long; do
|
for lang in $lang_long; do
|
||||||
|
dotlang=".$lang"
|
||||||
case $lang in
|
case $lang in
|
||||||
en) xmlfile=$rootfilename.xml; langcode=".E";;
|
en) dotlang=""; langcode=".E";;
|
||||||
fr) xmlfile=$rootfilename.$lang.xml; langcode=".F";;
|
fr) langcode=".F";;
|
||||||
|
pl) langcode=".P";;
|
||||||
esac
|
esac
|
||||||
|
xmlfile=$rootfilename$dotlang.xml
|
||||||
echo -n "."
|
echo -n "."
|
||||||
if [ -f $xmlfile ]; then
|
if [ -f $xmlfile ]; then
|
||||||
for key in Title Resume ScriptName; do
|
for key in Title Resume ScriptName; do
|
||||||
|
|
Loading…
Reference in New Issue