MKDoc::Language - Language class for the MKDoc framework
The list of languages supported by MKDoc is defined in two config files.
These two config files are loaded from (by order of preference):
The two file are the following:
Instantiates a new MKDoc::Language object for $iso_code.
Returns undef if $iso_code is not defined in the languages.conf file.
Returns the iso code of a given language object, e.g:
my $lang = new MKDoc::Language ('en'); print $lang->code(); # should print 'en'
Returns the label associated with a given language object, e.g:
my $lang = new MKDoc::Language ('en'); print $lang->label(); # should print 'English'
Returns a list of ISO codes of all languages, sorted by the Unicode value of their associated label.
In order to do proper multilingual HTML formatting, you need to have a sensible value for the XHTML align="left|right" attribute.
If the language is written left to right, this method returns 'left'.
If the language is written right to left, this method returns 'right'.
This method does the exact opposite as $self->align(), i.e.
If the language is written left to right, this method returns 'right'.
If the language is written right to left, this method returns 'left'.
In order to do proper multilingual HTML formatting, you need to have a sensible value for the XHTML dir="ltr|rtl" attribute.
If the language is written left to right, this method returns 'ltr'.
If the language is written right to left, this method returns 'rtl'.
Copyright 2003 - MKDoc Holdings Ltd.
Author: Jean-Michel Hiver <jhiver@mkdoc.com>
This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.
Petal: http://search.cpan.org/author/JHIVER/Petal/ MKDoc: http://www.mkdoc.com/
Help us open-source MKDoc. Join the mkdoc-modules mailing list:
mkdoc-modules@lists.webarch.co.uk
To install MKDoc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MKDoc
CPAN shell
perl -MCPAN -e shell install MKDoc
For more information on module installation, please visit the detailed CPAN module installation guide.