Miguel Gesteiro wrote:

> I decided to test it and hacked the "Locale" class to include in the
> "::set" method a call to this "setlocale()" function, and suddenly
> everything was working! "September" was "septiembre"!! :) (by the way,
> why does this method lowercase the locale string??)

The language identifiers are not case sensitive, so we just lowercase 
them everywhere. It makes lookups and comparisons easier.

> I made a "solution" for this, with the objective o making it the less
> invasive possible, as, if you update the app, everything still would
> (hopefully) work:
> 
> 2. create the "lconfig.php" (locale config) file in the root folder of
> your habari installation and put this line on it:
>   <?php setlocale(LC_ALL, 'es_ES.UTF-8'); ?>

You could just add  that call to your config.php for the time being. 
That should never be overwritten.

Also, the latest svn version has an option field where you can enter 
your system locale. This is not a nice solution and will go away again 
as soon as we figure out something better.

> comments are welcome!
> 
> PD: we need spanish locale included in the habari release!! ;)

Please upload your translation to 
https://translations.launchpad.net/habari/+translations - this is the 
central repository and interface for Habari translations.

Also, if you could create a patch with your date -> strftime changes, 
that'd be appreciated :)

Regards,
Matt

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to