[Mono-dev] missing cultures

Steve Bjorg steveb at mindtouch.com
Thu Dec 6 16:13:02 EST 2007


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071206/dbbefb87/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cultures.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071206/dbbefb87/attachment.txt 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071206/dbbefb87/attachment-0001.html 


More information about the Mono-devel-list mailing list