PET::Util::Multilang

PET::Util::Multilang

A special multilingual implementation for HTML pages using (My)SQL.  See <description> for all other info.

Summary
PET::Util::MultilangA special multilingual implementation for HTML pages using (My)SQL.
Functions
NAME
Variables
$DISP
$LANGThis hashref stores all text bindings.
Functions
init
_prefetchMultiSQL()At init-time we load all language definitions to speed up access.
ml_genout($string)Output general string (non-page specific).
ml_out($string)Output a string (page specific).
_toMlString($key, $string)Returns language equivalent of the given string.

Functions

NAME

sub NAME

Variables

$DISP

our $DISP

$LANG

our $LANG

This hashref stores all text bindings.

Functions

init

sub init

_prefetchMultiSQL()

sub _prefetchMultiSQL

At init-time we load all language definitions to speed up access.  FIXME: later this should depend on a config parameter...

ml_genout($string)

sub ml_genout

Output general string (non-page specific).  Expects a string.

ml_out($string)

sub ml_out

Output a string (page specific).  Expects a string.  Looks out

_toMlString($key, $string)

sub _toMlString

Returns language equivalent of the given string.

Base class for all Util modules.
sub NAME
our $DISP
our $LANG
This hashref stores all text bindings.
sub init
sub _prefetchMultiSQL
At init-time we load all language definitions to speed up access.
sub ml_genout
Output general string (non-page specific).
sub ml_out
Output a string (page specific).
sub _toMlString
Returns language equivalent of the given string.
Close