Hi Gunnar, Thanks for your work on this. I'll let Martin comment on the technical aspects and add only a couple of comments.
El dl 04 de 10 de 2010 a les 08:38 +0000, en/na Gunnar Hjalmarsson va escriure: > @ Martin > language-selector sets $LANGUAGE for language, and $LANG for other > locales. Language selector sets $LANGUAGE to use the possibility of setting fallback languages. I haven't looked at the code to see if it sets $LANG as well or it leaves it to gdm to do it, but it does allow setting the LC_* categories individually. > That's why it's inconsistent that gdm sometimes uses $LANG when > dealing with the language to be used for message display. > GDM does not currently write $LANGUAGE. > I have attached a modified gdm-patch. These are the news: > > - As you pointed out in comment #24, the previous code didn't take into > account different syntax variants for setting and exporting $LANGUAGE. > Now the code for editing ~/.profile is safer. > > - The $LANGUAGE priority list is preserved, as was suggested in comment > #27 by YunQiang Su. > > - $LC_MESSAGES is set to take care of applications that don't recognize > $LANGUAGE. > For the messages' locale, after evaluating LANGUAGE, the order of evaluation in setlocale() is LC_ALL, LC_MESSAGES, LANG. So setting LANG as gdm and language-selector do, should be enough. The problems I've observed in Firefox, OpenOffice.org and other applications were related to the fact that they did not support reading LANGUAGE. Were they not reading LANG, either? Rather than using a workaround, would it not be better to fix the bug in the affected applications? I see you've followed up on Firefox already. > The third item seems to solve reported problems with Mozilla apps > (Firefox/Thunderbird), which means that the solution I provided at bug > 550222 already can be regarded as superseded. Also other programs that > apparently don't recognize $LANGUAGE, e.g. FileZilla and Cervisia, now > display menues etc. in the expected language. > > Personally I think we should give high priority to this issue, and try > to attain consensus about a solution. I'd be happy to contribute to > achieve that goal ( seems like I have started... :) ). I noticed at > ubuntu-devel that David Planella asked for suggestions for translation > focus aspects with an eye to 11.04. Wouldn't a consensus solution to > this issue be a suitable item on the list that David is preparing at > https://wiki.ubuntu.com/Translations/Roadmaps/11.04 ? > As I noted on the follow up e-mail and on the blog post, that roadmap is for translations community plans. It is not thought as a feature list for Launchpad or a list of bugs to fix. However, you should feel free to continue your work on this and address the maintainer's comments. Keep up the good work! Regards, David. -- David Planella Ubuntu Translations Coordinator www.ubuntu.com / www.davidplanella.wordpress.com www.identi.ca/dplanella / www.twitter.com/dplanella -- Set $LANGUAGE if the user picks a different locale in gdm, so that language-selector and gdm stop disagreeing https://bugs.launchpad.net/bugs/553162 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs