Problem with Translations

Dave Peticolas dave@krondo.com
23 Jun 2001 19:50:32 -0700


On 23 Jun 2001 17:31:10 +0200, Christian Krause wrote:
> Hi,
> 
> After setting LANG=de_DE only some parts of gnucash (1.6.0) are
> translated in german.
> 
> translated: Dialogs, Reports-Menu and other
> not translated: Menu (File, Tools, Account ...), Buttons (Save, Close,
> ... (when display both, text and icon, or only text))
> 
> e.g. the menu "Settings": in de.po is the correct translation:
> #: src/gnome/window-main.c:1068
> msgid "_Settings"
> msgstr "_Einstellungen"
> 
> but in src/gnome/window-main.c:
> GNOMEUIINFO_SUBTREE(N_("_Settings"), gnc_settings_menu_template),
>                     ^^
>                     this is defined in src/messages.h
>                     #define N_(String) (String)
> 
> I don't understand, how this construct should work.
> 
> It seems, that all strings using this N_(" ... ") construct aren't
> translated even there is a translation for these strings in the .po file.

This is not a bug -- the gnome/gtk menu routines will apply the
gettext conversion to the strings before they are displayed. I'm
not sure why you aren't seeing the right strings. On my system
with LANG=de_DE, I see the correct translations in the menu.

dave