Thread (1 message) 1 message, 1 author, 2016-09-25

Re: [PATCH v2 03/11] i18n: add--interactive: mark strings with interpolation for translation

From: Junio C Hamano <hidden>
Date: 2016-09-25 22:58:01

Vasco Almeida [off-list ref] writes:
quoted hunk
@@ -1048,7 +1048,7 @@ sub edit_hunk_manually {
 	my $hunkfile = $repo->repo_path . "/addp-hunk-edit.diff";
 	my $fh;
 	open $fh, '>', $hunkfile
-		or die "failed to open hunk edit file for writing: " . $!;
+		or die sprintf(__("failed to open hunk edit file for writing: %s"), $!);
OK, $! presumably is given in the user's language, so we let
translators prepare the error-specific text and interpolate $! into
it.

Makes sense.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help