At 09:04 28/12/04, Tomas Kuliavas wrote:
When translation works only in help section, you have php with gettext
support and php script fails to set system locale or something is wrong
with php gettext extension.
PHP's setlocale function seems to be not working. The following script:
<?php
/* Set locale to Catalan */
setlocale(LC_ALL, 'ca_ES');
echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978));
?>... produces: Friday 22 December 1978
However, I have installed Horde and Imp from OpenBSD's ports tree and the language function works just fine, for all pages. What's more, Horde uses the setlocale function:
$ grep -r setlocale /var/www/horde/ ./docs/TRANSLATIONS:setlocale(LC_MESSAGES, 'nl_NL'); ./lib/Horde.php: $locale = setlocale(LC_TIME, 0); ./lib/Horde.php: setlocale(LC_TIME, 'C'); ./lib/Horde.php: setlocale(LC_TIME, $locale); ./lib/Lang.php: setlocale(LC_ALL, $lang);
Finally, as I mentioned in my original post, translation was working up until about 2-3 weeks ago.
There's probably some simple explanation that's escaping me, but I'd sure like to know what it is.
-- All the best (Ad�u-siau), Lou Hevly [EMAIL PROTECTED] http://visca.com
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
