maemo.org Bugzilla – Bug 1455
application names are not translated in the menu
Last modified: 2009-03-02 13:38:13 UTC
You need to
before you can comment on or make changes to this bug.
This concerns maemo-af-desktop / hildon-desktop.
When you have an application that installs a .desktop which does its
translation with in-desktop strings (e.g. Name[de]=MeineApplikation) instead of
using the (btw totally undocumented) "X-Text-Domain" key, the application name
will show up untranslated in the menu.
If I'm not mistaken, the code for this for sardine now resides in
hildon-desktop/libhildondesktop/libhildonmenu.c, where we find this:
item->name = g_key_file_get_string(
item->name is later put into the model column TREE_MODEL_NAME, and used as the
button's name in src//hn-others-button.c :
/* Application */
menu_item = hildon_thumb_menu_item_new_with_labels (
(item_text_domain && *item_text_domain)?
/* work around strange behaviour of gettext for
* empty strings
(item_comment && *item_comment)?_(item_comment):"");
[BTW: where is item_text_domain ever bound? bindtextdomain is only called for
the default domain.]
So I think the solution would simply be to use g_key_file_get_locale_string to
get item->name. And also to not call dgettext ("maemo-af-desktop", - ) on my
In which release this happens? I think it worked in N770.
This is on the N800 with maemo 3.1.
No code changes for Diablo at the mentioned places, so most probably not fixed.
Christian, interested in coming up with a patch?
(In reply to comment #3)
> No code changes for Diablo at the mentioned places, so most probably not fixed.
> Christian, interested in coming up with a patch?
I'm afraid I can't, since I don't have a full maemo development environment at
this time, nor the space and time to set one up.
According to Nokia
"this is now fixed. Individual applications might still need fixed, but it is
responsibility of each individual application to handle this."
Please file a new bug if you run into a specific Maemo application still doing
this wrong in Fremantle (I know that's talking about the future because the
Fremantle beta is not out yet) and add a reference to this bug report.