Main > Programming > Libraries >

Template::Multilingual 0.08

Template::Multilingual 0.08

Sponsored Links

Template::Multilingual 0.08 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
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.

Template::Multilingual 0.08 Screenshot

Advertisements

Template::Multilingual 0.08 Keywords

Bookmark Template::Multilingual 0.08

Hyperlink code:
Link for forum:

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

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
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