]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
19 years agoMove change for #34 to 0.8.1 release in ChangeLog.
Christopher Lenz [Mon, 2 Jul 2007 09:23:16 +0000 (09:23 +0000)] 
Move change for #34 to 0.8.1 release in ChangeLog.

19 years agoAdd an option to the frontend commands for catalog updating that removes completely...
Christopher Lenz [Sun, 1 Jul 2007 17:59:44 +0000 (17:59 +0000)] 
Add an option to the frontend commands for catalog updating that removes completely any obsolete messages, instead of putting them comments.

19 years agoCorrectly write out obsolete messages spanning multiple lines. Fixes #33.
Christopher Lenz [Sun, 1 Jul 2007 17:45:27 +0000 (17:45 +0000)] 
Correctly write out obsolete messages spanning multiple lines. Fixes #33.

19 years agoRename command-line script to avoid conflict with the OpenBabel project. Closes #34.
Christopher Lenz [Fri, 29 Jun 2007 14:50:20 +0000 (14:50 +0000)] 
Rename command-line script to avoid conflict with the OpenBabel project. Closes #34.

19 years agoFix adding new messages in catalog update.
Christopher Lenz [Fri, 29 Jun 2007 13:47:10 +0000 (13:47 +0000)] 
Fix adding new messages in catalog update.

19 years agoAdd renaming of `init_catalog` to ChangeLog.
Christopher Lenz [Fri, 29 Jun 2007 08:23:10 +0000 (08:23 +0000)] 
Add renaming of `init_catalog` to ChangeLog.

19 years agoAdd a command-line option that prints out all available locales. Closes #24.
Christopher Lenz [Thu, 28 Jun 2007 16:34:40 +0000 (16:34 +0000)] 
Add a command-line option that prints out all available locales. Closes #24.

19 years agoChangeLog entry for [185].
Christopher Lenz [Thu, 28 Jun 2007 11:50:30 +0000 (11:50 +0000)] 
ChangeLog entry for [185].

19 years agoMore robust locale string parsing, with support for scripts. Closes #27.
Christopher Lenz [Thu, 28 Jun 2007 11:43:26 +0000 (11:43 +0000)] 
More robust locale string parsing, with support for scripts. Closes #27.

19 years agoThe frontends now provide ways to update existing translations catalogs from a templa...
Christopher Lenz [Thu, 28 Jun 2007 10:28:25 +0000 (10:28 +0000)] 
The frontends now provide ways to update existing translations catalogs from a template. Closes #22.

19 years agoadded 'N_' (gettext noop) to the extractor's default keywords
Philip Jenvey [Wed, 27 Jun 2007 22:43:26 +0000 (22:43 +0000)] 
added 'N_' (gettext noop) to the extractor's default keywords
fixes #25

19 years agoMinor change to what symbols are “exported”, primarily for the generated docs.
Christopher Lenz [Wed, 27 Jun 2007 14:38:20 +0000 (14:38 +0000)] 
Minor change to what symbols are “exported”, primarily for the generated docs.

