Re: Does YOUR language have an entry in GDM?



Hi all,

Danilo Segan <danilo@gnome.org> writes:
>
> I'll look into adjusting GDM soon, but I don't think this can go into
> GDM prior to 2.6 release. I'd be glad to hear that I'm wrong.
>

Ok, I've taken a look into this a bit more, and the solution is fairly
simple.  GNU libc/locale/findlocale.c actually tries several locale
variants for one setlocale() call, by stripping codeset, modifier,
territory, until a match is found (or not).

This means that I can use improved locales, and fallback on sr_YU@Latn
and sr_YU@ije, and everything will work correctly (appart from sr_YU
locales still being incorrect, but Gnome translations appear correctly).

OTOH, GDM uses "Language->code" field as a key on which it bases the
lookup, so it is relevant only if that field is also present in one
of locale.alias definitions.

I'll inline a patch I'm planning to commit, if nobody objects. This
will introduce two new strings "Serbian (Latin)" and "Serbian
(iyekavian)".  If you do mind this string freeze break, I may not
mark this strings for extraction by xgettext (by omitting "N_"), but
they will still be localizeable if you provide translations (and
sr*.po would do so), so those who care about it, wouldn't miss
anything.

As a sidenote, I'm pretty positive that we're going to have at least
50% of Serbian iyekavian translations before 2.6.0 release, since
I've already gotten 8 or so module translations.

Please post any concerns or comments you might have, I'll be glad to
respond.


Cheers,
Danilo


Index: gdmlanguages.c
===================================================================
RCS file: /cvs/gnome/gdm2/gui/gdmlanguages.c,v
retrieving revision 1.32
diff -u -r1.32 gdmlanguages.c
--- gdmlanguages.c	19 Feb 2004 10:56:10 -0000	1.32
+++ gdmlanguages.c	23 Feb 2004 13:54:21 -0000
@@ -168,7 +168,11 @@
 	/*Note translate the N-Z to the N-Z you used in the group label */
 	{ N_("N-Z|Russian"), "ru_RU", "русский", 0 },
 	/*Note translate the N-Z to the N-Z you used in the group label */
-	{ N_("N-Z|Serbian"), "sr_YU", "", 0 },
+	{ N_("N-Z|Serbian"), "sr_CS", "српски", 0 },
+	/*Note translate the N-Z to the N-Z you used in the group label */
+	{ N_("N-Z|Serbian (Latin)"), "sr_CS.UTF-8@Latn", "srpski (latinica)", 0 },
+	/*Note translate the N-Z to the N-Z you used in the group label */
+	{ N_("N-Z|Serbian (iyekavian)"), "sr_CS.UTF-8@ije", "српски (ијекавски)", 0 },
 	/*Note translate the N-Z to the N-Z you used in the group label */
 	{ N_("N-Z|Slovak"), "sk_SK", "Slovenský", 0 },
 	/*Note translate the N-Z to the N-Z you used in the group label */
Index: locale.alias
===================================================================
RCS file: /cvs/gnome/gdm2/config/locale.alias,v
retrieving revision 1.33
diff -u -r1.33 locale.alias
--- locale.alias	15 Mar 2003 10:31:02 -0000	1.33
+++ locale.alias	23 Feb 2004 14:01:02 -0000
@@ -71,7 +71,9 @@
 Portuguese		pt_PT.UTF-8,pt_PT
 Romanian		ro_RO.UTF-8,ro_RO
 Russian			ru_RU.UTF-8,ru_RU
-Serbian			sr_YU.UTF-8,sr_YU
+Serbian			sr_CS.UTF-8,sr_CS,sr_YU@cyrillic,sr_YU
+Serbian(Latin)		sr_CS.UTF-8@Latn,sr_CS@Latn,sr_YU@Latn
+Serbian(ijekavski)	sr_CS.UTF-8@ije,sr_CS@ije,sr_YU@ije
 Slovak			sk_SK.UTF-8,sk_SK
 Slovenian		sl_SI.UTF-8,sl_SI
 Spanish			es_ES.UTF-8,es_ES



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]