Re: [gui-dev] Sorted list of languages.

"Philippe Verdy" <[email protected]> Thu, 19 May 2005 23:35:21 +0200
Newsgroups gmane.network.gnutella.limewire.gui.devel
Organization Ordinateur Personnel
Message-ID <01d801c55cba$a8d45f90$0701a8c0@bruchner>
I see that you use the "compareTo()" function to sort the language names. 
But it performs lexicographical ordering (incorrect to sort accents, for 
example the localized name of Icelandic that starts with a I with accute, 
and is then listed at end of Latin languages).

If you want to see an already existing sort, you can look at the sort I did 
for the "CountPercent" subproject (in the library module, in 
/lib/messages/com/limegroup/gnutella/i18n/CountPercent.java)
It takes into account the language group, and this is this code that 
currently generates the "translate.shtml" page on the limewire.org site.

I am in fact working on a resource file that will map all continental 
regions to countries, and all countries to their spoken languages (or other 
prefered default languages if one translation is still missing). Also I 
prepare a few bitmaps to select continental areas instead of using 
comboboxes or lists. This will allow listing all countries at the same time 
in that region.

Once I have finished that, I will discuss of the various ways to select 
prefered locales.

----- Original Message ----- 
From: "Marcin Okraszewski" <[email protected]>
To: <[email protected]>
Sent: Friday, May 20, 2005 12:50 AM
Subject: [gui-dev] Sorted list of languages.


> Hi,
> It is not at the wish list, but there wasn't any order in the list of
> languages. I've sorted the list of languages by display name.
> Unfortunately languages which do not start with latin letter are at the
> end of list. But I think it is still better than totally unsorted list.
> English is always at first position.
>
> The list is displayed in wizard configuration at first start up and in
> language menu.
>
> Best regards,
> Marcin
>


_______________________________________________
gui-dev mailing list
[email protected]
http://www.limewire.org/mailman/listinfo/gui-dev