| 1 |
Locale-Maketext-Gettext change log |
| 2 |
|
| 3 |
2021-02-08 version 1.32 |
| 4 |
1. Makefile.PL, Build.PL: Added the CPAN distribution metadata. |
| 5 |
|
| 6 |
2021-02-07 |
| 7 |
1. maketext: Fixed the version number. |
| 8 |
|
| 9 |
2021-02-07 version 1.31 |
| 10 |
1. Updated .gitignore. |
| 11 |
2. Added MANIFEST.SKIP. |
| 12 |
3. MANIFEST, META.json, META.yml, SIGNATURE: Generated files |
| 13 |
removed from the Git repository. |
| 14 |
4. COPYING: Removed the redundant and irrelevant GPL license. |
| 15 |
5. BUGS, INSTALL, README, THANKS, TODO, README.md: Replaced the |
| 16 |
messy GNU-styled documents with a single Markdown README.md, |
| 17 |
and updated the URLs. |
| 18 |
6. Gettext.pm, Functions.pm, maketext, 11-command-line.t, |
| 19 |
12-cache.t, Changes: Various fixes to avoid JetBrains IDE |
| 20 |
problem detection. |
| 21 |
|
| 22 |
2019-09-17 version 1.30 |
| 23 |
1. 12-cache.t: Fixed so that it works on MS-Win32. I forgot to |
| 24 |
issue binmode when copying the MO files. |
| 25 |
2. 00-signature.t: Removed TEST_SIGNATURE, as this does not work |
| 26 |
on everybody who does not have my GPG public key, but me. |
| 27 |
3. 03-errors.t: Removed the debugging output. |
| 28 |
|
| 29 |
2019-09-09 version 1.29 |
| 30 |
Fix after 10 years. |
| 31 |
1. Gettext.pm: Added support to purge the lexicon cache and |
| 32 |
reread the MO file on calling textdomain() when MO file is |
| 33 |
updated automatically. This enables MO file live update with |
| 34 |
persistent applications like Mojolicious or mod_perl. |
| 35 |
2. Source is now on Github. See: |
| 36 |
https://github.com/imacat/Locale-Maketext-Gettext |
| 37 |
|
| 38 |
2009-06-27 version 1.28 |
| 39 |
Build script fix. No code changes. |
| 40 |
1. Build.PL: Removed the build_requires, as they are not |
| 41 |
required by the build process, but by the test process. |
| 42 |
The build process should not be blocked by them. |
| 43 |
Suggested by Ryan Niebur <[email protected]> and |
| 44 |
Adam Kennedy <[email protected]> |
| 45 |
(and Audrey Tang). |
| 46 |
|
| 47 |
2009-04-28 version 1.27 |
| 48 |
Test suite fix. No code changes. |
| 49 |
1. t/03-errors.t: Fixed the find_system_mo() subroutine to |
| 50 |
exclude MO files with special characters that might be |
| 51 |
considered as code by Locale::Maketext. |
| 52 |
2. t/02-big-endian.t: Fixed the native-built MO file test |
| 53 |
and moved the $POfile and $MOfile file name assignment |
| 54 |
to the beginning, to ensure that their values are |
| 55 |
assigned even if GNU gettext is not installed and |
| 56 |
the test is skipped on the target test system. |
| 57 |
|
| 58 |
2008-11-11 |
| 59 |
1. INSTALL: Fixed the grammar, changed "none" to "None.". |
| 60 |
|
| 61 |
2008-04-22 version 1.26 |
| 62 |
Documentation fix. No code changes. |
| 63 |
1. bin/maketext: Moved to script/maketext. |
| 64 |
|
| 65 |
2008-04-21 |
| 66 |
1. TODO: Added. |
| 67 |
2. Artistic and COPYING: Added. |
| 68 |
3. INSTALL: Added. Installation instructions moved from README |
| 69 |
to INSTALL. |
| 70 |
|
| 71 |
2008-04-11 version 1.25 |
| 72 |
Test suite fix. No code changes. |
| 73 |
1. t/03-errors.t and t/08-f-errors.t: Added find_system_mo(), to |
| 74 |
select a system MO file that we can use. |
| 75 |
|
| 76 |
2008-02-26 version 1.24 |
| 77 |
Test and build suite fix. No code changes. |
| 78 |
1. t/02-big-endian.t: Added creating PO at run time, in order |
| 79 |
to work with GNU gettext < 0.15 whose msgfmt does not support |
| 80 |
msgctxt yet. This should work with both older and newer |
| 81 |
GNU gettext. |
| 82 |
2. t/test_native.po: Removed. It is now generated by |
| 83 |
t/02-big-endian.t at run time. |
| 84 |
3. Makefile.PL: Added "clean" to clean-up possible existing |
| 85 |
test_native.po and test_native.mo. |
| 86 |
4. Build.PL: Added "add_to_cleanup" to clean-up possible existing |
| 87 |
test_native.po and test_native.mo. |
| 88 |
5. Build.PL: Added "build_requires". |
| 89 |
6. t/08-f-errors.t: Fixed so that it finds the newest MO file |
| 90 |
found on the system, in order to avoid legacy MO files. |
| 91 |
(gettext 0.10 in 1995?) |
| 92 |
7. t/08-f-errors.t: Fixed test 38 so that it skips in the eval() |
| 93 |
block, and dumps the error on failure. |
| 94 |
8. Changes: Added several missing change notes in version 1.23. |
| 95 |
|
| 96 |
2008-02-19 version 1.23 |
| 97 |
Added support for GNU gettext pgettext() as pmaketext(), to |
| 98 |
translate text messages in a particular context. |
| 99 |
1. Gettext.pm: Added the pmaketext() method as an equivalent of |
| 100 |
the pgettext() function in GNU gettext, to look up the text |
| 101 |
message in a particular context, according to the suggestion |
| 102 |
by Chris Travers. |
| 103 |
2. Functions.pm: Added the pmaketext() function as an equivalent |
| 104 |
of the pgettext() function in GNU gettext, and the dpmaketext() |
| 105 |
function as an equivalent of the dpgettext() function in GNU |
| 106 |
gettext, to look up the text message in a particular context, |
| 107 |
according to the suggestion by Chris Travers. |
| 108 |
3. Gettext.pm and Functions.pm: Fixed documentation and comments. |
| 109 |
Changed "perl" as "Perl". Removed contractions and replaced |
| 110 |
them with full sayings, in order to work with syntax |
| 111 |
highlighting. Removed emotional marks for the same reason. |
| 112 |
4. Makefile.PL: Added conditional checks for whether LICENSE is |
| 113 |
available in ExtUtils::MakeMaker. |
| 114 |
5. Gettext.pm and Functions.pm: Added xgettext keyword notation |
| 115 |
for dmaketext(), pmaketext() and dpmaketext(). |
| 116 |
6. t/locale/*/LC_MESSAGES/*.mo, t/test_native.po: Added messages |
| 117 |
with contexts for pmaketext() testings. |
| 118 |
7. t/*.t: Added tests for pmaketext() and dpmaketext(). |
| 119 |
8. Gettext.pm: Fixed the failure_handler_auto() method to remove |
| 120 |
the message context from the message key before sending to |
| 121 |
the failure lexicon. The failure_handler_auto() method |
| 122 |
differs from its Locale::Maketext parent from now on. |
| 123 |
|
| 124 |
2007-03-28 version 1.22 |
| 125 |
1. t/*-f-*.t: Moved Locale::Maketext::Gettext::Functions::_reset() |
| 126 |
from the end of each set of tests, to the front of each set of |
| 127 |
tests. If at the end of the test set, it would not be run if |
| 128 |
the eval{} block fails. |
| 129 |
2. Gettext.pm, Functions.pm and maketext: Updated the URL of the |
| 130 |
GNU gettext manual in the their POD documents. |
| 131 |
3. Functions.pm: The example in its POD document is updated to show |
| 132 |
more of the nature of Locale::Maketext. |
| 133 |
|
| 134 |
2007-03-28 version 1.21 |
| 135 |
1. 04-encodings.t and 09-f-encodings.t: Inserted test#26 to test the |
| 136 |
$@ error message. It is an encode() error that is not affected |
| 137 |
by the Locale::Maketext $@ change with "local $@". |
| 138 |
2. 06-racing.t: Added $LOOKUP_FAILURE as look-up failure flag. Added |
| 139 |
a simple subroutine to handle lookup failure. Test that to see if |
| 140 |
we are really die from lookup failure. |
| 141 |
3. Gettext.pm, Functions.pm and 09-f-encodings.t: Renamed |
| 142 |
ENCODING_SET to USERSET_ENCODING. USERSET_ENCODING is set to |
| 143 |
the encoding user specified. Future test should use "exists", |
| 144 |
but not "defined", as user may supply undef on this. |
| 145 |
4. Gettext.pm: Renaming _lmg_failure_handler_auto() to |
| 146 |
failure_handler_auto(). It should be OK to override it, and this |
| 147 |
help subclasses to employ our version. |
| 148 |
5. Functions.pm: Note why we don't use $@ but @ as the prototypes of |
| 149 |
__(), N_(), maketext(). |
| 150 |
6. Functions.pm: Removed unused global variable $ENCODING. |
| 151 |
7. Functions.pm: Renamed %VARS to %PARAMS. Changed $KEY_ENCODING |
| 152 |
to $PARAMS{"KEY_ENCODING"}. Changed $DIE_FOR_LOOKUP_FAILURES to |
| 153 |
$PARAMS{"DIE_FOR_LOOKUP_FAILURES"}. Changed $ENCODE_FAILURE to |
| 154 |
$PARAMS{"ENCODE_FAILURE"}. |
| 155 |
8. Gettext.pm and Functions.pm: Changed the returning line of |
| 156 |
encoding(), key_encoding() and die_for_lookup_failures() to one |
| 157 |
conditional line. This is more neat. |
| 158 |
9. Functions.pm: Updated _reset(), resetting $PARAMS{"KEY_ENCODING"} to |
| 159 |
"US-ASCII" instead of undef, add resetting |
| 160 |
$PARAMS{"DIE_FOR_LOOKUP_FAILURES"} to 0; |
| 161 |
10. Gettext.pm: Updated failure_handler_auto(), check if this method |
| 162 |
is revoked statically. |
| 163 |
11. t/*-f-*.t: Added Locale::Maketext::Gettext::Functions::_reset() to |
| 164 |
the end of each set of tests, to reset the environment. |
| 165 |
12. Gettext.pm: Added fail_with() as a wrapper to record the user set |
| 166 |
lookup failure handler, so that we can safely switch with |
| 167 |
die_for_lookup_failures(). A new attribute {"USERSET_FAIL"} is |
| 168 |
added to record it. All references to fail_with() in other places |
| 169 |
of the code are changed to SUPER::fail_with(). fail_with() is |
| 170 |
only for the user since it will update the registered user |
| 171 |
preference. |
| 172 |
13. Gettext.pm and Functions.pm: In maketext(), check if the key is |
| 173 |
Perl utf8 text with Encode::is_utf8() first before decode() the |
| 174 |
key, so that user can safely run a multibyte-aware script. |
| 175 |
14. Gettext.pm and Functions.pm: In maketext(), check if the key is |
| 176 |
Perl utf8 text with Encode::is_utf8() first before encode(), for |
| 177 |
empty/invalid lexicon with key_encoding() set but no output |
| 178 |
encoding, so that we can have a real pass through. In the case |
| 179 |
of an empty/invalid lexicon, the user should be responsible for |
| 180 |
the output encoding. Added $keyd as the decoded() $key, so |
| 181 |
that we can check the original $key later. |
| 182 |
15. Functions.pm: In __(), removed unused variables $encoding, |
| 183 |
$lh_encoding and $key_encoding. |
| 184 |
16. maketext: In parse_args(), check the return value of the eval { } |
| 185 |
block instead of $@, and remove the extra new line when writing |
| 186 |
the error in $@. |
| 187 |
17. maketext: Added an example at the DESCRIPTION chapter of the |
| 188 |
POD documentation. |
| 189 |
18. Gettext.pm: Added a note on the relation of fail_with() |
| 190 |
die_for_lookup_failures() at the description of the |
| 191 |
die_for_lookup_failures() method at the METHODS section |
| 192 |
of the POD documentation. |
| 193 |
19. Makefile.PL: Added LICENSE attribute as "perl". |
| 194 |
|
| 195 |
2007-03-28 version 1.20 |
| 196 |
Rewrite to follow the error handler design of Locale::Maketext, i.e. |
| 197 |
the fail_with() method, instead of our own. |
| 198 |
Clean up encoding mess. You may need to check if your application |
| 199 |
was depending on the previous wrong, hard-to-handle behavior on look |
| 200 |
up failures. The new behavior should be easier to deal with. |
| 201 |
1. Gettext.pm: In the textdomain() function, make sure {"ENCODING"} |
| 202 |
is not set to undef when MO file does not exists. |
| 203 |
2. Functions.pm: In the encoding() function, removed a piece of long |
| 204 |
gone, commented code. |
| 205 |
3. Gettext.pm and Functions.pm: In the encoding(), textdomain() and |
| 206 |
the _get_handle() function, add a flag {"ENCODING_SET"} to tag if |
| 207 |
we should respect the encoding() setting of the user. If there is |
| 208 |
no user preferred encoding(), when obtaining language handle with |
| 209 |
_get_handle() or textdomain(), encoding() will change to the |
| 210 |
output encoding() to that of the corresponding MO file. |
| 211 |
4. 09-f-encoding.t: Added "delete $VARS{"ENCODING_SET"}" in the end |
| 212 |
of each test to clean up the environment. |
| 213 |
5. Gettext.pm: Update the version number to 1.20. |
| 214 |
6. Functions.pm: Update the version number to 0.10. |
| 215 |
7. t/99-pod.t: Added. |
| 216 |
8. Makefile.PL: Stylish clean-up and update. Added "SIGN". |
| 217 |
9. Build.PL: Added. |
| 218 |
|
| 219 |
2007-03-27 |
| 220 |
1. Gettext.pm: Added _lmg_failure_handler_auto(), as a replacement |
| 221 |
of Locale::Maketext's failure_handler_auto(). Locale::Maketext's |
| 222 |
failure_handler_auto() until version 1.10 has problem with |
| 223 |
message keys without any brackets. See bug#33938 on rt.cpan.org. |
| 224 |
It's content was simply copied from failure_handler_auto(). |
| 225 |
2. Gettext.pm: Removed classes Locale::Maketext::Gettext::_AUTO, |
| 226 |
Locale::Maketext::Gettext::_AUTO::i_default, |
| 227 |
Locale::Maketext::Gettext::_EMPTY and |
| 228 |
Locale::Maketext::Gettext::_EMPTY::i_default. We are using |
| 229 |
Locale::Maketext's fail_with() method to deal with look up errors |
| 230 |
rather than making dummy language handles and deal with them by |
| 231 |
ourselves. This simplify things, making the code more compatible |
| 232 |
with Locale::Maketext. As a result, Locale::Maketext's |
| 233 |
fail_with() method and {"fail"} attribute are working now. |
| 234 |
3. Gettext.pm: In the maketext() method, removed the code that deal |
| 235 |
with look up errors by ourselves. Now we handle this with the |
| 236 |
{"fail"} attribute and the _lmg_failure_handler_auto() method, |
| 237 |
following the original Locale::Maketext's design. |
| 238 |
4. Gettext.pm: In the textdomain() method, added clear_isa_scan() in |
| 239 |
the end to clear the ISA handler look up cache table. This way we |
| 240 |
are not affected by the cache of _lmg_failure_handler_auto() |
| 241 |
when switching domain with textdomain(). |
| 242 |
5. Gettext.pm and Functions.pm: In encoding() and key_encoding(), |
| 243 |
feeding undef delete the property. This is to unify the practice |
| 244 |
of "exists" and "defined" tests. All tests should use "exists" |
| 245 |
instead of "defined" now. |
| 246 |
6. Functions.pm: Added classes |
| 247 |
Locale::Maketext::Gettext::Functions::_EMPTY and |
| 248 |
Locale::Maketext::Gettext::Functions::_EMPTY::i_default as a |
| 249 |
dummy locale. |
| 250 |
7. Functions.pm: Add _get_empty_handle() to return the dummy locale, |
| 251 |
with die_for_lookup_failures() properly set. This replaces the |
| 252 |
$_EMPTY setting in the beginning of the file. |
| 253 |
8. Functions.pm: In the _get_handle() method added unset the |
| 254 |
key_encoding() before returning the language handle. |
| 255 |
key_encoding() is handled by Locale::Maketext::Gettext::Functions. |
| 256 |
Locale::Maketext::Gettext does not need to handle key_encoding(). |
| 257 |
This is to follow the nature of functional API that |
| 258 |
key_encoding() should apply to all the following session in |
| 259 |
functional API. |
| 260 |
9. Gettext.pm and Functions.pm: In maketext(), stop playing magic |
| 261 |
with encoding() and key_encoding() that automatically encode() |
| 262 |
text back to key_encoding() when lookup fails. The result is |
| 263 |
too unpredictable. The application should specify which encoding |
| 264 |
they want themselves. |
| 265 |
|
| 266 |
2007-03-22 version 1.18 |
| 267 |
Fixes for Perl 5.9. Locale::Maketext in Perl 5.9 does not set $@ |
| 268 |
as its error message. Tests replying on $@ may fail for this. But |
| 269 |
I should check the return value of the eval{} block rather than $@ |
| 270 |
anyway. |
| 271 |
1. t/*.t: Addition of $r as the return value of the eval{} blocks. |
| 272 |
Addition of "return 1;" to the eval{} blocks to specify the return |
| 273 |
values. Changing tests "ok($@, "");" to "ok($r, 1);". Changing |
| 274 |
tests "ok($@, qr/maketext doesn't know how to say/);" and |
| 275 |
"ok($@, qr/does not map to/);" to "ok($r, undef)". This is to |
| 276 |
be refined. It is necessary to test if it fails by our expected |
| 277 |
reason rather than only knowing that it fails. |
| 278 |
2. Update the version number of Locale::Maketext::Gettext to match |
| 279 |
the distribution version. |
| 280 |
|
| 281 |
2005-04-27 version 1.17 |
| 282 |
1. Changes: Typo fixed. |
| 283 |
|
| 284 |
2005-04-26 version 1.16 |
| 285 |
Test suite fixes. |
| 286 |
1. 02-big-endian.t: In test 7, 8, $MOfile and $POfile are quoted |
| 287 |
when sending to the shell (backticks), to be safe to spaces and |
| 288 |
other special shell characters in their paths. |
| 289 |
2. 11-command-line.t: In all tests $maketext is quoted when sending |
| 290 |
to the shell (backticks), to be safe to spaces and other special |
| 291 |
shell characters in its path. This should solve the CPAN tester |
| 292 |
failures 200029, 200332 and 200331. Thanks to Max Maischein |
| 293 |
<[email protected]> for testing and reporting this. |
| 294 |
3. Changes: File edited to widen line limit from 60 columns to 79 |
| 295 |
columns, to ease the reading. |
| 296 |
4. THANKS: Updated. |
| 297 |
|
| 298 |
2005-04-26 version 1.15 |
| 299 |
1. SIGNATURE: Included Modules::Signature gpg signature file added. |
| 300 |
2. 00-signature.t: Added. |
| 301 |
|
| 302 |
2005-04-21 version 1.14 |
| 303 |
1. maketext: Prototypes of the following subroutines are |
| 304 |
declared first now: main() and parse_args(). |
| 305 |
|
| 306 |
2005-04-20 version 1.13 |
| 307 |
1. Changes: Addition of new unencoded UTF-8 tests is appended to the |
| 308 |
change log. |
| 309 |
2. Changes: Addition of warning of key_encoding() is appended to the |
| 310 |
change log. |
| 311 |
3. Changes: Typo fixed: "Vesion" should be "Version". |
| 312 |
4. Changes: Typo fixed: 2005-04-10 should be 2005-04-20. |
| 313 |
|
| 314 |
2005-04-20 version 1.12 |
| 315 |
Documentation fixes. |
| 316 |
1. Update the copyright year on the updated files. |
| 317 |
2. Changes: Version number added. |
| 318 |
|
| 319 |
2005-04-19 version 1.11 |
| 320 |
1. Gettext.pm: Using undef as encoding or key_encoding. Methods |
| 321 |
encoding() and key_encoding() now check the number of arguments |
| 322 |
instead of the argument value. When undef, the unencoded UTF-8 |
| 323 |
text is returned. |
| 324 |
2. Gettext.pm: Prototype of subroutine read_mo() is declared first |
| 325 |
now. |
| 326 |
3. Gettext.pm: Deprecated subroutine readmo() is removed. |
| 327 |
4. Functions.pm: Prototypes of the following subroutines are declared |
| 328 |
first now: bindtextdomain(), textdomain(), get_handle(), |
| 329 |
maketext(), __(), N_(), dmaketext(), reload_text(), encoding(), |
| 330 |
key_encoding(), encode_failure(), die_for_lookup_failures(), |
| 331 |
_declare_class(), _catclass(), _init_textdomain(), _get_langs(), |
| 332 |
_get_handle(), _reset(), _new_rid(), _k() and _lang(). |
| 333 |
5. 07-f-basic.t: Locale environment variables are cleared before |
| 334 |
running tests, to avoid confusion from the user's current locale. |
| 335 |
6. 10-f-switching.t: Locale environment variables are cleared before |
| 336 |
running tests, to avoid confusion from the user's current locale. |
| 337 |
7. Gettext.pm: Default KEY_ENCODING to US-ASCII. It is always |
| 338 |
decoded to UTF-8 first when looked up in the _AUTO lexicon, to |
| 339 |
ensure that the resulted text is always in UTF-8. |
| 340 |
8. Gettext.pm: Avoid caching undefined MO file encoding when MO file |
| 341 |
is not available. |
| 342 |
9. Gettext.pm: New attribute "MO_ENCODING" is added to to record the |
| 343 |
encoding of the MO file. |
| 344 |
10. Functions.pm: Default KEY_ENCODING to US-ASCII. It is always |
| 345 |
decoded to UTF-8 first when looked up in the _AUTO lexicon, to |
| 346 |
ensure that the resulted text is always in UTF-8. |
| 347 |
11. 04-encodings.t: Tests 28-33 added to test returning unencoded |
| 348 |
UTF-8 text. |
| 349 |
12. 09-f-encodings.t: Tests 28-33 added to test returning unencoded |
| 350 |
UTF-8 text. |
| 351 |
13. Gettext.pm: Warning is added to the use of key_encoding(). |
| 352 |
14. Functions.pm: Warning is added to the use of key_encoding(). |
| 353 |
|
| 354 |
2005-04-05 |
| 355 |
1. Gettext.pm: Subroutine attribute "method" is tagged on the |
| 356 |
following methods: encoding(), key_encoding(), new(), |
| 357 |
subclass_init(), bindtextdomain(), textdomain(), maketext(), |
| 358 |
reload_text(), die_for_lookup_failures() and encode_failure(). |
| 359 |
|
| 360 |
2003-05-12 |
| 361 |
1. Gettext.pm: key_encoding applied to "not found" keys only, so that |
| 362 |
it can be looked up in their original encoding in the %Lexicon. |
| 363 |
|
| 364 |
2003-05-09 version 1.10 |
| 365 |
1. Functions.pm: _get_handle: Fallback language handler changed from |
| 366 |
the failed language handler $FLH to the empty lexicon $_EMPTY. |
| 367 |
This has no real effect, since lookup failures are always handled |
| 368 |
by $FLH, but not the current language handler $LH. But this |
| 369 |
matches the reality. |
| 370 |
|
| 371 |
2003-05-08 |
| 372 |
1. Changes: typo (version 1.07 should be version 1.09) |
| 373 |
|
| 374 |
2003-05-07 |
| 375 |
1. Changes: An excess blank line is removed. |
| 376 |
|
| 377 |
2003-05-07 version 1.09 |
| 378 |
Test suite fix. |
| 379 |
1. 02-big-endian.t: Fix on $MSGFMT so that it works on more |
| 380 |
platforms. |
| 381 |
|
| 382 |
2003-05-07 version 1.08 |
| 383 |
Fixes mistakes from version 1.07 |
| 384 |
1. Return the interpreter line to the maketext script. It was a |
| 385 |
misunderstanding at 1.07 |
| 386 |
2. Content-Transfer-Encoding is fixed from 8bit to 7bit in the |
| 387 |
English MO files. |
| 388 |
3. t/test_native.po: Added. |
| 389 |
4. 02-big-endian.t: Test suite for native-built MO files are added. |
| 390 |
Please report your failures. |
| 391 |
|
| 392 |
2003-05-05 version 1.07 |
| 393 |
Bug fixes. |
| 394 |
1. Fix to the interpreter line in the maketext script so that it can |
| 395 |
be replaced with correct interpreter at make time. |
| 396 |
2. 11-command-line.t: script location changed from lib/maketext to |
| 397 |
blib/script/maketext. |
| 398 |
3. C locale is added to the test suite. |
| 399 |
4. 11-command-line.t: Locales en, zh_TW, zh_CN are remove from the |
| 400 |
test suite, to avoid perl warnings from systems that did not |
| 401 |
install these locales. |
| 402 |
5. 11-command-line.t: $ENV{"LANGUAGE"} controls added. |
| 403 |
|
| 404 |
2003-05-04 version 1.06 |
| 405 |
1. Language function override is not available for L::M::G::F and the |
| 406 |
maketext script. I almost forgot this problem. Notice is added |
| 407 |
to the documentation. Suggestions are welcome. |
| 408 |
|
| 409 |
2003-05-03 version 1.06 |
| 410 |
Introducing "maketext", a command line interface to |
| 411 |
Locale::Maketext::Gettext (and Locale::Maketext). |
| 412 |
1. The maketext script is added, a command line interface to |
| 413 |
Locale::Maketext::Gettext (and Locale::Maketext). |
| 414 |
|
| 415 |
2003-05-03 version 1.05 |
| 416 |
Test suites fixes. This fixes the failures reported from CPAN |
| 417 |
testers. Failures reported from CPAN testers are caused by |
| 418 |
Archive-Tar called by CPANPLUS, but not by Locale::Maketext::Gettext |
| 419 |
itself. Bug report concerning this problem is already submitted to |
| 420 |
Archive-Tar. |
| 421 |
1. Test suite temporarily files test_dyn.mo are removed from |
| 422 |
MANIFEST. |
| 423 |
2. File::Copy is used instead of link in the test suites to enable |
| 424 |
tests on platforms that does not support hard links (Win32, for |
| 425 |
example). |
| 426 |
3. Temporarily files are cleaned up at the end of 05-switching.t and |
| 427 |
10-f-switching.t. |
| 428 |
Upgrade is not required if you are using version 1.04. |
| 429 |
|
| 430 |
2003-05-02 version 1.04 |
| 431 |
1. Support for MO files without encoding specified was added. I |
| 432 |
don't know there are MO files born without its encoding. ^^; |
| 433 |
2. L::M::G::F: textdomain() now works for default system locale |
| 434 |
directories, too. For domains that are not bound with |
| 435 |
bindtextdomain(), it searches the system locale directories to |
| 436 |
find the domain MO files. Unlike textdomain() in L::M::G, it |
| 437 |
remembers the search result in order to build the index key. |
| 438 |
3. Tests for default system locale directory search are added. It |
| 439 |
may be skipped, though. |
| 440 |
|
| 441 |
2003-05-02 version 1.03 |
| 442 |
1. L::M::G: A algorithm bug about key_encoding with auto-lexicon was |
| 443 |
fixed. |
| 444 |
2. L::M::G::F: I decide to give up mod_perl safety for encoding, |
| 445 |
key_encoding, encode_failure and die_for_lookup_failures(). |
| 446 |
POSIX::setlocale() didn't solve this problem, either. Use L::M::G |
| 447 |
if you need that. Suggestions and solutions are welcome. |
| 448 |
3. L::M::G: FLH (Failure language handler) is added to |
| 449 |
help switching the die_for_lookup_failures() setting. |
| 450 |
Maketext can be slightly faster. |
| 451 |
|
| 452 |
2003-05-01 |
| 453 |
Labor's Day! |
| 454 |
A Major rewrite to Locale::Maketext::Gettext::Functions. |
| 455 |
1. Packages are declared by a random class ID, instead of by its text |
| 456 |
domain previously, in order for a text domain to be redeclared |
| 457 |
with different sets of languages infinitely. This solves the |
| 458 |
problem where languages cannot to be removed at run-time. You can |
| 459 |
add/remove languages/MO files at run time now. You can also |
| 460 |
bindtextdomain() to another directory after setting textdomain(). |
| 461 |
This is not possible to the object interface of |
| 462 |
Locale::Maketext::Gettext (and Locale::Maketext). |
| 463 |
2. fork_and_test is removed from the test suite. It does not seem to |
| 464 |
be required by the current random class ID system anymore. |
| 465 |
3. The used of ($t1..$t6) is replaced by ($_[0]..$_[5]) in to |
| 466 |
05-switching.t. |
| 467 |
4. Garbage collection is added. Language handles associated with |
| 468 |
abandoned localization classes are dropped in time, in order to |
| 469 |
reduce memory used. |
| 470 |
|
| 471 |
2003-04-30 |
| 472 |
1. L::M::G::F: I forgot to document dmaketext, too. ^^; |
| 473 |
But, no, I will not put a third release today! |
| 474 |
2. L::M::G::F: Fixes to documentation typos. |
| 475 |
3. maketext() and __() are exchanged. maketext() is a wrapper to |
| 476 |
__() now. The speed of __() should be slightly faster. |
| 477 |
|
| 478 |
2003-04-30 version 1.02 |
| 479 |
Documentation fixes. |
| 480 |
1. L::M::G::F: Documentation fixes. get_handle was not included in |
| 481 |
the documentation. ^^; I forgot to put it in. |
| 482 |
2. README was updated. L::M::G::F is included in the README. Also, |
| 483 |
the installation procedure is updated, too. I forgot to update it |
| 484 |
last time. |
| 485 |
|
| 486 |
2003-04-30 version 1.01 |
| 487 |
Improvements to Locale::Maketext::Gettext::Functions. |
| 488 |
1. L::M::G::F: Documentation fixes. Lots of errors sit there in the |
| 489 |
previous documentation. It's impossible to work if you follow the |
| 490 |
previous documentation. ^^; Ha ha... |
| 491 |
2. L::M::G: Map the language i-default to the locale C. |
| 492 |
3. L::M::G::F: Map the locale C to the language i-default. |
| 493 |
4. fork_and_test is added to the test suite to test without polluting |
| 494 |
the package space. It is slow, though. ^^; |
| 495 |
5. L::M::G::F: Several test suites are added. |
| 496 |
6. L::M::G::F: Error tolerance is largely improved. |
| 497 |
7. L::M::G: New method subclass_init() is added. Object |
| 498 |
initialization is moved from the new method to the subclass_init() |
| 499 |
method, so that another subclass may inherit it further. |
| 500 |
8. L::M::G::F: The "experimental" warning is removed. Large amount of |
| 501 |
errors can be handled gracefully now. |
| 502 |
|
| 503 |
2003-04-28 |
| 504 |
1. TestPkg/L10N.pm is renamed as T_L10N.pm. It is neater. A |
| 505 |
TestPkg/ subdirectory is not necessary. |
| 506 |
2. Change log is fixed. I forgot to put the version number 0.07. |
| 507 |
3. Also, the version number should become 1.00, for the joining of |
| 508 |
Locale::Maketext::Gettext::Functions. ^_*' |
| 509 |
|
| 510 |
2003-04-28 version 0.07 (1.00) |
| 511 |
Introducing Locale::Maketext::Gettext::Functions, a functional |
| 512 |
interface to Locale::Maketext::Gettext. |
| 513 |
1. The first Locale::Maketext::Gettext::Functions is out. It works! |
| 514 |
^_*' But it is still experimental. It cannot deal with real |
| 515 |
world problems still. ^^; |
| 516 |
2. Documentation was fixed so that it is neater. |
| 517 |
|
| 518 |
2003-04-27 |
| 519 |
1. The name of the _AUTO lexicon package is shorten to |
| 520 |
Locale::Maketext::Gettext::_AUTO. |
| 521 |
2. Documentation rearrange. |
| 522 |
|
| 523 |
2003-04-27 version 0.06 |
| 524 |
Improvements. |
| 525 |
1. textdomain() works for default system locale directories now. For |
| 526 |
domains that are not bound with bindtextdomain(), it searches the |
| 527 |
system locale directories to find the MO file. No test suite is |
| 528 |
available for this functionality. I cannot predict what MO files |
| 529 |
are available in your system locale directories. ^^; Please |
| 530 |
report bugs if it does not work. |
| 531 |
2. Slave package Locale::Maketext::Gettext::_AUTO::L10N is added, in |
| 532 |
order to process the _AUTO Lexicon separately. This saves |
| 533 |
resources when user change the die_for_lookup_failures() setting. |
| 534 |
Changing die_for_lookup_failures() setting won't trigger copying |
| 535 |
and replacing your whole %Lexicon anymore. As an effect, the |
| 536 |
cached compiled result of the _AUTO lexicon is preserved and the |
| 537 |
compilation overhead from Locale::Maketext is greatly reduced. |
| 538 |
3. read_mo() is added to retire the readmo(). Use of readmo() is |
| 539 |
deprecated. This idea is inspired by the implementation of |
| 540 |
readmo() as "parse_mo" in Locale::Maketext::Lexicon by Autrijus. |
| 541 |
There is far too much meta information to be returned other than |
| 542 |
its encoding. It's not possible to change the API for each new |
| 543 |
requirement. To enable sharing of the algorithm used in read_mo() |
| 544 |
with whoever need it, it's necessary to limit its function to read |
| 545 |
and return the raw data, leaving all the other jobs to its caller. |
| 546 |
4. For the same reason, caching control is removed from read_mo(), |
| 547 |
too. read_mo() read the MO file and return the %Lexicon only. It |
| 548 |
really reads. Nothing more. ^_*' |
| 549 |
|
| 550 |
2003-04-27 version 0.05 |
| 551 |
Bug and documentation fixes. |
| 552 |
1. New method key_encoding was added. The _AUTO lexicon is itself |
| 553 |
not multibyte-safe. You can specify the encoding of your keys if |
| 554 |
you are using non-ASCII keys. This is not a solution, but a |
| 555 |
workaround. |
| 556 |
2. New method encode_failure was added. The default action when |
| 557 |
encode fails changed from FB_CROAK to FB_DEFAULT. I have changed |
| 558 |
my mind. GNU gettext never fails. |
| 559 |
3. The paragraph about Locale::Maketext::Lexicon at the NOTES section |
| 560 |
in the documentation is updated. The paragraph about msgunfmt is |
| 561 |
removed. |
| 562 |
4. The README file was updated. |
| 563 |
5. The strange line "exists ${"$class\::Lexicon"}{$key};" is removed. |
| 564 |
That problem seems to be solved. It is not required anymore. |
| 565 |
|
| 566 |
2003-04-25 version 0.04 |
| 567 |
Documentation fixes. Upgrade is not required if you are using version |
| 568 |
0.03. |
| 569 |
|
| 570 |
2003-04-25 version 0.03 |
| 571 |
Bug fixes. |
| 572 |
1. Fixed clashing of the die_for_lookup_failures() setting from |
| 573 |
multiple instances. |
| 574 |
2. Change log is rewritten, to my own format. |
| 575 |
3. A new racing test suite is added. The old racing test suite was |
| 576 |
renamed as t-switching. |
| 577 |
4. Redundant initialization of $LH->{"LOCALEDIRS"} in |
| 578 |
bindtextdomain() is removed. |
| 579 |
5. An old line at die_for_lookup_failures() which initialize a wrong |
| 580 |
$LH->{"LOCALE"} is removed. |
| 581 |
6. Removed 2 incorrect notice in the documentation. There will not |
| 582 |
be infinite loops for bindtextdomain() and textdomain(), whatever |
| 583 |
value it takes. Apparently I had made a mistake. ^^; |
| 584 |
7. Several typos in the comments are fixed. |
| 585 |
8. Sanity checks to the MO file is moved into readmo(). Cache now |
| 586 |
has a higher precedence than the sanity checks, which conforms |
| 587 |
with the global design. |
| 588 |
9. More documentation was added to the SYNOPSIS. |
| 589 |
10. Sanity checks for whether a method is invoked as a static method |
| 590 |
are added. Maketext use static variables. We should not clash |
| 591 |
them. |
| 592 |
11. As a result of the above, the maketext method is no more static. |
| 593 |
It is an instance method, meaning that MyPkg::L10N::en->maketext |
| 594 |
does not work anymore. |
| 595 |
12. Instance lexicon is initialized in the new method. I almost |
| 596 |
forgot it. Thanks to the test suite. :p |
| 597 |
|
| 598 |
2003-04-25 version 0.02 |
| 599 |
Class/object design fixes. |
| 600 |
1. I did tell the difference from class variables to instance |
| 601 |
variables. Forgive me, I had no experience with object-oriented |
| 602 |
programming at all, not even OO for perl. :p Just a few Java |
| 603 |
books. Anyway, the problem with clashing class variables is |
| 604 |
fixed. Most class variables are moved into instance variables. |
| 605 |
2. Solved the default output encoding problem by using the encoding |
| 606 |
of the MO file as the default encoding. |
| 607 |
3. reload_text method is added to purge the MO file cache, so that |
| 608 |
applications do not need to be restarted when their MO file |
| 609 |
updates. |
| 610 |
4. MO files of different byte orders are supported now. Big-endian |
| 611 |
MO files support is added. |
| 612 |
5. die_for_lookup_failures() method was added. The default behavior |
| 613 |
changed to "never fails", as GNU gettext does. |
| 614 |
6. A test suite is added. |
| 615 |
|
| 616 |
2003-04-24 version 0.01 |