]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
localize user-visible warnings and tack on missing newlines
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 11 Sep 2009 22:22:06 +0000 (18:22 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 11 Sep 2009 22:22:06 +0000 (18:22 -0400)
IkiWiki/Plugin/rsync.pm

index 9afbe948728507c5a72fbea480919c6c43ddd15c..a62347a44d1fdfe708f7af03ceaafe4b5bc5b3b9 100644 (file)
@@ -30,10 +30,10 @@ sub postrefresh () {
                chdir($config{destdir}) || error("chdir: $!");
                system $config{rsync_command};
                if ($? == -1) {
-                       warn("failed to execute rsync_command: $!");
+                       warn(sprintf(gettext("failed to execute rsync_command: %s"), $!))."\n";
                }
                elsif ($? != 0) {
-                       warn(sprintf("rsync_command exited %d", $? >> 8));
+                       warn(sprintf(gettext("rsync_command exited %d"), $? >> 8))."\n";
                }
        }
 }