[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    l10n/xx/internal
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2005-09-29 10:01:29
Message-ID: 1127988089.400373.5208.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 465278 by goutte:

- allow a verbose mode (showing which file is currently processed)
- check that the msgmerge has not failed
- use --no-fuzzy-match for the msgmerge (as no fuzzy is expected)


 M  +7 -1      update_xx.sh  


--- trunk/l10n/xx/internal/update_xx.sh #465277:465278
@@ -8,6 +8,7 @@
     exit 1
 fi
 for i in $list; do 
+    test -z "VERBOSE" || echo "# templates/$i"
     transxx templates/$i > new.po 
     dirname=xx/`dirname $i`
     test -d $dirname || svn mkdir $dirname
@@ -18,7 +19,12 @@
          mv new.po $dest.broken
          continue
     fi
-    msgmerge -o new.po new.po templates/$i
+    if ! msgmerge --no-fuzzy-matching -o new.po new.po templates/$i; then
+        echo "Merging failed for $dest"
+        # keep the wrong data around, to be able to debug transxx
+        mv new.po $dest.broken
+        continue
+    fi
     ./scripts/msgsplit new.po
     if test ! -f $dest; then
         mv new.po $dest
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic