[Mono-dev] missing cultures
Daniel Nauck
dna at informatik.uni-kiel.de
Fri Dec 7 15:22:30 EST 2007
Hi Steve,
the locale builder need a full rewrite to use the data from the Common
Locale Data Repository (http://www.unicode.org/cldr/)
Just adding new DateTime patterns a xml files is only a temporary fix
and doesn't fix mono's lack of locale data.
Maybe we should write a Locale Data Markup Language library that reads
and process the locale data. And in a second step use that library in
the locale-builder to get all required locale information for the
Sys.Globalization namespace.
The locale-builder generates a C-Header file, so maybe it is also
required to change the runtime to support all missing properties and
settings.
Daniel
Steve Bjorg schrieb:
> Wow, yeah no kidding. I dug a bit into the code. One of the xml
> files contains a definition for "de-li", but that culture still
> doesn't work. Others already included in the lcids.xml list are:
> * en-jm
> * en-bz
> * en-tt
> * fr-mc
> * de-li
> * ko-kr
>
> So, I wonder, why do those code not work. (Also, I ran the test app
> on 1.2.6p2 with the same outcome as below).
>
>
> - Steve
>
> --------------
> Steve G. Bjorg
> http://wiki.mindtouch.com
> http://wiki.opengarden.org
>
>
> On Dec 6, 2007, at 4:54 PM, Robert Jordan wrote:
>
>> Hi Steve,
>>
>> Steve Bjorg wrote:
>>> Fantastic! Now if someone can point me where that stuff is in the
>>> mono tree, I'll gladly get working on a patch. :)
>> http://anonsvn.mono-project.com/viewcvs/trunk/mono/tools/locale-
>> builder/
>>
>> Good luck! :)
>>
>> Robert
>>
>>> - Steve
>>>
>>> --------------
>>> Steve G. Bjorg
>>> http://wiki.mindtouch.com
>>> http://wiki.opengarden.org
>>>
>>>
>>> On Dec 6, 2007, at 4:13 PM, Daniel Nauck wrote:
>>>
>>>> Hello,
>>>>
>>>> have a look at bug:
>>>> https://bugzilla.novell.com/show_bug.cgi?id=324483
>>>>
>>>> Daniel
>>>>
>>>> Steve Bjorg schrieb:
>>>>> What does it take to add support for other cultures?
>>>>>
>>>>> The following code attempts to instantiate each culture in the
>>>>> cultures.txt file (attached).
>>>>>
>>>>> using System;
>>>>> using System.Globalization;
>>>>>
>>>>> namespace CultureCheck {
>>>>> class Program {
>>>>> static void Main(string[] args) {
>>>>> if(System.IO.File.Exists("cultures.txt")) {
>>>>> string[] cultures =
>>>>> System.IO.File.ReadAllLines("cultures.txt");
>>>>> int failed = 0;
>>>>> int succeeded = 0;
>>>>> foreach(string culture in cultures) {
>>>>> try {
>>>>> CultureInfo info = new CultureInfo
>>>>> (culture.Trim());
>>>>> string now =
>>>>> DateTime.UtcNow.ToString(info.DateTimeFormat);
>>>>> ++succeeded;
>>>>> } catch {
>>>>> ++failed;
>>>>> Console.WriteLine(culture);
>>>>> }
>>>>> }
>>>>> Console.WriteLine("Tested {0} cultures: {1}
>>>>> succeeded,
>>>>> {2} failed", succeeded + failed, succeeded, failed);
>>>>> } else {
>>>>> Console.Error.WriteLine("MISSING FILE:
>>>>> cultures.txt");
>>>>> }
>>>>> }
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>> These cultures currently fail on mono 1.2.5.1:
>>>>> az-cyrl-az
>>>>> az-latn-az
>>>>> dv-mv
>>>>> en-bz
>>>>> en-029
>>>>> en-jm
>>>>> en-tt
>>>>> fr-mc
>>>>> ka-ge
>>>>> de-li
>>>>> kk-kz
>>>>> ky-kg
>>>>> ms-bn
>>>>> ms-my
>>>>> mn-mn
>>>>> pa-in
>>>>> sa-in
>>>>> sr-cyrl-cs
>>>>> sr-latn-cs
>>>>> syr-sy
>>>>> tt-ru
>>>>> ur-pk
>>>>> uz-cyrl-uz
>>>>> uz-latn-uz
>>>>>
>>>>> List of codes here: http://wiki.opengarden.org/Deki_Wiki/Languages
>>>>>
>>>>> Some of these should be trivial, like
>>>>> * English (Belize)
>>>>> * English (Caribbean)
>>>>> * English (Jamaica)
>>>>> * English (Trinidad and Tobago)
>>>>> * French (Monaco)
>>>>> * German (Liechtenstein)
>>>>>
>>>>> For others, I would like to be able to instruct our community,
>>>>> which has
>>>>> already translated our application to various languages, on what
>>>>> additional information is required to make their respective culture
>>>>> available.
>>>>>
>>>>> A high-priority culture is Korean. So, any information on what is
>>>>> needed to enable it would be much appreciated. Thanks.
>>>>>
>>>>>
>>>>> - Steve
>>>>>
>>>>> --------------
>>>>> Steve G. Bjorg
>>>>> http://wiki.mindtouch.com
>>>>> http://wiki.opengarden.org
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> --
>>>>> ---
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> --
>>>>> ---
>>>>>
>>>>> _______________________________________________
>>>>> Mono-devel-list mailing list
>>>>> Mono-devel-list at lists.ximian.com
>>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list