Locale-Maketext-Gettext

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

	    the end to clear the ISA handler look up cache table.  This way we
	    are not affected by the cache of _lmg_failure_handler_auto()
	    when switching domain with textdomain().
	 5. Gettext.pm and Functions.pm: In encoding() and key_encoding(),
	    feeding undef delete the property.  This is to unify the practice
	    of "exists" and "defined" tests.  All tests should use "exists"
	    instead of "defined" now.
	 6. Functions.pm: Added classes
	    Locale::Maketext::Gettext::Functions::_EMPTY and
	    Locale::Maketext::Gettext::Functions::_EMPTY::i_default as a
	    dummy locale.
	 7. Functions.pm: Add _get_empty_handle() to return the dummy locale,
	    with die_for_lookup_failures() properly set.  This replaces the
	    $_EMPTY setting in the beginning of the file.
	 8. Functions.pm: In the _get_handle() method added unset the
	    key_encoding() before returning the language handle.
	    key_encoding() is handled by Locale::Maketext::Gettext::Functions.
	    Locale::Maketext::Gettext does not need to handle key_encoding().
	    This is to follow the nature of functional API that
	    key_encoding() should apply to all the following session in
	    functional API.
	 9. Gettext.pm and Functions.pm: In maketext(), stop playing magic
	    with encoding() and key_encoding() that automatically encode()
	    text back to key_encoding() when lookup fails.  The result is
	    too unpredictable.  The application should specify which encoding
	    they want themselves.

2007-03-22	version 1.18
	Fixes for Perl 5.9.  Locale::Maketext in Perl 5.9 does not set $@
	as its error message.  Tests replying on $@ may fail for this.  But
	I should check the return value of the eval{} block rather than	$@
	anyway.
	 1. t/*.t: Addition of $r as the return value of the eval{} blocks.
	    Addition of "return 1;" to the eval{} blocks to specify the return
	    values.  Changing tests "ok($@, "");" to "ok($r, 1);".  Changing
	    tests "ok($@, qr/maketext doesn't know how to say/);" and
	    "ok($@, qr/does not map to/);" to "ok($r, undef)".  This is to
	    be refined.  It is necessary to test if it fails by our expected
	    reason rather than only knowing that it fails.
	 2. Update the version number of Locale::Maketext::Gettext to match
	    the distribution version.

2005-04-27	version 1.17
	 1. Changes: Typo fixed.

2005-04-26	version 1.16
	Test suite fixes.
	 1. 02-big-endian.t: In test 7, 8, $MOfile and $POfile are quoted
	    when sending to the shell (backticks), to be safe to spaces and
	    other special shell characters in their paths.
	 2. 11-command-line.t: In all tests $maketext is quoted when sending
	    to the shell (backticks), to be safe to spaces and other special
	    shell characters in its path.  This should solve the CPAN tester
	    failures 200029, 200332 and 200331.  Thanks to Max Maischein
	    <corion@corion.net> for testing and reporting this.
	 3. Changes: File edited to widen line limit from 60 columns to 79
	    columns, to ease the reading.
	 4. THANKS: Updated.

2005-04-26	version 1.15
	 1. SIGNATURE: Included Modules::Signature gpg signature file added.
	 2. 00-signature.t: Added.

2005-04-21	version 1.14
	 1. maketext: Prototypes of the following subroutines are
	    declared first now: main() and parse_args().

2005-04-20	version 1.13
	 1. Changes: Addition of new unencoded UTF-8 tests is appended to the
	    change log.
	 2. Changes: Addition of warning of key_encoding() is appended to the
	    change log.
	 3. Changes: Typo fixed: "Vesion" should be "Version".
	 4. Changes: Typo fixed: 2005-04-10 should be 2005-04-20.

2005-04-20	version 1.12
	Documentation fixes.
	 1. Update the copyright year on the updated files.
	 2. Changes: Version number added.

2005-04-19	version 1.11
	 1. Gettext.pm: Using undef as encoding or key_encoding.  Methods
	    encoding() and key_encoding() now check the number of arguments
	    instead of the argument value.  When undef, the unencoded UTF-8
	    text is returned.
	 2. Gettext.pm: Prototype of subroutine read_mo() is declared first
	    now.
	 3. Gettext.pm: Deprecated subroutine readmo() is removed.
	 4. Functions.pm: Prototypes of the following subroutines are declared
	    first now: bindtextdomain(), textdomain(), get_handle(),
	    maketext(), __(), N_(), dmaketext(), reload_text(), encoding(),
	    key_encoding(), encode_failure(), die_for_lookup_failures(),
	    _declare_class(), _catclass(), _init_textdomain(), _get_langs(),
	    _get_handle(), _reset(), _new_rid(), _k() and _lang().
	 5. 07-f-basic.t: Locale environment variables are cleared before
	    running tests, to avoid confusion from the user's current locale.
	 6. 10-f-switching.t: Locale environment variables are cleared before
	    running tests, to avoid confusion from the user's current locale.
	 7. Gettext.pm: Default KEY_ENCODING to US-ASCII.  It is always
	    decoded to UTF-8 first when looked up in the _AUTO lexicon, to
	    ensure that the resulted text is always in UTF-8.
	 8. Gettext.pm: Avoid caching undefined MO file encoding when MO file
	    is not available.
	 9. Gettext.pm: New attribute "MO_ENCODING" is added to to record the
	    encoding of the MO file.
	10. Functions.pm: Default KEY_ENCODING to US-ASCII.  It is always
	    decoded to UTF-8 first when looked up in the _AUTO lexicon, to
	    ensure that the resulted text is always in UTF-8.
	11. 04-encodings.t: Tests 28-33 added to test returning unencoded
	    UTF-8 text.
	12. 09-f-encodings.t: Tests 28-33 added to test returning unencoded
	    UTF-8 text.
	13. Gettext.pm: Warning is added to the use of key_encoding().
	14. Functions.pm: Warning is added to the use of key_encoding().

2005-04-05
	 1. Gettext.pm: Subroutine attribute "method" is tagged on the
	    following methods: encoding(), key_encoding(), new(),
	    subclass_init(), bindtextdomain(), textdomain(), maketext(),
	    reload_text(), die_for_lookup_failures() and encode_failure().



( run in 2.153 seconds using v1.01-cache-2.11-cpan-df04353d9ac )