Games::Pandemic::I18n - internationalization utilities for pandemic


Games-Pandemic documentation Contained in the Games-Pandemic distribution.

Index


Code Index:

NAME

Top

Games::Pandemic::I18n - internationalization utilities for pandemic

VERSION

Top

version 1.111030

DESCRIPTION

Top

This module provides some helper subs for internationalizing pandemic.

METHODS

Top

my $locstr = T( $string )

Performs a call to gettext on $string, convert it from utf8 and return the result. Note that i18n is using Locale::TextDomain underneath, so refer to this module for more information.

AUTHOR

Top

Jerome Quelin

COPYRIGHT AND LICENSE

Top


Games-Pandemic documentation Contained in the Games-Pandemic distribution.

#
# This file is part of Games-Pandemic
#
# This software is Copyright (c) 2009 by Jerome Quelin.
#
# This is free software, licensed under:
#
#   The GNU General Public License, Version 2, June 1991
#
use 5.010;
use strict;
use warnings;

package Games::Pandemic::I18n;
BEGIN {
  $Games::Pandemic::I18n::VERSION = '1.111030';
}
# ABSTRACT: internationalization utilities for pandemic

# should come before locale::textdomain use
use Games::Pandemic::Utils qw{ $SHAREDIR };

use Encode;
use Exporter::Lite;
use Locale::TextDomain 'Games-Pandemic', $SHAREDIR->subdir("locale")->stringify;

our @EXPORT_OK = qw{ T };


# -- public subs


sub T { return decode('utf8', __($_[0])); }


1;



__END__