Some strings don't get translated
Christian Stimming
stimming@tuhh.de
Sun, 27 Oct 2002 20:11:38 +0100
-----BEGIN PGP SIGNED MESSAGE-----
This is a call for help, since some strings in the HBCI module simply don't
get translated. I enclosed them in the right gettext macros, I translated
them in the de.po catalog, but the translation nevertheless doesn't show
during runtime.
Here's an example. In the file src/import-export/hbci/hbci-interaction.c Line
366 I have a string defined:
/* xgettext:c-format */
data->format_pin_user_bank = _("Please enter PIN for \n"
"user '%s' at bank '%s'.");
I use that later as the format string argument to g_strdup_sprintf but that's
not the point here. The point is that due to the _() macro, the pointer
format_pin_... now should point to the translated version of that string. The
translation in the message catalog exists. For example for German, that would
be
#: src/import-export/hbci/hbci-interaction.c:361
#, c-format
msgid ""
"Please enter PIN for \n"
"user '%s' at bank '%s'."
msgstr ""
"Bitte die PIN für \n"
"Benutzer '%s' der Bank '%s' eingeben."
The problem is that in the source code of hbci-interaction.c, this translation
never shows up. The variable format_pin_user_bank simply contains the pointer
to the *untranslated* string (as I have checked with some printf's). I have
*no* idea whatsoever how this can happen. Anybody?
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQCVAwUBPbw6cGXAi+BfhivFAQF5MwQAh6ZJLX2F3yGgyzyuMoazSTz9vILTSNvt
V2W36uH4AwzOuyj+KVArmGogADPrho5Jtlh7vbKuAP00zcgfpmulpvGQ1WLYTfVz
cHSxB0OBOkYV6JceYxGLd0azJjgcMCw+oScGS71Q3vcSqzgUue0PrRbdSXbM1fCZ
leUsFevxyCM=
=4GTj
-----END PGP SIGNATURE-----