]>
git.ipfire.org Git - thirdparty/babel.git/log
Pedro Algarvio [Mon, 25 Jun 2007 11:37:01 +0000 (11:37 +0000)]
Fix for #28 with updated doctest.
Philip Jenvey [Sun, 24 Jun 2007 00:28:25 +0000 (00:28 +0000)]
pot_file is a typo here
Pedro Algarvio [Fri, 22 Jun 2007 17:56:02 +0000 (17:56 +0000)]
Allow the compile catalog frontends to compile all available locales.
Pedro Algarvio [Fri, 22 Jun 2007 16:58:39 +0000 (16:58 +0000)]
Typo fix.
Christopher Lenz [Fri, 22 Jun 2007 10:35:24 +0000 (10:35 +0000)]
Added note on [167] to ChangeLog.
Christopher Lenz [Fri, 22 Jun 2007 08:39:04 +0000 (08:39 +0000)]
Implement fuzzy matching to catalog updates. No frontend yet.
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
Christopher Lenz [Fri, 22 Jun 2007 00:33:22 +0000 (00:33 +0000)]
Added preliminary catalog updating/merging functionality.
Philip Jenvey [Thu, 21 Jun 2007 21:28:51 +0000 (21:28 +0000)]
alphabetize imports
Christopher Lenz [Thu, 21 Jun 2007 16:12:38 +0000 (16:12 +0000)]
Slightly simplified CLI-frontend class.
Christopher Lenz [Thu, 21 Jun 2007 14:38:30 +0000 (14:38 +0000)]
Add MO file generation. Closes #21.
Christopher Lenz [Thu, 21 Jun 2007 12:10:59 +0000 (12:10 +0000)]
Minor cleanup in the `pofile` module.
Christopher Lenz [Thu, 21 Jun 2007 11:38:42 +0000 (11:38 +0000)]
Minor improvements to locale negotation.
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.
Christopher Lenz [Wed, 20 Jun 2007 21:18:44 +0000 (21:18 +0000)]
Updated change log with recent fixes.
Christopher Lenz [Wed, 20 Jun 2007 20:31:24 +0000 (20:31 +0000)]
Respect charset specified in PO headers in `read_po()`. Fixes #17.
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.
Philip Jenvey [Wed, 20 Jun 2007 19:54:33 +0000 (19:54 +0000)]
simplify
Christopher Lenz [Wed, 20 Jun 2007 15:04:48 +0000 (15:04 +0000)]
Some doc fixes.
Christopher Lenz [Wed, 20 Jun 2007 10:50:51 +0000 (10:50 +0000)]
Bump up version number on trunk.
Christopher Lenz [Wed, 20 Jun 2007 10:07:37 +0000 (10:07 +0000)]
Initialized change log.
Christopher Lenz [Wed, 20 Jun 2007 10:02:04 +0000 (10:02 +0000)]
Genshi extraction method has moved to Genshi project. Closes #13.
Jonas Borgström [Tue, 19 Jun 2007 19:44:02 +0000 (19:44 +0000)]
Some code cleanup.
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.
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.
Christopher Lenz [Mon, 18 Jun 2007 19:49:12 +0000 (19:49 +0000)]
Minor doc fixes.
Christopher Lenz [Mon, 18 Jun 2007 18:26:19 +0000 (18:26 +0000)]
Set explicit local timezone for CLI `init` command.
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.
Christopher Lenz [Mon, 18 Jun 2007 17:55:31 +0000 (17:55 +0000)]
Make `relpath` doctest Windows-compatible.
Christopher Lenz [Mon, 18 Jun 2007 17:31:59 +0000 (17:31 +0000)]
Implement wall-time time-zone display.
Christopher Lenz [Mon, 18 Jun 2007 17:13:09 +0000 (17:13 +0000)]
Fake `sys.argv` for CLI tests.
Christopher Lenz [Mon, 18 Jun 2007 17:05:00 +0000 (17:05 +0000)]
Add a couple of CLI tests.
Christopher Lenz [Mon, 18 Jun 2007 16:33:54 +0000 (16:33 +0000)]
Add test for permille number format.
Christopher Lenz [Mon, 18 Jun 2007 16:19:50 +0000 (16:19 +0000)]
Add currency formatting.
Christopher Lenz [Mon, 18 Jun 2007 15:15:31 +0000 (15:15 +0000)]
Split docs on date and number formatting.
Christopher Lenz [Sun, 17 Jun 2007 21:02:01 +0000 (21:02 +0000)]
Make the check for the `message_extractors` setup keyword more robst.
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
Christopher Lenz [Fri, 15 Jun 2007 22:58:46 +0000 (22:58 +0000)]
Fix parsing of timezone in POT creation date.
Christopher Lenz [Fri, 15 Jun 2007 22:18:59 +0000 (22:18 +0000)]
Added tests for `new_catalog` distutils command.
Christopher Lenz [Fri, 15 Jun 2007 20:03:24 +0000 (20:03 +0000)]
Follow-up to [119]: also wrap when not passed as string.
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.
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.
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.
Christopher Lenz [Fri, 15 Jun 2007 09:33:31 +0000 (09:33 +0000)]
Added new logo.
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.
Pedro Algarvio [Thu, 14 Jun 2007 21:17:14 +0000 (21:17 +0000)]
Adding a test project to play with :)
Philip Jenvey [Thu, 14 Jun 2007 20:44:18 +0000 (20:44 +0000)]
copyright_holder arg is no longer needed for write_po
Philip Jenvey [Thu, 14 Jun 2007 20:40:10 +0000 (20:40 +0000)]
unused import
Philip Jenvey [Thu, 14 Jun 2007 20:39:31 +0000 (20:39 +0000)]
fixed old comments kwarg to auto_comments
Philip Jenvey [Thu, 14 Jun 2007 20:30:55 +0000 (20:30 +0000)]
translator comment tags aren't included in the catalog
Pedro Algarvio [Thu, 14 Jun 2007 19:13:51 +0000 (19:13 +0000)]
Fixed a bug introduced in [106].
Christopher Lenz [Thu, 14 Jun 2007 10:05:47 +0000 (10:05 +0000)]
Minor doc improvements.
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`.
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.
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.
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.
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()`.
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.
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
Philip Jenvey [Wed, 13 Jun 2007 07:52:20 +0000 (07:52 +0000)]
unused import
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.
Christopher Lenz [Tue, 12 Jun 2007 20:09:35 +0000 (20:09 +0000)]
Renamed `LOCAL` to `LOCALTZ`.
Pedro Algarvio [Tue, 12 Jun 2007 19:57:18 +0000 (19:57 +0000)]
Also use tzinfo for `write_po`.
Christopher Lenz [Tue, 12 Jun 2007 18:40:39 +0000 (18:40 +0000)]
Fix for #11 (use local timezone in timestamps of generated POT).
Pedro Algarvio [Tue, 12 Jun 2007 05:20:34 +0000 (05:20 +0000)]
Updated `read_po` to add user comments besides just auto comments.
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.
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.
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.
Christopher Lenz [Mon, 11 Jun 2007 20:43:15 +0000 (20:43 +0000)]
Some doc improvements on distutils integration.
Pedro Algarvio [Mon, 11 Jun 2007 20:22:49 +0000 (20:22 +0000)]
Unittest for the problem reported by pjenvey fixed on [88].
Pedro Algarvio [Mon, 11 Jun 2007 19:43:58 +0000 (19:43 +0000)]
Completely fixed the bug reported by pjenvey, partially addressed on [87].
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`.
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!
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.
Christopher Lenz [Sun, 10 Jun 2007 18:03:46 +0000 (18:03 +0000)]
Some cosmetic changes for the new translator comments support.
Christopher Lenz [Sun, 10 Jun 2007 17:37:50 +0000 (17:37 +0000)]
Add unit tests for extracting translator comments from python sources.
Pedro Algarvio [Sun, 10 Jun 2007 16:46:55 +0000 (16:46 +0000)]
Missed some param's documentation regarding translator comments.
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].
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.
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.
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)
Christopher Lenz [Fri, 8 Jun 2007 23:27:35 +0000 (23:27 +0000)]
Updated frontend screens for added sorting features.
Pedro Algarvio [Fri, 8 Jun 2007 23:16:38 +0000 (23:16 +0000)]
Typo on `doc/catalogs.txt`.
Christopher Lenz [Fri, 8 Jun 2007 21:54:56 +0000 (21:54 +0000)]
Fixed MIME type of new doc page.
Christopher Lenz [Fri, 8 Jun 2007 21:40:59 +0000 (21:40 +0000)]
Extended the docs a bit.
Christopher Lenz [Fri, 8 Jun 2007 21:40:44 +0000 (21:40 +0000)]
Extended the docs a bit.
Christopher Lenz [Fri, 8 Jun 2007 19:10:51 +0000 (19:10 +0000)]
More explicit module-level function names in `babel.core`. Added `Locale.negotiate` class method.
Pedro Algarvio [Fri, 8 Jun 2007 17:30:12 +0000 (17:30 +0000)]
Implemented message sorting, see #7.
Christopher Lenz [Fri, 8 Jun 2007 16:22:10 +0000 (16:22 +0000)]
Fix for mixed singular/plural messages, follow-up to [70].
Christopher Lenz [Fri, 8 Jun 2007 16:16:08 +0000 (16:16 +0000)]
Message catalogs can have multiple messages with the same ID, where some of them have plural strings, and others don't. Still the same message.
Christopher Lenz [Fri, 8 Jun 2007 15:47:00 +0000 (15:47 +0000)]
Add back POT header broken in previous check-in.
Christopher Lenz [Fri, 8 Jun 2007 15:32:06 +0000 (15:32 +0000)]
Enhance catalog to also manage the MIME headers.
Pedro Algarvio [Fri, 8 Jun 2007 14:29:49 +0000 (14:29 +0000)]
Implemented the `init` subcommand, aka, `new_catalog` for the distutils/setuptools implmentation.
Christopher Lenz [Fri, 8 Jun 2007 13:22:37 +0000 (13:22 +0000)]
Add Babel soruce path to CLDR import script automatically for asmodai ;-).
Christopher Lenz [Fri, 8 Jun 2007 13:15:32 +0000 (13:15 +0000)]
`read_po` now returns a `Catalog`.
Pedro Algarvio [Fri, 8 Jun 2007 12:53:57 +0000 (12:53 +0000)]
Added the available commands list to the `--help` output of Babel's binary.
Christopher Lenz [Fri, 8 Jun 2007 12:41:00 +0000 (12:41 +0000)]
The order of extraction methods is now preserved (see #10).
Christopher Lenz [Fri, 8 Jun 2007 11:54:01 +0000 (11:54 +0000)]
Move `Translations` and `LazyProxy` to new `babel.support` module, which should contain any convenience code that is useful for applications using Babel/I18n, but not used by Babel itself.
''(Note that [61] was an accidential check in of part of this change)''
Christopher Lenz [Fri, 8 Jun 2007 11:44:28 +0000 (11:44 +0000)]
Fix typo in [58].
Pedro Algarvio [Fri, 8 Jun 2007 11:35:06 +0000 (11:35 +0000)]
Fix 2nd typo of [58].