Games::Risk::I18N - game internationalization


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

Index


Code Index:

NAME

Top

Games::Risk::I18N - game internationalization

VERSION

Top

version 3.103040

SYNOPSIS

Top

    use Games::Risk::I18N;
    say T('message');

DESCRIPTION

Top

This module handles the game's internationalization (i18n). It is using Locale::TextDomain underneath, so refer to this module's documentation for more information.

METHODS

Top

my $locstr = T( $string );

Performs a call to gettext on $string, convert it from utf8 and return the result.

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


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

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

package Games::Risk::I18N;
BEGIN {
  $Games::Risk::I18N::VERSION = '3.103040';
}
# ABSTRACT: game internationalization

use Encode;
use Locale::TextDomain 'Games-Risk';
use Sub::Exporter -setup => { exports => [ qw{ T } ] };


# -- public subs


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

1;



__END__