Localization

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Thu Oct 11 07:17:25 PDT 2012


Den 11.10.12 16:03, skrev Dirk Hohndel:
> Henrik Brautaset Aronsen <subsurface at henrik.synth.no> writes:
>
>> Den 11.10.12 15:00, skrev Henrik Brautaset Aronsen:
>>>> Looking at this in more detail I realized that the menu entries that
>>>> aren't localized in Norwegian are the ones where we use GTK_STOCK_xxx
>>>> and then NULL as text for the menu entry. Apparently those default texts
>>>> are missing from Gtk's Norwegian localization? It would be easy enough
>>>> to simply have all the texts there and localize them, I guess.
>>> Nice find! I'll add them.
>> Easier said than done.  I tried adding them (see the attached patch),
>> but I couldn't see any changes in the menus.
> Err, yeah, that will take changes to the C code as well. I'll do that,
> make the .po file modifications and then apply the patch below (which
> certainly won't apply as is but we can call that a merge) :-)

There might be some implicit localization support already, see [1].

Also, is it possible that we want to use g_dgettext() [2] instead of 
gettext()?

H

[1] 
http://developer.gnome.org/gtk/2.24/gtk-Stock-Items.html#gtk-stock-set-translate-func
[2] http://developer.gnome.org/glib/unstable/glib-I18N.html#g-dgettext



More information about the subsurface mailing list