Re: [PATCH 10/22] convert.c: mark more strings for translation
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jun 3, 2018, 08:46 UTC
- Message-ID
- <CAPig+cRP65ioZ15RvTuyCqxYJY4wDAYtCepQ0kM1-g=q9rzueQ@mail.gmail.com>
- In-Reply-To
- <20180602043241.9941-11-pclouds@gmail.com>
On Sat, Jun 2, 2018 at 12:32 AM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 20 quoted lines
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
> diff --git a/convert.c b/convert.c
> @@ -203,11 +203,11 @@ static void check_global_conv_flags_eol(const char *path, enum crlf_action crlf_
> if (conv_flags & CONV_EOL_RNDTRP_DIE)
> - die(_("CRLF would be replaced by LF in %s."), path);
> + die(_("CRLF would be replaced by LF in %s"), path);
> else if (conv_flags & CONV_EOL_RNDTRP_WARN)
> warning(_("CRLF will be replaced by LF in %s.\n"
> "The file will have its original line"
> - " endings in your working directory."), path);
> + " endings in your working directory"), path);
> @@ -217,7 +217,7 @@ static void check_global_conv_flags_eol(const char *path, enum crlf_action crlf_
> else if (conv_flags & CONV_EOL_RNDTRP_WARN)
> warning(_("LF will be replaced by CRLF in %s.\n"
> "The file will have its original line"
> - " endings in your working directory."), path);
> + " endings in your working directory"), path);
> }
> }For these two, perhaps:
<blah> ... replace by <blah> in %s;
the file will have its original line
endings in your working directoryShow 8 quoted lines
> @@ -492,8 +492,8 @@ static int encode_to_worktree(const char *path, const char *src, size_t src_len,
> dst = reencode_string_len(src, src_len, enc, default_encoding,
> &dst_len);
> if (!dst) {
> - error("failed to encode '%s' from %s to %s",
> - path, default_encoding, enc);
> + error(_("failed to encode '%s' from %s to %s"),
> + path, default_encoding, enc);The whitespace change on the second line fixes alignment with the opening '('. Okay.