git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fixed translation error (say(_())) functions

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
May 4, 2015, 15:19 UTC
Message-ID
<vpqpp6ggyjy.fsf@anie.imag.fr>
In-Reply-To
<554769df.43c8c20a.4b7f.ffffc3cb@mx.google.com>

It seems you are posting putting the list in Bcc. Don't do that: it makes it painful to reply to your message (I had to re-add git@vger manually).

Alangi Derick <alangiderick@gmail.com> writes:
> Subject: [PATCH] Fixed translation error (say(_())) functions

Please, read the "(2) Describe your changes well." section of SubmittingPatches (actually, read the whole document if not done already, but particularly this section). Your subject does not adhere the usual format.

Show 15 quoted lines
> Signed-off-by: Alangi Derick <alangiderick@gmail.com>
> ---
>  base85.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/base85.c b/base85.c
> index 5ca601e..4160f44 100644
> --- a/base85.c
> +++ b/base85.c
> @@ -78,7 +78,7 @@ int decode_85(char *dst, const char *buffer, int len)
>  
>  void encode_85(char *buf, const unsigned char *data, int bytes)
>  {
> -	say("encode 85");
> +	say(_("encode 85"));

These are debug statements (see the top of base85.c). I don't think you want to translate them.

Show 6 quoted lines
> @@ -96,7 +96,7 @@ void encode_85(char *buf, const unsigned char *data, int bytes)
>  		}
>  		buf += 5;
>  	}
> -	say("\n");
> +	say(_("\n"));

Same, plus the fact that a \n would not need to be translated anyway I guess.

Regards,
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Alangi Derick
Message 2 of 2 in “Fixed translation error (say(_())) functions”
  1. Fixed translation error (say(_())) functionsAlangi Derick, May 3, 2015
  2. Matthieu MoyMay 4, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.