WWW::MenuGrinder::Plugin::Localize - WWW::MenuGrinder plugin for multilingual support
WWW::MenuGrinder::Plugin::Localize is a plugin for
You should not use it directly,
but include it in the
plugins section of a
When loaded, this plugin will interrogate the application for the current display language and attempt to use localized versions of various fields if they are available. For example, if the application reports a language of 'es', and a menu item has a field 'label-es', its value will be placed into the field 'label'. If a localized value isn't provided for a given field, no change is made, allowing for defaults.
An arrayref containing the names of menu keys to localize.
A string indicating the separator between field name and language; for instance the localized version of
"label-es" if the separator is
"-" but users of non-XML file formats might prefer
In order to load this plugin your
WWW::MenuGrinder subclass must implement the method
get_language returning a string indicating the display language for this request.
Andrew Rodland <email@example.com>
This software is copyright (c) 2011 by HBS Labs, LLC..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.