Pod::MultiLang - multi languages in Pod
use Pod::MultiLang::Html; my $parser = Pod::MultiLang::Html->new(langs=>[qw(ja en)]); $parser->parse_from_file($infile,$outfile);
Pod::MultiLang is a pod extesion. This module implements J<> interior sequence for write multi langages in sigle pod. One languages enclosed by J interior sequence in each paragraph. Some heading words are translated automatically. Note that J<> is not official interior sequence, this is custom one.
New format for L<|/> interior sequence is:
J<<< ja; L<< text | page /"heading J<ja; japanese heading >" >> >>>
At section part, English heading is still required. Because in many hypertext formats, link identifier is restricted into ASCII.
Verbatim paragraphs will be joined with one blank line.
(with ja.utf8)
=head1 NAME Example - Example document J<< ja;Example - サンプル >> =head1 SEE ALSO L<example/somewhere> J<<< ja; L<< example/somewhere J<ja;���> >> >>> =cut
sample output.
en:NAME ja:å��å‰� en: Example - Example document ja: 例 - サンプル en:SEE ALSO ja:é–¢é€£é …ç›® en: "somewhere" in example (linkto:example/somewhere) ja: example 内 "ã�©ã�“ã�‹" (linkto:example/somewhere)
<!-- begin [COMMENT] behavior [ignore] --> =head1 TODO
Multi lingual verbatim paragraph is not supported.
<!-- begin [COMMENT] behavior [ignore] --> <!-- begin [COMMENT] behavior [ignore] --> J< en,ja;for English and Japanese >.
$label = $parser->makelinktext($lang,$text,$name,$sec);
if $text is specified, returns $text. if not, returns by $name and $sec with $lang.
Pod::Parser, Pod::MultiLang::Html
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'サンプル'. Assuming CP1252
To install Pod::MultiLang, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pod::MultiLang
CPAN shell
perl -MCPAN -e shell install Pod::MultiLang
For more information on module installation, please visit the detailed CPAN module installation guide.