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 NEWS gnu...


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun ChangeLog NEWS gnu...
Date: Sun, 30 Dec 2012 08:27:00 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       12/12/30 08:27:00

Modified files:
        gnun/server/gnun: ChangeLog NEWS gnun-diff-po.in 

Log message:
        Fix the case when whole translation is added or removed.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.338&r2=1.339
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/NEWS?cvsroot=trans-coord&r1=1.79&r2=1.80
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/gnun-diff-po.in?cvsroot=trans-coord&r1=1.3&r2=1.4

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.338
retrieving revision 1.339
diff -u -b -r1.338 -r1.339
--- ChangeLog   27 Dec 2012 15:32:27 -0000      1.338
+++ ChangeLog   30 Dec 2012 08:26:55 -0000      1.339
@@ -1,3 +1,9 @@
+2012-12-30  Pavel Kharitonov  <address@hidden>
+
+       * gnun-diff.po.in: Fix the case when whole translation
+       is added or removed.
+       * NEWS: Update.
+
 2012-12-27  Pavel Kharitonov  <address@hidden>
 
        Release 0.7.

Index: NEWS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/NEWS,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- NEWS        27 Dec 2012 15:32:27 -0000      1.79
+++ NEWS        30 Dec 2012 08:26:58 -0000      1.80
@@ -1,5 +1,12 @@
 GNUnited Nations NEWS - User visible changes.
 
+* Changes in GNUnited Nations 0.8 (????-??-??)
+
+** Bugs fixed in 0.8.
+
+*** `gnun-diff-po' didn't highlight the differences in the messages
+    whose whole translations were removed or added.
+
 * Changes in GNUnited Nations 0.7 (2012-12-27)
 
 ** GNUmakefile.team enhancements:

Index: gnun-diff-po.in
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/gnun-diff-po.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- gnun-diff-po.in     17 Dec 2012 06:51:59 -0000      1.3
+++ gnun-diff-po.in     30 Dec 2012 08:26:59 -0000      1.4
@@ -172,8 +172,13 @@
 # with their previous versions; the obsolete strings are removed because
 # the script can confuse them with current versions and provide the diffs
 # against the translations of obsolete strings.
address@hidden@ --clear-fuzzy --no-obsolete "$to_file" > "$temp4"
address@hidden@ --clear-fuzzy --no-obsolete "$from_file" | @MSGCAT@ - "$temp4" \
+
+# Sed provides "empty" (from wdiff's point of view) translations
+# for untranslated msgids in order to show new and removed translations.
address@hidden '/^msgstr ""/ { N; s/^msgstr ""\n$/msgstr " "\n/ }' "$to_file" \
+  | @MSGATTRIB@ --clear-fuzzy --no-obsolete - > "$temp4"
address@hidden '/^msgstr ""/ { N; s/^msgstr ""\n$/msgstr " "\n/ }' "$from_file" 
\
+  | @MSGATTRIB@ --clear-fuzzy --no-obsolete - | @MSGCAT@ - "$temp4" \
   | @MSGEXEC@ @pkglibexecdir@/po-msg-diff "$temp" "$temp1" "$temp2"
 
 cat <<EOF



reply via email to

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