#!perl use 5.008001; use utf8; use strict; use warnings; ########################################################################### ########################################################################### # Constant values used by packages in this file: use only 'Readonly' => '1.03-'; Readonly my %TEXT_STRINGS => ( # This group of strings is generic and can be used by any package: 'LKT_ARG_UNDEF' => q[.(): argument is undefined (or missing).], 'LKT_ARG_NO_ARY' => q[.(): argument is not an Array ref,] . q[ but rather contains ''.], 'LKT_ARG_NO_HASH' => q[.(): argument is not a Hash ref,] . q[ but rather contains ''.], 'LKT_ARG_NO_EXP_TYPE' => q[.(): argument is not a ,] . q[ but rather contains ''.], 'LKT_ARG_ARY_ELEM_UNDEF' => q[.(): argument is an Array ref as expected,] . q[ but one of its elements is undefined.], 'LKT_ARG_ARY_ELEM_NO_ARY' => q[.(): argument is an Array ref as expected,] . q[ but one of its elements is not an Array ref,] . q[ but rather contains ''.], 'LKT_ARG_ARY_ELEM_NO_HASH' => q[.(): argument is an Array ref as expected,] . q[ but one of its elements is not a Hash ref,] . q[ but rather contains ''.], 'LKT_ARG_ARY_ELEM_NO_EXP_TYPE' => q[.(): argument is an Array ref as expected,] . q[ but one of its elements is not a ,] . q[ but rather contains ''.], 'LKT_ARG_HASH_VAL_UNDEF' => q[.(): argument is a Hash ref as expected,] . q[ but the value for its '' key is undefined.], 'LKT_ARG_HASH_VAL_NO_ARY' => q[.(): argument is a Hash ref as expected,] . q[ but the value for its '' key is not an Array ref,] . q[ but rather contains ''.], 'LKT_ARG_HASH_VAL_NO_HASH' => q[.(): argument is a Hash ref as expected,] . q[ but the value for its '' key is not a Hash ref,] . q[ but rather contains ''.], 'LKT_ARG_HASH_VAL_NO_EXP_TYPE' => q[.(): argument is a Hash ref as expected,] . q[ but the value for its '' key is not a ,] . q[ but rather contains ''.], 'LKT_ARG_ARY_NO_ELEMS' => q[.(): argument is an Array ref as expected,] . q[ but it has no elements.], 'LKT_ARG_HASH_NO_ELEMS' => q[.(): argument is a Hash ref as expected,] . q[ but it has no elements.], 'LKT_ARG_EMP_STR' => q[.(): argument is an empty string.], 'LKT_ARG_ARY_ELEM_EMP_STR' => q[.(): argument is an Array ref as expected,] . q[ but one of its elements is an empty string.], 'LKT_ARG_HASH_KEY_EMP_STR' => q[.(): argument is a Hash ref as expected,] . q[ but one of its keys is an empty string.], 'LKT_ARG_HASH_VAL_EMP_STR' => q[.(): argument is a Hash ref as expected,] . q[ but the value for its '' key is an empty string.], # This group of strings is specific to Locale::KeyedText itself: 'LKT_T_FAIL_LOAD_TMPL_MOD' => q[.(): can't load Locale::KeyedText Template] . q[ module '': ], 'LKT_T_FAIL_GET_TMPL_TEXT' => q[.(): can't invoke get_text_by_key() on] . q[ Locale::KeyedText Template module '':] . q[ ], ); ########################################################################### ########################################################################### { package Locale::KeyedText::L::en; # module use version; our $VERSION = qv('1.0.1'); sub get_text_by_key { my (undef, $msg_key) = @_; return $TEXT_STRINGS{$msg_key}; } } # module Locale::KeyedText::L::en ########################################################################### ########################################################################### 1; # Magic true value required at end of a reuseable file's code. __END__ =pod =encoding utf8 =head1 NAME Locale::KeyedText::L::en - Localization of Locale::KeyedText for English =head1 VERSION This document describes Locale::KeyedText::L::en version 1.0.1. =head1 SYNOPSIS I =head1 DESCRIPTION I =head1 INTERFACE I =head1 DIAGNOSTICS I =head1 CONFIGURATION AND ENVIRONMENT I =head1 DEPENDENCIES This file requires any version of Perl 5.x.y that is at least 5.8.1. It also requires the Perl 5 packages L and L, which would conceptually be built-in to Perl, but aren't, so they are on CPAN instead. It also requires these Perl 5 packages that are on CPAN: L. =head1 INCOMPATIBILITIES None reported. =head1 SEE ALSO Go to L for the majority of references. =head1 BUGS AND LIMITATIONS I =head1 AUTHOR Darren R. Duncan (C) =head1 LICENCE AND COPYRIGHT This file is part of the Locale::KeyedText library. Locale::KeyedText is Copyright (c) 2003-2006, Darren R. Duncan. See the LICENCE AND COPYRIGHT of L for details. =head1 ACKNOWLEDGEMENTS The ACKNOWLEDGEMENTS in L apply to this file too. =cut