Template::Multilingual 0.08
Sponsored Links
Template::Multilingual 0.08 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
932
Date added:
2007-04-06
Publisher:
Eric Cholet
Template::Multilingual 0.08 description
Template::Multilingual is a Perl module with multilingual templates for Template Toolkit.
SYNOPSIS
This subclass of Template Toolkits Template class supports multilingual templates: templates that contain text in several languages.
< t >
< en >Hello!< /en >
< fr >Bonjour !< /fr >
< /t >
Specify the language to use when processing a template:
use Template::Multilingual;
my $template = Template::Multilingual->new();
$template->language(en);
$template->process(example.ttml);
You can also provide the name of the template variable that will hold the language:
my $template = Template::Multilingual->new(LANGUAGE_VAR => foo);
$template->process(example.ttml, { foo => en });
METHODS
new(%params)
The new() constructor creates and returns a reference to a new template object. A reference to a hash may be supplied as a parameter to provide configuration values.
Configuration values are all valid Template superclass options, and one specific to this class:
LANGUAGE_VAR
The LANGUAGE_VAR option can be used to set the name of the template variable which contains the current language.
my $parser = Template::Multilingual->new({
LANGUAGE_VAR => global.language,
});
If this option is set, you code is responsible for setting the variables value to the current language when processing the template. Calling language() will have no effect.
If this option is not set, it defaults to language.
language($lcode)
Specify the language to be used when processing the template. Any string that matches w+ is fine, but we suggest sticking to ISO-639 which provides 2-letter codes for common languages and 3-letter codes for many others.
process
Used exactly as the original Template Toolkit process method. Be sure to call language before calling process.
SYNOPSIS
This subclass of Template Toolkits Template class supports multilingual templates: templates that contain text in several languages.
< t >
< en >Hello!< /en >
< fr >Bonjour !< /fr >
< /t >
Specify the language to use when processing a template:
use Template::Multilingual;
my $template = Template::Multilingual->new();
$template->language(en);
$template->process(example.ttml);
You can also provide the name of the template variable that will hold the language:
my $template = Template::Multilingual->new(LANGUAGE_VAR => foo);
$template->process(example.ttml, { foo => en });
METHODS
new(%params)
The new() constructor creates and returns a reference to a new template object. A reference to a hash may be supplied as a parameter to provide configuration values.
Configuration values are all valid Template superclass options, and one specific to this class:
LANGUAGE_VAR
The LANGUAGE_VAR option can be used to set the name of the template variable which contains the current language.
my $parser = Template::Multilingual->new({
LANGUAGE_VAR => global.language,
});
If this option is set, you code is responsible for setting the variables value to the current language when processing the template. Calling language() will have no effect.
If this option is not set, it defaults to language.
language($lcode)
Specify the language to be used when processing the template. Any string that matches w+ is fine, but we suggest sticking to ISO-639 which provides 2-letter codes for common languages and 3-letter codes for many others.
process
Used exactly as the original Template Toolkit process method. Be sure to call language before calling process.
Template::Multilingual 0.08 Screenshot
Advertisements
Template::Multilingual 0.08 Keywords
Template Toolkit
VAR
LANGUAGE
Multilingual 0.08
Toolkit
Perl module
template
new
process
multilingual
templates
module
Template::Multilingual
TemplateMultilingual
Template::Multilingual 0.08
Libraries
Bookmark Template::Multilingual 0.08
Template::Multilingual 0.08 Copyright
WareSeeker periodically updates pricing and software information of Template::Multilingual 0.08 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Template::Multilingual 0.08 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
resume templates
templates wilson jones
templates microsoft
templates dreamweaver
microsoft templates
templates for resumes
website templates
project templates
templates photoshop
templates for powerpoint
templates for business cards
powerpoint templates
avery templates
templates for blogger
resume template
templates in photoshop
templates for teachers
web templates
Related Software
Template::Plugin::SumOf is a Perl module to calculate the sum with VMETHODS. Free Download
Template::Ast is a Perl module to process ASTs for Perl Template Toolkit. Free Download
Template::Plugin::Java is a Perl module that can generate Java Classes from XML description files and templates. Free Download
Template::Tutorial are template toolkit tutorials. Free Download
Template::Plugin::JSON is a Perl module that adds a .json vmethod for all TT values. Free Download
Template::Plugin::Config::General is a template toolkit plugin which implements wrapper around Config::General module. Free Download
Template::Plugin::Digest::SHA1 is a TT2 interface to the SHA1 Algorithm. Free Download
Template::Alloy is a TT2/3, HT, HTE, Tmpl, and Velocity Engine. Free Download
Latest Software
Popular Software
Favourite Software