bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Re: gettext 0.15 rejects latest Japanese translation for GNU t


From: Paul Eggert
Subject: [Bug-tar] Re: gettext 0.15 rejects latest Japanese translation for GNU tar
Date: Wed, 09 Aug 2006 11:31:43 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Masahito Yamaga <address@hidden> writes:

> I fixed it and sent it to the service robot at the Translation Project.
> And I have just received the acceptance from the robot.

Thanks for the quick work and response.  I installed the following
patch (to fix some other things too) so the ja translation is now
working again for GNU tar.

2006-08-09  Paul Eggert  <address@hidden>

        * bootstrap: Don't exclude ja.po; it is working again.
        Don't remove all old .po files if we're merely updating one.
        * po/.cvsignore: Add Makevars.

Index: bootstrap
===================================================================
RCS file: /cvsroot/tar/tar/bootstrap,v
retrieving revision 1.43
diff -p -u -r1.43 bootstrap
--- bootstrap   7 Aug 2006 22:58:12 -0000       1.43
+++ bootstrap   9 Aug 2006 18:28:43 -0000
@@ -109,7 +109,10 @@ get_translations() {
   po_file=$3
 
   echo "$0: getting translations into $subdir for $domain..."
-  (cd $subdir && rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'`) &&
+
+  case $po_file in
+  '') (cd $subdir && rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'`);;
+  esac &&
 
   $WGET_COMMAND -O "$subdir/$domain.html" "$TP_URL$domain" &&
 
@@ -123,11 +126,11 @@ get_translations() {
   awk -v domain="$domain" -v po_file="$po_file" -v subdir="$subdir" '
     {
       lang = $1
-      if (po_file == (lang ".po")) next
+      if (po_file && po_file != (lang ".po")) next
 
       # Work around bugs in translations uncovered by gettext 0.15.
       # This workaround can be removed once the translations are fixed.
-      if (lang == "hu" || lang == "ja" || lang == "ky" || lang == "zh_TW") next
+      if (lang == "hu" || lang == "ky" || lang == "zh_TW") next
 
       ver = $2
       urlfmt = ""
@@ -146,10 +149,7 @@ update_po() {
     *.po)  POFILE=$1;;
     *)     POFILE=${1}.po;;
     esac
-    get_translations po $package "$POFILE" &&
-    LANG=`expr $POFILE : '\(.*\)\.po'` &&
-    { grep -q $LANG po/LINGUAS ||
-        (echo $LANG; cat po/LINGUAS) | sort -o po/LINGUAS; }
+    get_translations po $package "$POFILE"
   else
     get_translations po $package
   fi
Index: po/.cvsignore
===================================================================
RCS file: /cvsroot/tar/tar/po/.cvsignore,v
retrieving revision 1.1
diff -p -u -r1.1 .cvsignore
--- po/.cvsignore       24 Jul 2003 14:43:30 -0000      1.1
+++ po/.cvsignore       9 Aug 2006 18:28:43 -0000
@@ -2,6 +2,7 @@ index.html
 *.po
 LINGUAS
 Makefile.in.in
+Makevars
 Makevars.template
 Rules-quot
 boldquot.sed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]