X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/912521ef0711204965aa2319d41c7741bd3f4f4c..5a128f3d6333b16200512b33b5265b1b1e8f3837:/IkiWiki/Wrapper.pm diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index e761085fb..8c363cc11 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -59,6 +59,8 @@ EOF $configstring=~s/"/\\"/g; $configstring=~s/\n/\\\n/g; + #translators: The first parameter is a filename, and the second is + #translators: a (probably not translated) error message. open(OUT, ">$wrapper.c") || error(sprintf(gettext("failed to write %s: %s"), "$wrapper.c", $!));; print OUT <<"EOF"; /* A wrapper for ikiwiki, can be safely made suid. */ @@ -94,6 +96,7 @@ $envsave EOF close OUT; if (system("gcc", "$wrapper.c", "-o", $wrapper) != 0) { + #translators: The parameter is a C filename. error(sprintf(gettext("failed to compile %s"), "$wrapper.c")); } unlink("$wrapper.c"); @@ -101,7 +104,9 @@ EOF ! chmod(oct($config{wrappermode}), $wrapper)) { error("chmod $wrapper: $!"); } - printf(gettext("successfully generated %s\n"), $wrapper); + #translators: The parameter is a filename. + printf(gettext("successfully generated %s"), $wrapper); + print "\n"; } #}}} 1