[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Translation format glitch
From: |
Göran Uddeborg |
Subject: |
Translation format glitch |
Date: |
Sat, 23 Sep 2006 18:18:48 +0200 |
In version 2.3a of bison there is this code:
fputs (_("\
Report bugs to <" PACKAGE_BUGREPORT ">.\n"), stdout);
Unless I'm mistaken, this won't work. The compiler will concatenate
the string su bstituted for PACKAGE_BUGREPORT and the two literate
strings to one. The result will be sent to gettext (a.k.a. "_"). But
that composed string will not be among the translated messages.
Actually, only the string "Report bugs to <" appear in the PO file.
The simplest solution is probably to use printf instead:
printf(_("Report bugs to <%s>.\n"), PACKAGE_BUGREPORT);
That should work fine for translation, and will give the same output.
- Translation format glitch,
Göran Uddeborg <=