Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.876.367 Times

Template::Multilingual 0.08

  Date Added: February 27, 2010  |  Visits: 856

Template::Multilingual

Report Broken Link
Printer Friendly Version


Product Homepage
Download (83 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Language Libraries Multilingual New Perl Perl Module Process Programming Template Template Toolkit Templatemultilingual Templates Var
Users rating: 0/10

License: Freeware Size: 5.12 KB
USER REVIEWS
More Reviews or Write Review


TEMPLATE::MULTILINGUAL RELATED
Libraries  -  Template::Plugin::Heritable 0.02
Template::Plugin::Heritable is a Perl module with OO dispatching and inheritance for templates. SYNOPSIS [% USE Heritable %] [%# searches providers for a "view" template method on class (which should be a metamodel object, eg someobj.meta...
21.5 KB  
Libraries  -  Language::Basic::Variable 1.44
Language::Basic::Variable is a Perl module to handle parsing and implementing BASIC variables. SYNOPSIS See Language::Basic for the overview of how the Language::Basic module works. This pod page is more technical. There are two sorts of...
52.22 KB  
Libraries  -  Language::Zcode::Parser 0.8
Language::Zcode::Parser is a Perl module that reads and parses a Z-code file into a big Perl hash. SYNOPSIS # Create a Pure Perl Parser my $pParser = new Language::Zcode::Parser "Perl"; # If they didnt put ".z5" at the end, find it anyway...
296.96 KB  
Libraries  -  Language::Basic::Expression 1.44
Language::Basic::Expression is a Perl package to handle string, numeric, and boolean expressions. SYNOPSIS See Language::Basic for the overview of how the Language::Basic module works. This pod page is more technical. # Given an...
52.22 KB  
Libraries  -  perl58delta 5.8.8
perl58delta Perl module contains information about what is new for perl v5.8.0. This document describes differences between the 5.6.0 release and the 5.8.0 release. Many of the bug fixes in 5.8.0 were already seen in the 5.6.1 maintenance...
12.2 MB  
Libraries  -  Wx::Perl::Packager 0.07
Wx::Perl::Packager provides a module to assist packaging Wx based applications with PAR, ActiveState PerlApp / PDK and Perl A module to assist packaging Wx based applications with PAR, ActiveState PerlApp / PDK and Perl2Exe. All that is needed...
12.29 KB  
Libraries  -  perlrpcgen 0.71
perlrpcgen is a Perl module that can generate Perl interfaces from ONC RPC interface definitions. SYNOPSIS perlrpcgen [--makefile] [--all] [--client] [--server] [--data] [--constants] [--module module] [--typemap typemap] [--fork] [--perl...
37.89 KB  
Libraries  -  Text::MicroMason::Functions 1.992
Text::MicroMason::Functions Perl module contains Function Exporter for Simple Mason Templates. SYNOPSIS Use the execute function to parse and evalute a template: use Text::MicroMason::Functions qw( execute ); print execute($template,...
69.63 KB  
Libraries  -  HTML::DWT 2.08
HTML::DWT is a Perl module with DreamWeaver HTML Template. INSTALLATION Unzip/tar the archive: tar xvfz HTML-DWT-2.08 Create the makefile perl Makefile.PL Make the module (must have root access to install) make make test make install...
17.41 KB  
Libraries  -  Noid 0.424
Noid is a Perl module that contains routines to mint and manage nice opaque identifiers. SYNOPSIS use Noid; # import routines into a Perl script $dbreport = Noid::dbcreate( # create minter database & printable $dbdir, $contact, # report on...
133.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB