]> git.lyx.org Git - lyx.git/commitdiff
Corrected displayed file-name for fuzzy and untranslated messages in diff_po.pl
authorKornel Benko <kornel@lyx.org>
Thu, 26 Sep 2013 09:34:05 +0000 (11:34 +0200)
committerKornel Benko <kornel@lyx.org>
Thu, 26 Sep 2013 09:34:05 +0000 (11:34 +0200)
po/diff_po.pl

index cd4d3ef88785707eddecda4248a780442adbfdf8..65462d85b57383269ce34593c29013d9e54288a2 100755 (executable)
@@ -235,7 +235,9 @@ sub diff_po($$)
     if ($param eq "-L") {
       my $name = shift(@args);
       push(@names, $name);
-      $switchargs = 1;
+    }
+    else {
+      # ignore other options
     }
   }
   if (! defined($names[0])) {
@@ -249,11 +251,6 @@ sub diff_po($$)
     die("names = \"", join('" "', @names) . "\"... args = \"" . join('" "', @args) . "\" Expected exactly 2 parameters");
   }
 
-  if ($switchargs) {
-    my $tmp = $args[0];
-    $args[0] =  $args[1];
-    $args[1] = $tmp;
-  }
   &check_po_file_readable($names[0], $args[0]);
   &check_po_file_readable($names[1], $args[1]);
 
@@ -390,7 +387,7 @@ sub printExtraMessages($$$)
   my @sortedExtraKeys = sort { $a <=> $b;} keys %{$rExtra};
 
   if (@sortedExtraKeys > 0) {
-    print "Still " . 0 + @sortedExtraKeys . " $type messages found in $rNames->[0]\n";
+    print "Still " . 0 + @sortedExtraKeys . " $type messages found in $rNames->[1]\n";
     for my $l (@sortedExtraKeys) {
       print "> line $l: \"" . $rExtra->{$l} . "\"\n";
     }