Use new naming scheme texdomain.lt_LT.UTF-8.po
This commit is contained in:
parent
fb490e0daa
commit
dab3d700ce
3
compile
3
compile
|
@ -30,8 +30,9 @@ for BRANCH in $TRUNK $BRANCHES; do
|
||||||
fi
|
fi
|
||||||
for file in `ls $DIR`; do
|
for file in `ls $DIR`; do
|
||||||
echo "Compiling $file";
|
echo "Compiling $file";
|
||||||
$MSGFMT "$DIR/$file" -o "$MDIR/$BRANCH/`echo $file | sed "s/."$LCODE".po/.mo/"`"
|
$MSGFMT "$DIR/$file" -o "$MDIR/$BRANCH/`echo wesnoth-$file | sed "s/."$LCODE".po/.mo/" | sed "s/wesnoth-wesnoth//"`"
|
||||||
done
|
done
|
||||||
|
rm "$MDIR/$BRANCH/wesnoth-manpages.mo" "$MDIR/$BRANCH/wesnoth-manual.mo"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -e $GREEN"Finished."$ENDCOLOR
|
echo -e $GREEN"Finished."$ENDCOLOR
|
||||||
|
|
22
pack
22
pack
|
@ -38,25 +38,27 @@ for BRANCH in $TRUNK $BRANCHES; do
|
||||||
echo -e "Branch: $BLUE$BRANCH"$ENDCOLOR
|
echo -e "Branch: $BLUE$BRANCH"$ENDCOLOR
|
||||||
DIR="$PREFIX-$BRANCH"
|
DIR="$PREFIX-$BRANCH"
|
||||||
mkdir "$LCODE-temp"
|
mkdir "$LCODE-temp"
|
||||||
for file in `ls $DIR/wesnoth*.$LCODE.po`; do
|
for file in `find $DIR -name *.lt.po`; do
|
||||||
bfile=`basename $file`
|
bfile=`basename $file`
|
||||||
echo -n "Processing catalog $bfile... ";
|
echo -n "Processing catalog $bfile... ";
|
||||||
d=`echo "$bfile" | sed "s/.$LCODE.po//"`
|
d=`echo "$bfile" | sed "s/.$LCODE.po//"`
|
||||||
$MSGMERGE --no-wrap --silent $file $file -o $file.temp
|
dirdomain=`echo wesnoth-$d | sed "s/wesnoth-wesnoth/wesnoth/"`
|
||||||
if [ -f "$BRANCH/$d/$LCODE.po" ]; then
|
$MSGMERGE --silent "$file" "$file" -o $file.temp
|
||||||
$MSGMERGE --no-wrap --silent "$BRANCH/$d/$LCODE.po" "$BRANCH/$d/$LCODE.po" -o "$BRANCH/$d/$LCODE.po.temp"
|
mv $file.temp $file
|
||||||
if ! $DIFF -q "$file.temp" "$BRANCH/$d/$LCODE.po.temp" > /dev/null ; then
|
if [ -f "$BRANCH/$dirdomain/$LCODE.po" ]; then
|
||||||
mkdir "$LCODE-temp/$d"
|
$MSGMERGE --silent "$BRANCH/$dirdomain/$LCODE.po" "$BRANCH/$dirdomain/$LCODE.po" -o "$BRANCH/$dirdomain/$LCODE.po.temp"
|
||||||
cp "$file" "$LCODE-temp/$d/$LCODE.po"
|
if ! $DIFF -q "$file" "$BRANCH/$dirdomain/$LCODE.po.temp" > /dev/null ; then
|
||||||
|
mkdir "$LCODE-temp/$dirdomain"
|
||||||
|
cp "$file" "$LCODE-temp/$dirdomain/$LCODE.po"
|
||||||
echo -e $GREEN"OK"$ENDCOLOR
|
echo -e $GREEN"OK"$ENDCOLOR
|
||||||
counter=$(($counter+1))
|
counter=$(($counter+1))
|
||||||
else
|
else
|
||||||
echo -e $BLUE"Skipping"$ENDCOLOR
|
echo -e $BLUE"Skipping"$ENDCOLOR
|
||||||
fi
|
fi
|
||||||
rm $file.temp "$BRANCH/$d/$LCODE.po.temp"
|
rm "$BRANCH/$dirdomain/$LCODE.po.temp"
|
||||||
else
|
else
|
||||||
mkdir -p "$LCODE-temp/$d"
|
mkdir -p "$LCODE-temp/$dirdomain"
|
||||||
cp "$file" "$LCODE-temp/$d/$LCODE.po"
|
cp "$file" "$LCODE-temp/$dirdomain/$LCODE.po"
|
||||||
echo -e $GREEN"OK"$ENDCOLOR
|
echo -e $GREEN"OK"$ENDCOLOR
|
||||||
counter=$(($counter+1))
|
counter=$(($counter+1))
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -188,15 +188,9 @@ for BRANCH in $TRUNK $BRANCHES; do
|
||||||
|
|
||||||
echo "<tr class=\"row-$CL\">" >> $STATSFILE
|
echo "<tr class=\"row-$CL\">" >> $STATSFILE
|
||||||
CL=$(( ($CL+1)%2 ))
|
CL=$(( ($CL+1)%2 ))
|
||||||
if [ $(($f+$u)) -gt 0 ]; then
|
|
||||||
echo " <td align=\"left\"><strong><a href=\"$filename".po"\">`basename $filename`</a></strong></td>
|
echo " <td align=\"left\"><strong><a href=\"$filename".po"\">`basename $filename`</a></strong></td>
|
||||||
<td class=\"percentage-$CL\" align=\"center\">$st</td>
|
<td class=\"percentage-$CL\" align=\"center\">$st</td>
|
||||||
<td class=\"row-$CL\" align=\"right\">$t</td>" >> $STATSFILE
|
<td class=\"row-$CL\" align=\"right\">$t</td>" >> $STATSFILE
|
||||||
else
|
|
||||||
echo " <td align=\"left\"><strong>`basename $filename`</strong></td>
|
|
||||||
<td class=\"percentage-$CL\" align=\"center\">$st</td>
|
|
||||||
<td class=\"row-$CL\" align=\"right\">$t</td>" >> $STATSFILE
|
|
||||||
fi
|
|
||||||
printf '%s%d%s%.2f%s\n' " <td class=\"percentage-" $CL "\" align=\"right\">" $rt "</td>" >> $STATSFILE
|
printf '%s%d%s%.2f%s\n' " <td class=\"percentage-" $CL "\" align=\"right\">" $rt "</td>" >> $STATSFILE
|
||||||
echo " <td class=\"row-$CL\" align=\"right\">$f</td>" >> $STATSFILE
|
echo " <td class=\"row-$CL\" align=\"right\">$f</td>" >> $STATSFILE
|
||||||
printf '%s%d%s%.2f%s\n' " <td class=\"percentage-" $CL "\" align=\"right\">" $rf "</td>" >> $STATSFILE
|
printf '%s%d%s%.2f%s\n' " <td class=\"percentage-" $CL "\" align=\"right\">" $rf "</td>" >> $STATSFILE
|
||||||
|
|
12
update
12
update
|
@ -77,19 +77,19 @@ for BRANCH in $TRUNK $BRANCHES; do
|
||||||
DIR="$PREFIX-$BRANCH"
|
DIR="$PREFIX-$BRANCH"
|
||||||
echo -e "Merging: $BLUE$BRANCH"$ENDCOLOR
|
echo -e "Merging: $BLUE$BRANCH"$ENDCOLOR
|
||||||
for dir in `ls $SVNDIR/wesnoth* -d`; do
|
for dir in `ls $SVNDIR/wesnoth* -d`; do
|
||||||
echo "Processing "`basename $dir`"."$LCODE".po"
|
echo "Processing `basename $dir | sed s/wesnoth-//`$LCODE.po"
|
||||||
stat=`LC_MESSAGES=C $MSGFMT --statistics -o /dev/null $dir"/"$LCODE".po" 2>&1`
|
stat=`LC_MESSAGES=C $MSGFMT --statistics -o /dev/null "$dir/$LCODE.po" 2>&1`
|
||||||
u=`echo "$stat" | sed -ne 's/.* \([0-9]\+\) untranslated .*/\1/p'`; u=${u:-0}
|
u=`echo "$stat" | sed -ne 's/.* \([0-9]\+\) untranslated .*/\1/p'`; u=${u:-0}
|
||||||
f=`echo "$stat" | sed -ne 's/.* \([0-9]\+\) fuzzy translation.*/\1/p'`; f=${f:-0}
|
f=`echo "$stat" | sed -ne 's/.* \([0-9]\+\) fuzzy translation.*/\1/p'`; f=${f:-0}
|
||||||
file=$DIR"/"`basename $dir`"."$LCODE".po"
|
file="$DIR/`basename $dir | sed s/wesnoth-//`.$LCODE.po"
|
||||||
if [ -f $dir"/"$LCODE".po" ]; then
|
if [ -f $dir"/"$LCODE".po" ]; then
|
||||||
if [ -f "$DIR/"`basename $dir`".$LCODE.po" ]; then
|
if [ -f "$file" ]; then
|
||||||
echo -e $BLUE"Merging:"$ENDCOLOR
|
echo -e $BLUE"Merging:"$ENDCOLOR
|
||||||
$MSGMERGE -U -v $file $dir"/"`basename $dir`".pot"
|
$MSGMERGE -U -v "$file" "$dir/`basename $dir`.pot"
|
||||||
rm -f $file~
|
rm -f $file~
|
||||||
else
|
else
|
||||||
echo -e $RED"Copying:"$ENDCOLOR
|
echo -e $RED"Copying:"$ENDCOLOR
|
||||||
cp $dir"/"$LCODE".po" $file
|
cp "$dir/$LCODE.po" "$file"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ ! -f $file ]; then
|
if [ ! -f $file ]; then
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
# Repositories
|
# Repositories
|
||||||
REPO="http://svn.gna.org/svn/wesnoth"
|
REPO="http://svn.gna.org/svn/wesnoth"
|
||||||
BRANCHES="" # one or multiple branches separated by space. Can be blank.
|
BRANCHES="1.6" # one or multiple branches separated by space. Can be blank.
|
||||||
TRUNK="trunk" # "trunk" or ""
|
TRUNK="" # "trunk" or ""
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
LCODE="lt" # Language code. Only 1 language is supported.
|
LCODE="lt" # Language code. Only 1 language is supported.
|
||||||
|
|
Loading…
Reference in New Issue