NAME
Data::MuForm::Localizer - Localizer
VERSION
version 0.02
DESCRIPTION
Localizer for Data::MuForm
This code has mainly been borrowed from Locale::TextDomain::OO. It requires UTF-8 and handles only .po files. It does not use the various LOCALE flags for languages. Language must be set on creation of the form. It does handle plurals.
TODO: implement allowing specification of user-provided messages file, and merging two message files
sub loc_px { my ($self, $msgid, %args) = @_;
return $msgid;
}
sub loc_npx { my ($self, $msgid, $msgid_plural, $cout, %args) = @_; # my ($self, $msgctxt, $msgid, $msgid_plural, $count, @args) = @_; # my $translation = $self->translate($msgctxt, $msgid, $msgid_plural, $count, 1);
return $msgid;
}
NAME
Data::MuForm::Localizer
AUTHOR
Gerda Shank
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.