| Games-Risk documentation | Contained in the Games-Risk distribution. |
Games::Risk::I18N - game internationalization
version 3.103040
use Games::Risk::I18N;
say T('message');
This module handles the game's internationalization (i18n). It is using
Locale::TextDomain underneath, so refer to this module's documentation
for more information.
Performs a call to gettext on $string, convert it from utf8 and
return the result.
Jerome Quelin
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
| 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__