tsclient uses LC_CTYPE not LC_MESSAGES for banner with words

Bug #12585 reported by Martijn vdS
6
Affects Status Importance Assigned to Milestone
tsclient
Invalid
Undecided
Unassigned
tsclient (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

The top part of the tsclient "connect" window has a graphical banner in it. The
language of this banner is defined by LC_CTYPE (via gtk_get_default_language()).

This breaks for my setup, where everything is nl_NL, except LC_MESSAGES, which
is en_GB.

There are 2 fixes possible: use a different way of retrieving the locale, and
use LC_MESSAGES, or fix GTK's gtk_get_default_language() to return LC_MESSAGES
(which, I think, might fix a lot of other bugs like this as well -- but it might
also introduce more bugs..)

Revision history for this message
趙惟倫 (chaoweilun) wrote :

new version of GTK seems begin to use LC_MESSAGES for this function.
for two-char locale it's OK, but it returns xx-yy for five-char locale xx_YY

Revision history for this message
Jonathan Anderson (jonathan-anderson) wrote :

So, then: could we call the initial bug fixed? If LC_MESSAGES is returning the wrong thing, that seems to be a different issue.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Is that still an issue on dapper or edgy?

Changed in tsclient:
assignee: seb128 → desktop-bugs
importance: Medium → Low
status: Unconfirmed → Needs Info
Revision history for this message
Martijn vdS (martijn) wrote :

Yes.

Setting LANG=nl_NL.UTF-8 and LC_MESSAGES to C makes the entire application show up in English, except for the banner at the top, which is in Dutch.

Other way around make the app show up in Dutch, with the banner in English.

The program should look at LC_ALL, then LC_MESSAGES, then LANG and use the first valid locale.

Changed in tsclient:
status: Needs Info → Unconfirmed
Revision history for this message
Jonh Wendell (wendell) wrote :

We are going to work in a new interface, and this banner will get out. (See bug #12740)

Changed in tsclient:
status: Unconfirmed → Rejected
status: Unconfirmed → Rejected
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.