Translations of combobox items in GNOME are not being used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Terminal |
Fix Released
|
Medium
|
|||
gnome-terminal (Fedora) |
Invalid
|
Undecided
|
Unassigned | ||
gnome-terminal (Ubuntu) |
Fix Released
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
For some comboboxes in gtk apps, the combobox items show untranslated, even thought their msgids are translated in the corresponding po files. I have seen this issue in nautilus preferences and in gnome-terminal preferences dialogs. I have checked that the msgs are translated by looking at the appropriate po files in the source package of language-
This problem seems to affect Jaunty only, as in Intrepid the combox items appear translated.
An example:
$ grep -B 6 -A 6 "Escape sequence" language-
#: ../src/
msgid ""
"Automatic\n"
"Control-H\n"
"ASCII DEL\n"
"Escape sequence"
msgstr ""
"Αυτόματη\n"
"Control-H\n"
"ASCII DEL\n"
"Ακολουθία διαφυγής"
From the previous you can see that "Escape sequence" is translated in Greek as "Ακολουθία διαφυγής". But in the attached screen you can see that the translation is not being used.
affects: | ubuntu → gnome-terminal (Ubuntu) |
Changed in gnome-terminal: | |
status: | Unknown → Confirmed |
Changed in gnome-terminal (Ubuntu): | |
assignee: | nobody → Ubuntu Desktop Bugs (desktop-bugs) |
Changed in gnome-terminal: | |
importance: | Unknown → Medium |
status: | Confirmed → Fix Released |
I tried to change the po, to see from where the strings presented in the ui are picked up from. For a combobox in the gnome-terminal preferences here are the two places that contain the string "Disabled":
1st:
Source Code (in glade file):
<widget class="GtkComboBox" id="scrollbar- position- combobox" > >True</ property> "yes">On the left side tearoffs" >False< /property> on_click" >True</ property>
<property name="visible"
<property name="items" translatable=
On the right side
Disabled</property>
<property name="add_
<property name="focus_
</widget>
Po:
#: ../src/ profile- preferences. glade.h: 35 νηηηηη" <---- Changed that on purpose
msgid ""
"On the left side\n"
"On the right side\n"
"Disabled"
msgstr ""
"στην αριστερή πλευρά\n"
"στη δεξιά πλευρά\n"
"απενεργοποιημέ
2nd:
Source Code:
./src/terminal- accels. c: return g_strdup (_("Disabled"));
Po:
#: ../src/ terminal- accels. c:281 νοooo" <---- Changed that on purpose also
msgid "Disabled"
msgstr "Απενεργοποιημέ
Now, when I compile the po and use it with the app, what happens is that in the combobox, only "Disabled" gets translated as "Απενεργοποιημέ νοooo" (from the 2nd case). The other combobox entries are left untranslated.