-----BEGIN PGP SIGNED MESSAGE----- Various people are still reporting the problems with menu insertion, where the symption are console messages like
GnomeUI-WARNING **: gnome_app_insert_menus_custom: couldn't find insertion point for menus! You don't get that in LANG=C and also not for a number of other relatively-western locales (e.g. da_SK, sv_SE, da_DK, de_DE for fine on my system), but with other locales these problems keep on coming. On my system, these are e.g. fr_FR, ru_RU, zh_TW. When you uncomment the fprintf in gnc-menu-extensions.c:357, it turns out that these problems occur when we address something inside a menu that has been created through the macros GNOMEUIINFO_MENU_*, described in Gnome-UI's page about gnome-app-helper. This means that at creation time, gnucash doesn't know any of the strings that will later make up this menu; instead, gnucash only uses the macros from gnome-app-helper. Opposed to that, during the addition of the menu extensions (gnc-menu-extensions.c) the menus are addressed through various strings (e.g. "Edit/_Preferences...") -- even though gnucash didn't know the strings in the first place! The strings that we use in the gnc-menu-extensions code are not more than rough guesses. And that's why IMHO they only work in those locales where the developers have "guessed right", namely the C locale and its closest relatives. For example, it's unclear at which points the gnome-app code needs the menu item names translated, or not translated, or with underscore, or without. In locales where the item translations (provided by gnucash's po file) happens to match with the system-wide Gnome translation of that menu item, things seem to work fine -- but e.g. in fr_FR, the system-wide translation of "_Edit" is different from the translation in gnucash's po file, and IMHO that's why the insertion in these places fails. I think the only real locale-independent solution is that gnc-menu-extensions switches its menu "addressing"/lookup to use only the gnome-app macros for those menus that have been created though the macros. More comments? Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iQCVAwUBPeiwDmXAi+BfhivFAQFMJAQAjH4T2o82dbyfB/C4JtohwvTNG5CBFKcm NkvAe3TIF1EaPH30h7zOOG0WsbVOSqUfGF9CQlac8ABwu7V6t1mxnqv7+4NJ3ynK 9+shuPSnXorbGwZA4gAhniCL0k1b0oXR0ZueVP9VsQTZ51Jwfmz5dl6Yf4lU38ML x5RDMBRcpUg= =jzYs -----END PGP SIGNATURE----- _______________________________________________ gnucash-devel mailing list [EMAIL PROTECTED] http://www.gnucash.org/cgi-bin/mailman/listinfo/gnucash-devel
