Skip to contentSkip to conversation

Fixed translation error (say(_())) functions

PATCH In review Alangi Derick 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixed translation error (say(_())) functions

---
 base85.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
base85.c +2 -2
index 5ca601e..4160f44 100644
@@ -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"));
 	while (bytes) {
 		unsigned acc = 0;
 		int cnt;
@@ -96,7 +96,7 @@ void encode_85(char *buf, const unsigned char *data, int bytes)
 		}
 		buf += 5;
 	}
-	say("\n");
+	say(_("\n"));
 
 	*buf = 0;
 }
Signature · 1 line
2.4.0.1.gd092831.dirty
#1 lore raw

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).

Quoted 1 line · Alangi Derick

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.

Quoted 10 lines
---
 base85.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
base85.c +0 -0
index 5ca601e..4160f44 100644

base85.c int decode_85(char *dst, const char *buffer, int len) · line 81

Quoted 5 lines
base85.c +1 -1
@@ -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.

base85.c void encode_85(char *buf, const unsigned char *data, int bytes) · line 99

Quoted 6 lines
base85.c +1 -1
@@ -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,

Signature · 2 lines
Matthieu Moy
http://www-verimag.imag.fr/~moy/