![]() |
![]()
| ![]() |
![]()
NAMEHTML::Chunks::Local - A simple localization layer for HTML::Chunks VERSION1.02 DESCRIPTIONThis subclass of HTML::Chunks is geared for sites which deliver multi-lingual content. This works by making chunks that have a similar name but with a language or country code appended to the name (e.g. chunk_en) in your template files. When you call output(), you pass in an array reference which contains the user's language preference(s) after the chunk name. The subclass goes through that list, followed by default language codes, and finally tries no language code to find the most appropriate chunk to output. Simple. SYNOPSISuse HTML::Chunks::Local; $chunks = new HTML::Chunks::Local('chunkfile.html'); $chunks->output('sample_chunk', [pt, sp], @data); ROUTINES
CREDITSCreated, developed and maintained by Mark W Blythe and Dave Balmer, Jr. Contact dbalmer@cpan.org or mblythe@cpan.org for comments or questions. LICENSE(C)2001-2004 Mark W Blythe and Dave Balmer Jr, all rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
|