GNOME Bugzilla – Bug 324692
Incorrect duplicate-accel message
Last modified: 2006-02-16 00:43:21 UTC
On startup (in terminal) I get this error message: ** (gnumeric:7845): WARNING **: In het menu `Be_werken' wordt de toets `n' zowel gebruikt voor `Op_nieuw' als voor `K_nippen'. Which means: In the `Edit' menu, the key `n' is used for both `Op_nieuw' and `K_nippen'. This would be very nice, but it's not true. `Opnieuw' (Redo) is translated as `Opni_euw'. So the error message is incorrect. You can check with: msgunfmt /usr/share/locale/nl/LC_MESSAGES/gnumeric.mo | grep -A 1 "Redo" msgunfmt /usr/share/locale/nl/LC_MESSAGES/gnumeric.mo | grep -A 1 "Cu_t" You will see that they don't conflict.
Look at what is actually in the menu. That's what matters. Please supply a screenshot with the edit menu open.
Vincent, if I run the commands you suggest I get a double use of the 'n' key: [aguelzow@kirkman ~]$ msgunfmt /usr/share/locale/nl/LC_MESSAGES/gnumeric.mo | grep -A 1 "Redo" msgid "Redo" msgstr "Opnieuw" -- msgid "Redo the undone action" msgstr "De ongedaan gemaakte actie opnieuw uitvoeren" -- msgid "_Redo" msgstr "Op_nieuw" [aguelzow@kirkman ~]$ msgunfmt /usr/share/locale/nl/LC_MESSAGES/gnumeric.mo | grep -A 1 "Cu_t" msgid "Cu_t" msgstr "K_nippen" [aguelzow@kirkman ~]$
Created attachment 56290 [details] screenshot of bug The screenshot shows the open edit menu (bewerken). You can see the error in the terminal. It's strange that you do have the double n bindings. We need to fix that. But in cvs HEAD (and in my 1.6.1) it's fixed.
And I said fixed because it used to be a problem. Please take a look at bug #310874 for some more info on that.
Forgot to change back
When we build the interface and do the key check, we are using the redo translation from gtk+: > msgunfmt /opt/gnome/share/locale/nl/LC_MESSAGES/gnumeric.mo | grep -A1 Cu_t msgid "Cu_t" msgstr "K_nippen" Later we are using the dynamically-created text and translation from Gnumeric. The complaint is thus wrong, but I am not 100% sure how to fix it. Ignore it for now.
When is the check performed? On creation of the menus? Can we not do the check later then....or create the dynamic menu entries immediately?
I believe that adding wb_control_undo_redo_labels (WORKBOOK_CONTROL (wbcg), "", ""); in function wbc_gtk_init just before gtk_container_foreach (GTK_CONTAINER (gtk->menu_zone), (GtkCallback)check_underlines, (gpointer)""); might fix the problem, but I am not able to test it myself.
Never mind, I found a test machine and the fix works for me.
Verified by patching my gnumeric...the error message does indeed disappear. Great job Morten. Thank you very much.