]>
git.ipfire.org Git - thirdparty/babel.git/log
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].
Christopher Lenz [Fri, 8 Jun 2007 11:32:27 +0000 (11:32 +0000)]
Fix typo in [58].
Christopher Lenz [Fri, 8 Jun 2007 11:28:15 +0000 (11:28 +0000)]
* The `extract_messages` distutils command now operators on configurable input directories again, instead of the complete current directory. The `input_dirs` default to the package directories.
* Add a pseudo extractor called “ignore” for #10.
Christopher Lenz [Fri, 8 Jun 2007 11:08:03 +0000 (11:08 +0000)]
Add actual data structures for handling message catalogs, so that more code can be reused here between the frontends.
Pedro Algarvio [Fri, 8 Jun 2007 10:37:47 +0000 (10:37 +0000)]
`new_catalog` now accepts another argument, `--domain`, which is used to build the output file path, which now is of the form `<output_dir>/<locale>/<domain>.po`, the correct form.
Removed the language and coutry arguments of `write_po`, which instead accepts a `babel.core.Locale` object to retrieve the needed object.
Christopher Lenz [Fri, 8 Jun 2007 09:16:32 +0000 (09:16 +0000)]
Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
Christopher Lenz [Thu, 7 Jun 2007 23:11:32 +0000 (23:11 +0000)]
Add `english_name` property to `Locale` class.
Christopher Lenz [Thu, 7 Jun 2007 22:59:25 +0000 (22:59 +0000)]
Support sub-commands in command-line interface, and renamed the generated script wrapper to `babel`. See #9.
Pedro Algarvio [Thu, 7 Jun 2007 22:48:47 +0000 (22:48 +0000)]
Fixed a bug regarding plural msgid's handling when writing the `.pot` file.
Renamed old `write_po` to `write_pot` which is what it actually does and also adds space to the new `write_po`. Changed tests accordingly.
Added support to create new localized catalogs from a catalog template, `write_po`..
Jonas Borgström [Thu, 7 Jun 2007 22:00:43 +0000 (22:00 +0000)]
Added round-half-even (banker's rounding) support.
Moved a couple of unit-tests from docstrings to a separate file.
Christopher Lenz [Thu, 7 Jun 2007 00:15:27 +0000 (00:15 +0000)]
Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
Christopher Lenz [Wed, 6 Jun 2007 23:17:18 +0000 (23:17 +0000)]
Move the mapping configuration file format to `ConfigParser`, and add some more documentation about it.
Christopher Lenz [Wed, 6 Jun 2007 21:03:24 +0000 (21:03 +0000)]
Support passing extraction method mapping and options from the frontends (see #4). No distutils/setuptools keyword supported yet, but the rest seems to be working okay.
Christopher Lenz [Wed, 6 Jun 2007 20:54:11 +0000 (20:54 +0000)]
Minor docstring fixes.
Christopher Lenz [Wed, 6 Jun 2007 20:52:32 +0000 (20:52 +0000)]
Fix copy&paste error in documentation stylesheet.
Christopher Lenz [Wed, 6 Jun 2007 17:40:35 +0000 (17:40 +0000)]
Some work towards #4.
Christopher Lenz [Wed, 6 Jun 2007 12:18:55 +0000 (12:18 +0000)]
Add setup config to get the SVN revision in the version number.
Christopher Lenz [Wed, 6 Jun 2007 12:14:01 +0000 (12:14 +0000)]
Add new function to module exports.
Christopher Lenz [Wed, 6 Jun 2007 12:12:44 +0000 (12:12 +0000)]
Load locale data lazily to avoid penalizing usage of `Locale` objects when no locale data is actually needed.
Christopher Lenz [Wed, 6 Jun 2007 11:02:48 +0000 (11:02 +0000)]
Syntax highlighting for the docs.
Christopher Lenz [Wed, 6 Jun 2007 11:02:24 +0000 (11:02 +0000)]
Move function for determining the system default locale to `babel.core`, and make it available as a class method on `Locale`.
Christopher Lenz [Tue, 5 Jun 2007 22:59:24 +0000 (22:59 +0000)]
Started implementation of datetime parsing, using a very basic approach for now.
Christopher Lenz [Tue, 5 Jun 2007 10:38:11 +0000 (10:38 +0000)]
Add optional pytz dependency to `INSTALL.txt`.
Christopher Lenz [Mon, 4 Jun 2007 21:30:52 +0000 (21:30 +0000)]
Fix for #8: fix extraction of strings from Python source using prefixes ('u' or 'r') or triple quotes.
Christopher Lenz [Mon, 4 Jun 2007 16:14:03 +0000 (16:14 +0000)]
Add note on daylight savings time.
Christopher Lenz [Mon, 4 Jun 2007 16:03:12 +0000 (16:03 +0000)]
Extended time-zone support.