trans-coord-devel
[Top][All Lists]
Advanced

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

trans-coord/gnun/server/gnun ChangeLog GNUmakef...


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun ChangeLog GNUmakef...
Date: Fri, 15 Jun 2012 04:09:32 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       12/06/15 04:09:32

Modified files:
        gnun/server/gnun: ChangeLog GNUmakefile THANKS 

Log message:
        (validate-all): Test whether the translated
        HTML file is newer than the PO file when validating.
        Test case by František Kučera.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.279&r2=1.280
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.129&r2=1.130
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/THANKS?cvsroot=trans-coord&r1=1.14&r2=1.15

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.279
retrieving revision 1.280
diff -u -b -r1.279 -r1.280
--- ChangeLog   8 Jun 2012 05:11:54 -0000       1.279
+++ ChangeLog   15 Jun 2012 04:09:32 -0000      1.280
@@ -1,3 +1,10 @@
+2012-06-15  Pavel Kharitonov  <address@hidden>
+
+       * GNUmakefile (validate-all): Test whether the translated
+       HTML file is newer than the PO file when validating.
+       Test case by František Kučera.
+       * THANKS: Update.
+
 2012-06-08  Pavel Kharitonov  <address@hidden>
 
        Add `validate-all' target.

Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -b -r1.129 -r1.130
--- GNUmakefile 8 Jun 2012 05:11:54 -0000       1.129
+++ GNUmakefile 15 Jun 2012 04:09:32 -0000      1.130
@@ -1260,10 +1260,20 @@
           $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${web-addr} $${html}; \
         done
 # Note that the HTML file with translation may or may not exist yet,
-# so we should test it.
+# so we should test it; also, if the HTML file is not newer than PO,
+# it may be a very old translation whose format validation is not supported.
        for html in $(articles-translated); do \
-          test -f $${html} || continue; echo Validating $${html}...; \
+          po=$${html%html}po; po=$${po%/*}/po/$${po##*/}; \
+          if test -f $${html} && test $${html} -nt $${po}; then \
+            echo Validating $${html}...; \
           $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${transl-addr} $${html}; \
+          else \
+            if test -f $${html} ; then \
+              echo File $${html} is not newer than $${po}.; \
+            else \
+              echo No $${html} exist.; \
+            fi; \
+          fi; \
         done
 
 ### Everything that has a beginning has an end. ###

Index: THANKS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/THANKS,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- THANKS      26 Apr 2012 08:51:04 -0000      1.14
+++ THANKS      15 Jun 2012 04:09:32 -0000      1.15
@@ -14,6 +14,8 @@
 +------------------+---------------------------+
 |Dora Scilipoti    |    address@hidden|
 +------------------+---------------------------+
+|František Kučera  |          address@hidden|
++------------------+---------------------------+
 |George Zarkadas   |address@hidden|
 +------------------+---------------------------+
 |Hossam Hossny     |             address@hidden|



reply via email to

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