GNOME Bugzilla – Bug 127004
[PATCH] Keyboard Shortcuts dialog too wide
Last modified: 2004-12-22 21:47:04 UTC
The dialog displayed by gnome-keybinding-properties 2.4.0 is too wide when using the French locale (e.g., fr_CA). This seems to be due to the length of some translations. To reproduce: LC_ALL=fr_CA gnome-keybinding-properties The dialog's width is about a thousand pixels. The first shortcut displayed under the Desktop (Bureau) category is "Show the panel run dialog", which in French is "Affiche la boîte de dialogue de lancement d'applications du tableau de bord." One other string is even longer than this one. Since both columns of the table take the width of the widest string, the dialog becomes very wide. Perhaps there could be a policy for the translation teams to use abbreviations where possible to keep the translations at about the same length as the English original. This problem happens in several GNOME/GTK+ applications. Another idea would be to avoid having *both* columns of the table be the same width. The 2nd column in this case does not need to be wide.
Not setting the columns to be the same width should fix it.
Columns area not set to the same width. The problem is the second column has it size fixed by the string "Type a new accelerator, or backspace to clear" (and a longer sentence in french), which is visible when you select a row. Please find a patch that set the sentence to only "<New accelerator...>" and displays an information below tree. (tree row seems a strange place to display information to user).
Created attachment 22782 [details] [review] Patch
Created attachment 22783 [details] [review] A real patch, forget the former :)
*** Bug 130575 has been marked as a duplicate of this bug. ***
Changing Priority -> High (patch) and changing Summary to better reflect issue.
I usually test this sort of thing in German but it looks like French wins the run-on-translated-sentence this time around. Lets see if the translation team will ok it.
From a quick glance at the patch, I'm not sure how the defined TOOLTIP_TEXT is supposed to get translated?
I guess this line: #define TOOLTIP_TEXT "<New accelerator...>" should be changed to: static char TOOLTIP_TEXT=N_("<New accelerator...>");
Created attachment 24539 [details] [review] Message can be extracted from xgettext now
damn this slipped through the cracks It should go into 2.6.1
Applied