|
177.
|
|
|
use Pod::UsageTrans
use Locale::gettext;
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:36
|
|
178.
|
|
|
setlocale(LC_MESSAGES,'');
textdomain('prog');
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:39
|
|
179.
|
|
|
my $message_text = "This text precedes the usage message.";
my $exit_status = 2; ## The exit status to use
my $verbose_level = 0; ## The verbose level to use
my $filehandle = \*STDERR; ## The filehandle to write to
my $textdomain = 'prog-pod'; ## The gettext domain for the Pod documentation
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:42
|
|
180.
|
|
|
pod2usage($message_text);
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:48
|
|
181.
|
|
|
pod2usage($exit_status);
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:50
|
|
182.
|
|
|
pod2usage( { -message => gettext( $message_text ) ,
-exitval => $exit_status ,
-verbose => $verbose_level,
-output => $filehandle,
-textdomain => $textdomain } );
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:52
|
|
183.
|
|
|
pod2usage( -msg => $message_text ,
-exitval => $exit_status ,
-verbose => $verbose_level,
-output => $filehandle,
-textdomain => $textdomain );
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:58
|
|
184.
|
|
|
Pod::UsageTrans works exactly like Pod::Usage but allows you to easily translate your messages. It was specifically written to be compatible with the F<.po> files produced by po4a(7). If you want to use any other method to produce your F<.po> files you should probably take a look at the source of code of this module to see which msgids you will need to use.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:66
|
|
185.
|
|
|
For documentation on calling pod2usage from your program see Pod::Usage. Pod::UsageTrans additionally supports a C<-textdomain> option where you can specify the gettext domain to use. If C<-textdomain> isn't set, Pod::UsageTrans will behave exactly like Pod::Usage.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:73
|
|
186.
|
|
|
BUGS
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../lib/Pod/UsageTrans.pm:79
|