After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 136034 - Translations "sr" and "sr@Latn" are both displayed in Nautilus context menus
Translations "sr" and "sr@Latn" are both displayed in Nautilus context menus
Status: RESOLVED OBSOLETE
Product: bonobo
Classification: Deprecated
Component: libbonobo
CVS HEAD
Other Linux
: Normal major
: ---
Assigned To: Michael Meeks
bonobo qa
Depends on:
Blocks:
 
 
Reported: 2004-03-03 04:47 UTC by Danilo Segan
Modified: 2006-08-21 13:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Danilo Segan 2004-03-03 04:47:37 UTC
When running in sr_YU locale, Nautilus context menu displays both "sr" and
"sr@Latn" translations for name property in .server files (eg. those of
File Roller, or Rhythmbox).

Basically, the correct behaviour would be to try one until a translation is
found, and not to go through the rest of the translations.  

This kind of solution may cause a problem when running in sr_YU@Latn
locale, when "sr" might match first (because it's first in the file), even
though it's not the best match.  So, perhaps the best would be to delay
adding items to context menu until all translations are looked at, and then
add only the last one considered the best.

Though, I didn't read the code, and I may be waaaay off (this may even be a
bug in libbonobo instead -- I'm too tired to think about it now, but I
don't want to forget about reporting this).
Comment 1 Danilo Segan 2004-03-03 04:50:22 UTC
Also not to forget: bonobo-activation/server/object-directory-load.c,
function parse_oaf_attribute() parses the properties, but I didn't run
etags yet to try to follow all the function definitions there.
Comment 2 Michael Meeks 2004-03-03 10:15:19 UTC
The bug is most likely to be in:

libbonobo/bonobo-activation/bonobo-activation-get-language-list.c
whichi is an ugly cut/paste of other code in libgnome or somesuch; it
needs comparing back with that to see if there are fixes elsewhere
and/or fixing to cope with your oddly named locale ;-)

HTH.
Comment 3 Kjartan Maraas 2006-08-15 16:38:36 UTC
Is this problem still there Danilo?
Comment 4 Danilo Segan 2006-08-21 13:22:13 UTC
I didn't see it in a long while.  If needed, I'll reopen it.