19 years ago * Instead of an extra `compile-all` option on the `compile` (or `compile_catalog...
Christopher Lenz [Wed, 27 Jun 2007 14:29:17 +0000 (14:29 +0000)] 
 * Instead of an extra `compile-all` option on the `compile` (or `compile_catalog`) command, compilation of all catalogs is performed when neither an `input_file` nor a `locale` is specified.
 * The `--use-fuzzy` option works again from the command-line.

19 years agoAdded tests for the `compile` command of `babel` binary and `messages_non_fuzzy.pot...
Pedro Algarvio [Tue, 26 Jun 2007 18:22:19 +0000 (18:22 +0000)] 
Added tests for the `compile` command of `babel` binary and `messages_non_fuzzy.pot` to further test `read_po` fuzzy bit header parsing.

19 years agoChanged the `__repr__` output to include the flags(it can be changed back, but it...
Pedro Algarvio [Tue, 26 Jun 2007 16:46:56 +0000 (16:46 +0000)] 
Changed the `__repr__` output to include the flags(it can be changed back, but it was usefull to implement the fuzzy header parsing).
The `Catalog` class now also includes an extra attribute, '''`fuzzy`''', which is the fuzzy bit of the catalog header.
The above change allows the `compile_catalog` frontends to only compile catalogs '''not''' marked as fuzzy, unless `--use-fuzzy` is passed.
Added tests to check header fuzzy bit parsing.

19 years agoExtended the doctest to include tests for the fix on [176].
Pedro Algarvio [Tue, 26 Jun 2007 09:13:08 +0000 (09:13 +0000)] 
Extended the doctest to include tests for the fix on [176].

19 years agoForgot to fix the pluralizable messages, regarding #28.
Pedro Algarvio [Tue, 26 Jun 2007 08:41:29 +0000 (08:41 +0000)] 
Forgot to fix the pluralizable messages, regarding #28.

19 years agoFix for #28 with updated doctest.
Pedro Algarvio [Mon, 25 Jun 2007 11:37:01 +0000 (11:37 +0000)] 
Fix for #28 with updated doctest.

19 years agopot_file is a typo here
Philip Jenvey [Sun, 24 Jun 2007 00:28:25 +0000 (00:28 +0000)] 
pot_file is a typo here

19 years agoAllow the compile catalog frontends to compile all available locales.
Pedro Algarvio [Fri, 22 Jun 2007 17:56:02 +0000 (17:56 +0000)] 
Allow the compile catalog frontends to compile all available locales.

19 years agoTypo fix.
Pedro Algarvio [Fri, 22 Jun 2007 16:58:39 +0000 (16:58 +0000)] 
Typo fix.

19 years agoAdded note on [167] to ChangeLog.
Christopher Lenz [Fri, 22 Jun 2007 10:35:24 +0000 (10:35 +0000)] 
Added note on [167] to ChangeLog.

19 years agoImplement fuzzy matching to catalog updates. No frontend yet.
Christopher Lenz [Fri, 22 Jun 2007 08:39:04 +0000 (08:39 +0000)] 
Implement fuzzy matching to catalog updates. No frontend yet.

19 years agomade the python extractor detect source file encodings from the magic encoding
Philip Jenvey [Fri, 22 Jun 2007 00:38:54 +0000 (00:38 +0000)] 
made the python extractor detect source file encodings from the magic encoding
comment (or default to ascii) and convert message strings and comments to
unicode
fixes #23

19 years agoAdded preliminary catalog updating/merging functionality.
Christopher Lenz [Fri, 22 Jun 2007 00:33:22 +0000 (00:33 +0000)] 
Added preliminary catalog updating/merging functionality.

19 years agoalphabetize imports
Philip Jenvey [Thu, 21 Jun 2007 21:28:51 +0000 (21:28 +0000)] 
alphabetize imports

19 years agoSlightly simplified CLI-frontend class.
Christopher Lenz [Thu, 21 Jun 2007 16:12:38 +0000 (16:12 +0000)] 
Slightly simplified CLI-frontend class.

19 years agoAdd MO file generation. Closes #21.
Christopher Lenz [Thu, 21 Jun 2007 14:38:30 +0000 (14:38 +0000)] 
Add MO file generation. Closes #21.

19 years agoMinor cleanup in the `pofile` module.
Christopher Lenz [Thu, 21 Jun 2007 12:10:59 +0000 (12:10 +0000)] 
Minor cleanup in the `pofile` module.

19 years agoMinor improvements to locale negotation.
Christopher Lenz [Thu, 21 Jun 2007 11:38:42 +0000 (11:38 +0000)] 
Minor improvements to locale negotation.

19 years agoThe default ordering of messages in generated POT files, which is based on the order...
Christopher Lenz [Wed, 20 Jun 2007 21:41:00 +0000 (21:41 +0000)] 
The default ordering of messages in generated POT files, which is based on the order those messages are found when walking the source tree, is no longer subject to differences between platforms; directory and file names are now always sorted alphabetically.

19 years agoUpdated change log with recent fixes.
Christopher Lenz [Wed, 20 Jun 2007 21:18:44 +0000 (21:18 +0000)] 
Updated change log with recent fixes.

19 years agoRespect charset specified in PO headers in `read_po()`. Fixes #17.
Christopher Lenz [Wed, 20 Jun 2007 20:31:24 +0000 (20:31 +0000)] 
Respect charset specified in PO headers in `read_po()`. Fixes #17.

19 years agoThe `LANGUAGE` environment variable may contain a colon-separated list of language...
Christopher Lenz [Wed, 20 Jun 2007 20:18:52 +0000 (20:18 +0000)] 
The `LANGUAGE` environment variable may contain a colon-separated list of language codes.

19 years agosimplify
Philip Jenvey [Wed, 20 Jun 2007 19:54:33 +0000 (19:54 +0000)] 
simplify

19 years agoSome doc fixes.
Christopher Lenz [Wed, 20 Jun 2007 15:04:48 +0000 (15:04 +0000)] 
Some doc fixes.

19 years agoBump up version number on trunk.
Christopher Lenz [Wed, 20 Jun 2007 10:50:51 +0000 (10:50 +0000)] 
Bump up version number on trunk.

19 years agoInitialized change log.
Christopher Lenz [Wed, 20 Jun 2007 10:07:37 +0000 (10:07 +0000)] 
Initialized change log.

19 years agoGenshi extraction method has moved to Genshi project. Closes #13.
Christopher Lenz [Wed, 20 Jun 2007 10:02:04 +0000 (10:02 +0000)] 
Genshi extraction method has moved to Genshi project. Closes #13.

19 years agoSome code cleanup.
Jonas Borgström [Tue, 19 Jun 2007 19:44:02 +0000 (19:44 +0000)] 
Some code cleanup.

19 years agoFix frontend tests on Python 2.5, where the case of some of the output of optparse...
Christopher Lenz [Tue, 19 Jun 2007 17:17:46 +0000 (17:17 +0000)] 
Fix frontend tests on Python 2.5, where the case of some of the output of optparse usage has changed.

19 years agoMore fixes for Windows compatibility:
Christopher Lenz [Tue, 19 Jun 2007 12:13:46 +0000 (12:13 +0000)] 
More fixes for Windows compatibility:
 * normalize path segment separator to "/"
 * use `dates.format_date` also to set the expected date-strings in the frontend tests.

19 years agoMinor doc fixes.
Christopher Lenz [Mon, 18 Jun 2007 19:49:12 +0000 (19:49 +0000)] 
Minor doc fixes.

19 years agoSet explicit local timezone for CLI `init` command.
Christopher Lenz [Mon, 18 Jun 2007 18:26:19 +0000 (18:26 +0000)] 
Set explicit local timezone for CLI `init` command.

19 years agoUse `dates.format_datetime` for dates in PO(T) header, as `datetime.strftime` produce...
Christopher Lenz [Mon, 18 Jun 2007 18:24:44 +0000 (18:24 +0000)] 
Use `dates.format_datetime` for dates in PO(T) header, as `datetime.strftime` produces wrong results on windows.

19 years agoMake `relpath` doctest Windows-compatible.
Christopher Lenz [Mon, 18 Jun 2007 17:55:31 +0000 (17:55 +0000)] 
Make `relpath` doctest Windows-compatible.

19 years agoImplement wall-time time-zone display.
Christopher Lenz [Mon, 18 Jun 2007 17:31:59 +0000 (17:31 +0000)] 
Implement wall-time time-zone display.

19 years agoFake `sys.argv` for CLI tests.
Christopher Lenz [Mon, 18 Jun 2007 17:13:09 +0000 (17:13 +0000)] 
Fake `sys.argv` for CLI tests.

19 years agoAdd a couple of CLI tests.
Christopher Lenz [Mon, 18 Jun 2007 17:05:00 +0000 (17:05 +0000)] 
Add a couple of CLI tests.

19 years agoAdd test for permille number format.
Christopher Lenz [Mon, 18 Jun 2007 16:33:54 +0000 (16:33 +0000)] 
Add test for permille number format.

19 years agoAdd currency formatting.
Christopher Lenz [Mon, 18 Jun 2007 16:19:50 +0000 (16:19 +0000)] 
Add currency formatting.

19 years agoSplit docs on date and number formatting.
Christopher Lenz [Mon, 18 Jun 2007 15:15:31 +0000 (15:15 +0000)] 
Split docs on date and number formatting.

19 years agoMake the check for the `message_extractors` setup keyword more robst.
Christopher Lenz [Sun, 17 Jun 2007 21:02:01 +0000 (21:02 +0000)] 
Make the check for the `message_extractors` setup keyword more robst.

19 years agostup doesn't exist and this code block is never encountered, probably a remnant from
Philip Jenvey [Sat, 16 Jun 2007 22:25:11 +0000 (22:25 +0000)] 
stup doesn't exist and this code block is never encountered, probably a remnant from
a cut paste

19 years agoFix parsing of timezone in POT creation date.
Christopher Lenz [Fri, 15 Jun 2007 22:58:46 +0000 (22:58 +0000)] 
Fix parsing of timezone in POT creation date.

19 years agoAdded tests for `new_catalog` distutils command.
Christopher Lenz [Fri, 15 Jun 2007 22:18:59 +0000 (22:18 +0000)] 
Added tests for `new_catalog` distutils command.

19 years agoFollow-up to [119]: also wrap when not passed as string.
Christopher Lenz [Fri, 15 Jun 2007 20:03:24 +0000 (20:03 +0000)] 
Follow-up to [119]: also wrap when not passed as string.

19 years agoMake the Genshi extractor wrap the `ignore_attrs` and `ignore_tags` in `QName` instan...
Christopher Lenz [Fri, 15 Jun 2007 19:42:50 +0000 (19:42 +0000)] 
Make the Genshi extractor wrap the `ignore_attrs` and `ignore_tags` in `QName` instances automatically.

19 years agoMade new frontend tests more ''unit-y'', i.e. calling the APIs directly instead of...
Christopher Lenz [Fri, 15 Jun 2007 19:26:35 +0000 (19:26 +0000)] 
Made new frontend tests more ''unit-y'', i.e. calling the APIs directly instead of launching the scripts.

19 years agoMoved doc config into a subdirectory, and added a `--force` option to the `build_doc...
Christopher Lenz [Fri, 15 Jun 2007 18:27:38 +0000 (18:27 +0000)] 
Moved doc config into a subdirectory, and added a `--force` option to the `build_doc` command.

19 years agoAdded new logo.
Christopher Lenz [Fri, 15 Jun 2007 09:33:31 +0000 (09:33 +0000)] 
Added new logo.

19 years agoAdded some minor distutils frontend tests, corrected and moved mapping.cfg to the...
Pedro Algarvio [Thu, 14 Jun 2007 21:55:18 +0000 (21:55 +0000)] 
Added some minor distutils frontend tests, corrected and moved mapping.cfg to the appropriate place.

19 years agoAdding a test project to play with :)
Pedro Algarvio [Thu, 14 Jun 2007 21:17:14 +0000 (21:17 +0000)] 
Adding a test project to play with :)

19 years agocopyright_holder arg is no longer needed for write_po
Philip Jenvey [Thu, 14 Jun 2007 20:44:18 +0000 (20:44 +0000)] 
copyright_holder arg is no longer needed for write_po

19 years agounused import
Philip Jenvey [Thu, 14 Jun 2007 20:40:10 +0000 (20:40 +0000)] 
unused import

19 years agofixed old comments kwarg to auto_comments
Philip Jenvey [Thu, 14 Jun 2007 20:39:31 +0000 (20:39 +0000)] 
fixed old comments kwarg to auto_comments

19 years agotranslator comment tags aren't included in the catalog
Philip Jenvey [Thu, 14 Jun 2007 20:30:55 +0000 (20:30 +0000)] 
translator comment tags aren't included in the catalog

19 years agoFixed a bug introduced in [106].
Pedro Algarvio [Thu, 14 Jun 2007 19:13:51 +0000 (19:13 +0000)] 
Fixed a bug introduced in [106].

19 years agoMinor doc improvements.
Christopher Lenz [Thu, 14 Jun 2007 10:05:47 +0000 (10:05 +0000)] 
Minor doc improvements.

19 years agoFix for #16: the header message (`msgid = ""`) is now treated specially by `read_po...
Christopher Lenz [Thu, 14 Jun 2007 09:49:00 +0000 (09:49 +0000)] 
Fix for #16: the header message (`msgid = ""`) is now treated specially by `read_po` and `Catalog`.

19 years ago`Message`, `read_po` and `write_po` now all handle user/auto comments correctly.
Pedro Algarvio [Thu, 14 Jun 2007 06:24:28 +0000 (06:24 +0000)] 
`Message`, `read_po` and `write_po` now all handle user/auto comments correctly.
The `Generated-By` header value needed a missing `\n`.
The frontends now pass the value of `--copyright-holder` to the Catalog, and removed the `copyright_holder` arg for `write_po` left behind on [105].
Tests changed accordingly.

19 years agoMerged `write_pot` and `write_po` functions by moving more functionality to the ...
Christopher Lenz [Wed, 13 Jun 2007 23:02:24 +0000 (23:02 +0000)] 
Merged `write_pot` and `write_po` functions by moving more functionality to the `Catalog` class. This is certainly not perfect yet, but moves us in the right direction.

19 years agoImplement wrapping of header comments in PO(T) output. Related to #14.
Christopher Lenz [Wed, 13 Jun 2007 21:46:41 +0000 (21:46 +0000)] 
Implement wrapping of header comments in PO(T) output. Related to #14.

19 years agoProject name and version, and the charset are available via the `Catalog` object...
Christopher Lenz [Wed, 13 Jun 2007 20:50:34 +0000 (20:50 +0000)] 
Project name and version, and the charset are available via the `Catalog` object, and do not need to be passed to `write_pot()`.

19 years agoAdd wrapper class bundling the various formatting functions bound to a specific local...
Christopher Lenz [Wed, 13 Jun 2007 08:26:23 +0000 (08:26 +0000)] 
Add wrapper class bundling the various formatting functions bound to a specific locale and time-zone.

19 years agoo fix misnamed vars in LazyProxy
Philip Jenvey [Wed, 13 Jun 2007 08:03:48 +0000 (08:03 +0000)] 
o fix misnamed vars in LazyProxy
o fixed classmethod Translations.load referring to self for a class var

19 years agounused import
Philip Jenvey [Wed, 13 Jun 2007 07:52:20 +0000 (07:52 +0000)] 
unused import

19 years agoAdd `--without-apidocs` switch to `build_doc` command for quicker doc-edit/review...
Christopher Lenz [Wed, 13 Jun 2007 07:48:06 +0000 (07:48 +0000)] 
Add `--without-apidocs` switch to `build_doc` command for quicker doc-edit/review cycles.

19 years agoRenamed `LOCAL` to `LOCALTZ`.
Christopher Lenz [Tue, 12 Jun 2007 20:09:35 +0000 (20:09 +0000)] 
Renamed `LOCAL` to `LOCALTZ`.

19 years agoAlso use tzinfo for `write_po`.
Pedro Algarvio [Tue, 12 Jun 2007 19:57:18 +0000 (19:57 +0000)] 
Also use tzinfo for `write_po`.

19 years agoFix for #11 (use local timezone in timestamps of generated POT).
Christopher Lenz [Tue, 12 Jun 2007 18:40:39 +0000 (18:40 +0000)] 
Fix for #11 (use local timezone in timestamps of generated POT).

19 years agoUpdated `read_po` to add user comments besides just auto comments.
Pedro Algarvio [Tue, 12 Jun 2007 05:20:34 +0000 (05:20 +0000)] 
Updated `read_po` to add user comments besides just auto comments.

19 years agoCommiting patch provided by pjenvey: Translator comments don't apply unless they...
Pedro Algarvio [Mon, 11 Jun 2007 23:59:54 +0000 (23:59 +0000)] 
Commiting patch provided by pjenvey: Translator comments don't apply unless they immediately preceed the message.

19 years agoFixed bug introduced in [92], bad use of `lstrip()`. Added a unittest to test multipl...
Pedro Algarvio [Mon, 11 Jun 2007 23:29:45 +0000 (23:29 +0000)] 
Fixed bug introduced in [92], bad use of `lstrip()`. Added a unittest to test multiple translator comment tags.

19 years agoChanged translator comments extraction behaviour in python source code. Match is...
Pedro Algarvio [Mon, 11 Jun 2007 22:27:24 +0000 (22:27 +0000)] 
Changed translator comments extraction behaviour in python source code. Match is now true only if the TAG is on the start of the comment. The TAG will also be stripped from the comment. Added a unittest which tests this.

19 years agoSome doc improvements on distutils integration.
Christopher Lenz [Mon, 11 Jun 2007 20:43:15 +0000 (20:43 +0000)] 
Some doc improvements on distutils integration.

19 years agoUnittest for the problem reported by pjenvey fixed on [88].
Pedro Algarvio [Mon, 11 Jun 2007 20:22:49 +0000 (20:22 +0000)] 
Unittest for the problem reported by pjenvey fixed on [88].

19 years agoCompletely fixed the bug reported by pjenvey, partially addressed on [87].
Pedro Algarvio [Mon, 11 Jun 2007 19:43:58 +0000 (19:43 +0000)] 
Completely fixed the bug reported by pjenvey, partially addressed on [87].

19 years agoFixed a bug on Catalog. `__setitem__` was not updating the translator comments. Thank...
Pedro Algarvio [Mon, 11 Jun 2007 00:48:07 +0000 (00:48 +0000)] 
Fixed a bug on Catalog. `__setitem__` was not updating the translator comments. Thanks pjenvey!
Fixed a bug on the `new_catalog` and `init` frontends, we were badly building the new directory for the localized catalog. Normal directory hierarchy is `<output_dir>/<locale>/LC_MESSAGES/<domain>.po`, not `<output_dir>/<locale>/<domain>.po`, ie `LC_MESSAGES/<locale>/<domain>.po`.

19 years agoFixed a bug on the CLI frontend introduced on [81]. Thanks pjenvey!
Pedro Algarvio [Sun, 10 Jun 2007 22:41:50 +0000 (22:41 +0000)] 
Fixed a bug on the CLI frontend introduced on [81]. Thanks pjenvey!

19 years agoFixed de-pluralization bug introduced in [85] regarding the extraction of translator...
Pedro Algarvio [Sun, 10 Jun 2007 21:14:38 +0000 (21:14 +0000)] 
Fixed de-pluralization bug introduced in [85] regarding the extraction of translator comments.
Added a unittest which tests the extraction of translator comments that have non-translator comments right before the comment tag.

19 years agoSome cosmetic changes for the new translator comments support.
Christopher Lenz [Sun, 10 Jun 2007 18:03:46 +0000 (18:03 +0000)] 
Some cosmetic changes for the new translator comments support.

19 years agoAdd unit tests for extracting translator comments from python sources.
Christopher Lenz [Sun, 10 Jun 2007 17:37:50 +0000 (17:37 +0000)] 
Add unit tests for extracting translator comments from python sources.

19 years agoMissed some param's documentation regarding translator comments.
Pedro Algarvio [Sun, 10 Jun 2007 16:46:55 +0000 (16:46 +0000)] 
Missed some param's documentation regarding translator comments.

19 years agoFixed and added some documentation about the translator comments implemented in ...
Pedro Algarvio [Sun, 10 Jun 2007 16:32:23 +0000 (16:32 +0000)] 
Fixed and added some documentation about the translator comments implemented in [81].

19 years agoAdded support for translator comments at the API and frontends levels.(See #12, item...
Pedro Algarvio [Sun, 10 Jun 2007 14:21:01 +0000 (14:21 +0000)] 
Added support for translator comments at the API and frontends levels.(See #12, item 1). Updated docs and tests accordingly.

19 years agoImplemented item 4 from #12. Set the copyright holder in the output.
Pedro Algarvio [Sun, 10 Jun 2007 09:39:26 +0000 (09:39 +0000)] 
Implemented item 4 from #12. Set the copyright holder in the output.

19 years agoFixed the plurals header on `Catalog` which should only be written if it's not a...
Pedro Algarvio [Sun, 10 Jun 2007 08:42:21 +0000 (08:42 +0000)] 
Fixed the plurals header on `Catalog` which should only be written if it's not a catalog template.
Added support to the frontends for `--msgid-bugs-address` that set's the `Report-Msgid-Bugs-To` header, which was also a missing header on `Catalog`, so, a bug found by chance :) (See #12, item 6)

19 years agoUpdated frontend screens for added sorting features.
Christopher Lenz [Fri, 8 Jun 2007 23:27:35 +0000 (23:27 +0000)] 
Updated frontend screens for added sorting features.

19 years agoTypo on `doc/catalogs.txt`.
Pedro Algarvio [Fri, 8 Jun 2007 23:16:38 +0000 (23:16 +0000)] 
Typo on `doc/catalogs.txt`.