[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [patch] getting shortcut explanations translated again

From: Benno Schulenberg
Subject: Re: [Nano-devel] [patch] getting shortcut explanations translated again
Date: Mon, 17 Mar 2008 23:00:25 +0100
User-agent: KMail/1.9.9

Chris Allegretta wrote:
> I didnt know you had to gettextize a variable if the text that
> was stored in it was already gettextized.

Strings that are surrounded with N_() are not really gettextized; 
N_() is an alias for gettext_noop(), which just marks a string as 
translatable, so xgettext will put it in a POT file.  To get such 
strings localized, a real calll to gettext() or _() has to be made
when the string is actually used.

Hmm, I just notice that the two help lines at the bottom aren't
getting translated yet.  Another call to gettext() is needed.  
The patch below adds it.


Index: src/winio.c
--- src/winio.c (revision 4234)
+++ src/winio.c (working copy)
@@ -2349,7 +2349,7 @@
 #ifdef DEBUG
         fprintf(stderr, "Calling onekey with keystr \"%s\" and desc \"%s\"\n", 
-       onekey(s->keystr, f->desc, colwidth + (COLS % colwidth));
+       onekey(s->keystr, _(f->desc), colwidth + (COLS % colwidth));

reply via email to

[Prev in Thread] Current Thread [Next in Thread]