Don't remove translated files.
This commit is contained in:
parent
74de543507
commit
fb490e0daa
2
compile
2
compile
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
source `dirname $0`/variables
|
source "`dirname $0`/variables"
|
||||||
|
|
||||||
if [ ! $MSGFMT ]; then
|
if [ ! $MSGFMT ]; then
|
||||||
echo -e $RED"This program needs the msgfmt utility."$ENDCOLOR
|
echo -e $RED"This program needs the msgfmt utility."$ENDCOLOR
|
||||||
|
|
2
pack
2
pack
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
source `dirname $0`/variables
|
source "`dirname $0`/variables"
|
||||||
|
|
||||||
if [ ! $DIFF ]; then
|
if [ ! $DIFF ]; then
|
||||||
echo -e $RED"This program needs the diff utility."$ENDCOLOR
|
echo -e $RED"This program needs the diff utility."$ENDCOLOR
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
source `dirname $0`/variables
|
source "`dirname $0`/variables"
|
||||||
|
|
||||||
LC_NUMERIC="en_US.UTF-8"
|
LC_NUMERIC="en_US.UTF-8"
|
||||||
ODD_CHARS='<27>'
|
ODD_CHARS='<27>'
|
||||||
|
|
10
update
10
update
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
source `dirname $0`/variables
|
source "`dirname $0`/variables"
|
||||||
|
|
||||||
if [ ! $SVN ]; then
|
if [ ! $SVN ]; then
|
||||||
echo -e $RED"This program needs the svn utility."$ENDCOLOR
|
echo -e $RED"This program needs the svn utility."$ENDCOLOR
|
||||||
|
@ -83,13 +83,6 @@ for BRANCH in $TRUNK $BRANCHES; do
|
||||||
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`"."$LCODE".po"
|
||||||
if [ -f $dir"/"$LCODE".po" ]; then
|
if [ -f $dir"/"$LCODE".po" ]; then
|
||||||
if [ $(($u+$f)) == 0 ]; then
|
|
||||||
echo -e $GREEN"File is translated."$ENDCOLOR
|
|
||||||
if [ -f $DIR"/"`basename $dir`"."$LCODE".po" ]; then
|
|
||||||
echo -e $GREEN"Removing from $DIR."$ENDCOLOR
|
|
||||||
rm -f $file
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [ -f "$DIR/"`basename $dir`".$LCODE.po" ]; then
|
if [ -f "$DIR/"`basename $dir`".$LCODE.po" ]; 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"
|
||||||
|
@ -98,7 +91,6 @@ for BRANCH in $TRUNK $BRANCHES; do
|
||||||
echo -e $RED"Copying:"$ENDCOLOR
|
echo -e $RED"Copying:"$ENDCOLOR
|
||||||
cp $dir"/"$LCODE".po" $file
|
cp $dir"/"$LCODE".po" $file
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
if [ ! -f $file ]; then
|
if [ ! -f $file ]; then
|
||||||
echo -e $RED"No po file in repository. Running msginit."$ENDCOLOR
|
echo -e $RED"No po file in repository. Running msginit."$ENDCOLOR
|
||||||
|
|
Loading…
Reference in New Issue