[gstreamer-bugs] [Bug 377306] gnome-volume-control does not localize the label.

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Feb 22 05:32:08 PST 2007


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=377306

  GStreamer | gst-plugins-base | Ver: HEAD CVS





------- Comment #13 from Takao Fujiwara  2007-02-22 13:30 UTC -------
OK, I understand either the additional translated_label or untranslated_label
is not an option because of ABI.

However I may not understand your suggestion exactly. Please let me confirm the
possible way.

> 1) we add setters/getters and store the untranslated
>    string privately somewhere (ie. not in the struct), or

If I correctly understand, it seems gst-mixer will do like:

gst_mixer_set_label (track, "Volume");
gui_label = _("Volume");

If yes, how to determine the track is the "Volume"?
As you know, the current gst-mixer compares the track->label to determine the
icon.
Could you give me advices?

> 2) or we instead add an optional get_type_hint() method to the
>    mixer interface structure to get an icon/type hint enum, so

In this sugggestion, which do you expect track->label is C(English) or
localized as the specification?
If track->label is English, I think we need an additional API, e.g. 

gui_label = gst_mixer_get_translation (track->label);

If track->label is localized, I think we also need the English label because
g_ascii_isalnum() does not work for multibyte chars as I mentioned in the
previous comment.

I guess the another way is gst-mixer use the icon hint instead of track->label.

What do you think?

Thanks.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list