my $obj = ManaTools::Shared::Locales->new(domain_name => 'this_domain');
print $obj->N(``test string %d'', 1) . ``\n'';
perldoc ManaTools::Shared::Locales
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
hash ref containing domain_name: gettext domain name (default mpan) dir_name: gettext optional catalog directory (default undef) codeset: gettext codeset (default UTF8)
DESCRIPTION
new is inherited from Moose, to create a Locales object
$self: this object
DESCRIPTION
The BUILD method is called after a Moose object is created. This method initilaizes gettext domain.
$self : this object $s_singular: msg id singular $s_plural: msg id plural $nb: value for plural
OUTPUT
locale string
DESCRIPTION
returns the given string localized (see dngettext)
$self : this object $s: msg id
OUTPUT
locale string
DESCRIPTION
returns the given string localized (see dgettext)
$self : this object $s: msg id
OUTPUT
msg id
DESCRIPTION
returns the given string
$self: this object $s: string to be converted
OUTPUT
$converted: converted string
DESCRIPTION
convert from utf-8 to current locale
$self: this object $s: string to be converted
OUTPUT
$converted: converted string
DESCRIPTION
convert to utf-8 from current locale