Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

cowboy's scratchpad

by cowboy (Friar)
on Sep 13, 2005 at 19:21 UTC ( #491668=scratchpad: print w/ replies, xml ) Need Help??

Locale data (contains a msgid of Baz that translates to 'New Baz'):
/home/cowboy/locale/x/LC_MESSAGES/test.mo
First example:
use strict; use Locale::TextDomain('test','/home/cowboy/locale'); use POSIX qw(:locale_h); setlocale( LC_ALL, 'x' ); print $__{'Baz'} . "\n";
Second:
use strict; use Locale::gettext; use POSIX qw(:locale_h); setlocale( LC_ALL, 'x' ); my $d = Locale::gettext->domain('test'); $d->dir('/home/cowboy/locale' +); print $d->get('Baz') . "\n";
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2015-07-29 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls