add --previous at bubulle's suggestion
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 22 Jul 2009 15:48:49 +0000 (17:48 +0200)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 22 Jul 2009 15:48:49 +0000 (17:48 +0200)
IkiWiki/Plugin/po.pm

index 193cf0a543a24f05c5221eb1b8557d83ba38e98e..8f169fda59dff443e1189f49af52453d5fd7c641 100644 (file)
@@ -828,7 +828,7 @@ sub refreshpofiles ($@) {
        foreach my $pofile (@pofiles) {
                IkiWiki::prep_writefile(basename($pofile),dirname($pofile));
                if (-e $pofile) {
-                       system("msgmerge", "-q", "-U", "--backup=none", $pofile, $potfile) == 0
+                       system("msgmerge", "--previous", "-q", "-U", "--backup=none", $pofile, $potfile) == 0
                                or error("po(refreshpofiles) ".
                                         sprintf(gettext("failed to update %s"),
                                                 $pofile));