Hi,
i've problems using gettext with mason. i wrote the following
mason-template to demonstrate the problem:
<%init>
use Locale::gettext;
use POSIX qw(locale_h);
</%init>
<%perl>
setlocale(LC_MESSAGES, 'german');
print gettext("Error");
</%perl>
This prints "Error" while the same thing as cgi-script prints the german
word "Fehler" (as expected):
#!/usr/bin/perl
use CGI;
use Locale::gettext;
use POSIX qw(locale_h);
setlocale(LC_MESSAGES, 'german');
my $q = CGI->new;
print $q->header;
print gettext("Error");
I also tried to explicitly set the textdomain with textdomain and bind
it to a certain .mo-file with bindtextdomain but that didn't change the
result, with cgi it works with mason it doesn't.
I'm running mason 1.31.01 on debian gnu/linux with modperl 2.0.1.
I would be thankful for any ideas.
regards
moritz
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users