GNOME Bugzilla – Bug 669633
The application menu won't show translated messages.
Last modified: 2012-02-08 09:42:10 UTC
The application menu won't show translated messages. It shows the English messages. [Steps to reproduce] 1. Set locale variables (ex: $ export LANG=ja_JP.utf8) 2. Run Epiphany on the GNOME Shell 3. Click the the application icon on the top bar to open the application menu. 4. The menu won't show the translated strings (it shows the English strings). [Cause] That is because the translation domain of the GtkBuilder of the app-menu is not set. You should call gtk_builder_set_translation_domain() after you create the builder.
Created attachment 207058 [details] [review] a patch for this bug Set the translation domain of the buildoer of the application menu. Please review it.
Review of attachment 207058 [details] [review]: This indeed solves the problem. But, why is it that GtkApplication is unaware of its translation_domain? Other menus and UI elements get their translations properly and we are never calling this GtkBuilder API.
Did research. Wrote gigaenormous comment. Ended up fixing the bugs instead: - Bug 669638 - gtkbuilder-menus: translation-domain can be NULL - Bug 669636 - gtkactiongroup: clarify set_translation_domain docs So it is a GTK+ bug, no need to explicitely set the translation-domain!
GTK+ bugs fixed, this works fine now! Thanks Jiro!