[Pharo-project] localization
Hello! I notice many of you are not native English speakers so you must have asked yourself this question before: what are the possibilities of localization in Pharo? I'm mostly interested in date and time localization. I notice there is a class named ChronologyConstants, and sure I can modify it, but how do I do it in a nice way, so that the alterations are saved in my own MC package? Moreover, this class alone is not enough. For example, in Croatian, January is not written or pronounced the same when used in a date or used in a enumeration. The English equivalent of today's date would be "6th of January" - notice the "of". There is even less subtle weaknesses: you don't get to choose default date and time format. Hm, looking at ChronologyConstants again, it seem its purpose never was localization, it is merely a shared pool for constants. Do you have any plans for localization? I haven't seen it mentioned. This is a must have in an enterprise-friendly software, you must agree. -- Milan Mimica http://sparklet.sf.net
On Jan 6, 2012, at 12:03 08PM, Milan Mimica wrote:
Hello!
I notice many of you are not native English speakers so you must have asked yourself this question before: what are the possibilities of localization in Pharo? I'm mostly interested in date and time localization. I notice there is a class named ChronologyConstants, and sure I can modify it, but how do I do it in a nice way, so that the alterations are saved in my own MC package?
Moreover, this class alone is not enough. For example, in Croatian, January is not written or pronounced the same when used in a date or used in a enumeration. The English equivalent of today's date would be "6th of January" - notice the "of".
There is even less subtle weaknesses: you don't get to choose default date and time format.
Hm, looking at ChronologyConstants again, it seem its purpose never was localization, it is merely a shared pool for constants.
Do you have any plans for localization? I haven't seen it mentioned. This is a must have in an enterprise-friendly software, you must agree.
-- Milan Mimica http://sparklet.sf.net
For Date/Time localization, there's the LocalePlugin which returns some of the OS's current Locale's values. An interface to the CLDR would be nice, but no one's invested in that yet as far as I know. For manual translations, there's the gettext package in http://www.squeaksource.com/PharoNonCorePackages . Cheers, Henry
2012/1/6 Henrik Johansen <henrik.s.johansen@veloxit.no>:
For Date/Time localization, there's the LocalePlugin which returns some of the OS's current Locale's values. An interface to the CLDR would be nice, but no one's invested in that yet as far as I know.
I have invested in CLDR parsers, if someone has interest to help me I could set up a project. Cheers Hernán -- Hernán Morales Information Technology Manager, Institute of Veterinary Genetics. National Scientific and Technical Research Council (CONICET). La Plata (1900), Buenos Aires, Argentina. Telephone: +54 (0221) 421-1799. Internal: 422 Fax: 425-7980 or 421-1799.
participants (3)
-
Henrik Johansen -
Hernán Morales Durand -
Milan Mimica