[Pharo-project] localization

3 views
Skip to first unread message

Milan Mimica

unread,
Jan 6, 2012, 6:03:08 AM1/6/12
to pharo-...@lists.gforge.inria.fr
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

Henrik Johansen

unread,
Jan 6, 2012, 6:28:00 AM1/6/12
to Pharo-...@lists.gforge.inria.fr
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

Hernán Morales Durand

unread,
Jan 6, 2012, 6:39:42 AM1/6/12
to Pharo-...@lists.gforge.inria.fr
2012/1/6 Henrik Johansen <henrik.s...@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.

Reply all
Reply to author
Forward
0 new messages