Translations of combobox items in GNOME are not being used

Bug #381041 reported by Thanos Lefteris
12
This bug affects 2 people
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-pack-gnome-el-base (1:9.04+20090413) jaunty.

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-pack-gnome-el-base-9.04+20090413/data/el/LC_MESSAGES/gnome-terminal.po

#: ../src/profile-preferences.glade.h:9
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.

Tags: greek l10n
Revision history for this message
Thanos Lefteris (alefteris) wrote :
description: updated
Revision history for this message
Thanos Lefteris (alefteris) wrote :

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">
        <property name="visible">True</property>
        <property name="items" translatable="yes">On the left side
On the right side
Disabled</property>
        <property name="add_tearoffs">False</property>
        <property name="focus_on_click">True</property>
      </widget>

Po:

#: ../src/profile-preferences.glade.h:35
msgid ""
"On the left side\n"
"On the right side\n"
"Disabled"
msgstr ""
"στην αριστερή πλευρά\n"
"στη δεξιά πλευρά\n"
"απενεργοποιημένηηηηη" <---- Changed that on purpose

2nd:

Source Code:

./src/terminal-accels.c: return g_strdup (_("Disabled"));

Po:

#: ../src/terminal-accels.c:281
msgid "Disabled"
msgstr "Απενεργοποιημένοooo" <---- Changed that on purpose also

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.

Revision history for this message
Thanos Lefteris (alefteris) wrote :

This problem appears in Fedora 11 also, so its not something to do with ubuntu's lang packs system or something similar.

affects: ubuntu → gnome-terminal (Ubuntu)
Changed in gnome-terminal:
status: Unknown → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

do you have the bug number on the fedora bug tracker? otherwise there's no sense on opening a task for it.

Changed in gnome-terminal (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in gnome-terminal (Fedora):
status: New → Invalid
Changed in gnome-terminal (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
Revision history for this message
Viliam Dias (viliam.dias) wrote :

I understend that...

A text with multiples lines can't be used as msgid in PO file when the text lines are combobox items.

Why?

The source generated by glade/gtkbuilder tries to catch the translated text for each combobox item (line) and never found them.

For example, the attached patch fix the problem for pt_BR; translating each combobox item as individual msgid.

Until I could see, this is a problem in ALL gtk applications.

IMHO the best solution whould be glade/gtkbuilder fix this when the UI source is generated. But I do not see how this could be possible with current gtk API[1].

So... what do you think about this? :-)

[1] http://library.gnome.org/devel/gtk/2.16/GtkComboBox.html#gtk-combo-box-append-text

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-terminal - 2.28.0-0ubuntu1

---------------
gnome-terminal (2.28.0-0ubuntu1) karmic; urgency=low

  * New upstream release (LP: #434162)
    - many bug fixes: (LP: #359759, #381041, #340091, #345189)
    - updated translation
  * Bump libvte-dev to 0.21.5

 -- Didier Roche <email address hidden> Tue, 22 Sep 2009 10:41:40 +0200

Changed in gnome-terminal (Ubuntu):
status: Triaged → Fix Released
Changed in gnome-terminal:
importance: Unknown → Medium
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.