]>
git.ipfire.org Git - thirdparty/babel.git/log
Christopher Lenz [Wed, 15 Aug 2007 12:35:45 +0000 (12:35 +0000)]
Fix for `get_timezone_name` when falling back to GMT display.
Christopher Lenz [Tue, 14 Aug 2007 17:06:00 +0000 (17:06 +0000)]
Fix typo on distutils/setuptools doc page.
Philip Jenvey [Tue, 14 Aug 2007 07:20:33 +0000 (07:20 +0000)]
don't init new catalogs as fuzzy
Christopher Lenz [Mon, 13 Aug 2007 22:29:03 +0000 (22:29 +0000)]
Soften dependency on setuptools. Extraction methods can now be referenced using a special section in the mapping configuration, mapping short names to fully-qualified function references.
Philip Jenvey [Mon, 13 Aug 2007 04:16:16 +0000 (04:16 +0000)]
added test cases for correct po/mofile sorting, following up r264
Philip Jenvey [Mon, 13 Aug 2007 00:59:09 +0000 (00:59 +0000)]
add a __cmp__ to Message that correctly sorts by id, taking into account plurals
thanks zepolen
Christopher Lenz [Sun, 12 Aug 2007 19:19:43 +0000 (19:19 +0000)]
`get_timezone_gmt()` wasn't getting the locale passed in all cases, which led to test errors when the default locale wasn't configured via environment variables.
Jonas Borgström [Sun, 12 Aug 2007 17:21:39 +0000 (17:21 +0000)]
Updated TODO-items in number.py.
Christopher Lenz [Sat, 11 Aug 2007 22:54:40 +0000 (22:54 +0000)]
Revert accidential change of file header in [260].
Jonas Borgström [Sat, 11 Aug 2007 13:09:02 +0000 (13:09 +0000)]
Added `Decimal` support to the scientific notation formatter and some code cleanup. This closes #52.
Jonas Borgström [Sat, 11 Aug 2007 11:31:05 +0000 (11:31 +0000)]
Added initial support for scientific notation patterns.
Christopher Lenz [Tue, 7 Aug 2007 21:41:35 +0000 (21:41 +0000)]
Finish implementation of day-of-year and day-of-month for now, and fix implementation of year-of-week-of-year field. Closes #46. I suspect there are still cases not entirely covered by this implementation, but those can be filed as separate tickets.
Christopher Lenz [Tue, 7 Aug 2007 20:08:42 +0000 (20:08 +0000)]
Implement day-of-week-in-month field in date formatting. Closes #50.
Christopher Lenz [Tue, 7 Aug 2007 20:01:35 +0000 (20:01 +0000)]
More work on #46 (week-of-year/week-of-month).
Christopher Lenz [Tue, 7 Aug 2007 17:17:28 +0000 (17:17 +0000)]
Again, properly implement week-in-year (#46).
Christopher Lenz [Tue, 7 Aug 2007 17:16:10 +0000 (17:16 +0000)]
Back out [251] which contained an accidential commit.
Christopher Lenz [Tue, 7 Aug 2007 17:13:45 +0000 (17:13 +0000)]
Properly implement week-in-year (#46).
Christopher Lenz [Tue, 7 Aug 2007 13:07:37 +0000 (13:07 +0000)]
Documentation stuff moved to a shared repository.
Christopher Lenz [Fri, 3 Aug 2007 09:00:28 +0000 (09:00 +0000)]
Clear executable bit on logos.
Christopher Lenz [Wed, 1 Aug 2007 14:15:35 +0000 (14:15 +0000)]
Add more `since` tags to stuff added in trunk.
Christopher Lenz [Wed, 1 Aug 2007 12:32:20 +0000 (12:32 +0000)]
Upgraded to CLDR 1.5 and improved timezone formatting.
Christopher Lenz [Mon, 30 Jul 2007 20:28:43 +0000 (20:28 +0000)]
Use logging module for output from CLI frontend.
Christopher Lenz [Sun, 29 Jul 2007 20:04:17 +0000 (20:04 +0000)]
Use proper logging in distutils `compile_catalog` command.
Christopher Lenz [Tue, 24 Jul 2007 21:25:19 +0000 (21:25 +0000)]
Forgot to update test method name after copy/paste.
Christopher Lenz [Tue, 24 Jul 2007 21:16:57 +0000 (21:16 +0000)]
Remove duplicate locations of catalog messages.
Christopher Lenz [Fri, 20 Jul 2007 16:47:08 +0000 (16:47 +0000)]
Follow-up to [239]: also combine duplicate comments when writing PO files.
Christopher Lenz [Fri, 20 Jul 2007 16:20:43 +0000 (16:20 +0000)]
Fix tests broken by [233], and add new tests.
Pedro Algarvio [Fri, 20 Jul 2007 14:22:50 +0000 (14:22 +0000)]
Only write unique comments, no duplicates.
Christopher Lenz [Fri, 20 Jul 2007 12:52:40 +0000 (12:52 +0000)]
Applied patch by Ramiro Morales for more extensive detection of Python string formatting specifiers. Closes #57.
Pedro Algarvio [Fri, 20 Jul 2007 12:43:20 +0000 (12:43 +0000)]
Fix for message extractors which return `None` as the gettext call.
Philip Jenvey [Wed, 18 Jul 2007 20:49:12 +0000 (20:49 +0000)]
fix skipping of class definitions without parens
fixes #55
Philip Jenvey [Wed, 18 Jul 2007 00:29:04 +0000 (00:29 +0000)]
o extract_python fixes:
- now returns None for non-string arguments
- no longer extracts strings from nested function calls
refs #38
- use the correct starting line number in multi-line gettext function
calls
- avoids falsely identifying string keyword arg defaults from
function definition names that match a keyword, e.g.:
def gettext(foo='bar')
- avoid capturing translator comments embedded within a gettext
function call
- default the file encoding to iso-8859-1 instead of ascii when
missing a magic encoding comment, to emulate pre Python 2.5
behavior. Python warns about 'non-ascii' chars when there is no magic
encoding comment, but < 2.5 actually treats them as iso-8859-1 for
backwards compat (PEP 263). >= 2.5 treats them as strict ascii
o extract fixes:
- filter out messages that don't contain strings where the keyword
specification calls for
fixes #39
- filter out empty string messages and emit a warning about them,
like xgettext
Christopher Lenz [Mon, 16 Jul 2007 20:51:49 +0000 (20:51 +0000)]
Implement day-of-year date format field. Closes #49.
Christopher Lenz [Mon, 16 Jul 2007 16:57:49 +0000 (16:57 +0000)]
Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
Christopher Lenz [Mon, 16 Jul 2007 16:55:08 +0000 (16:55 +0000)]
Updated ChangeLog.
Jonas Borgström [Mon, 16 Jul 2007 15:35:34 +0000 (15:35 +0000)]
Added Decimal support to the number formatter.
Christopher Lenz [Mon, 16 Jul 2007 06:30:01 +0000 (06:30 +0000)]
Implement milliseconds in day (#48).
Christopher Lenz [Sun, 15 Jul 2007 22:09:02 +0000 (22:09 +0000)]
Support for fractional seconds field in date formatting. Closes #47.
Christopher Lenz [Fri, 13 Jul 2007 22:22:03 +0000 (22:22 +0000)]
Dummy/stub implementation for week-in-year and week-in-month date format fields. Also, treat extended year the same as the regular year field, not even ICU seems to handle it specially.
Christopher Lenz [Fri, 13 Jul 2007 16:33:28 +0000 (16:33 +0000)]
More robust handling of argument indices in message extraction.
Christopher Lenz [Fri, 13 Jul 2007 15:59:42 +0000 (15:59 +0000)]
Added ChangeLog entries for [216:217].
Jonas Borgström [Tue, 10 Jul 2007 21:20:07 +0000 (21:20 +0000)]
Switched to using our own round() implementation.
This way we can be sure the correct rounding algorithm (banker's rounding)
is used on all platforms.
Jonas Borgström [Tue, 10 Jul 2007 20:14:05 +0000 (20:14 +0000)]
Added support for siginificant digits in number patterns.
Christopher Lenz [Thu, 5 Jul 2007 17:25:13 +0000 (17:25 +0000)]
When parsing catalog headers, look for the content-type first, to be able to use a specified encoding on all other headers.
Christopher Lenz [Thu, 5 Jul 2007 08:02:26 +0000 (08:02 +0000)]
Include percentage in statistics output.
Pedro Algarvio [Wed, 4 Jul 2007 16:09:05 +0000 (16:09 +0000)]
Make frontends that make use of a ''loop all'' fail if no message catalogs are found.
Pedro Algarvio [Wed, 4 Jul 2007 15:24:32 +0000 (15:24 +0000)]
Implement translations statistics, closes #18.
Christopher Lenz [Wed, 4 Jul 2007 12:25:28 +0000 (12:25 +0000)]
Preserve language-team header in catalogs on update. Closes #35 again.
Christopher Lenz [Wed, 4 Jul 2007 06:54:07 +0000 (06:54 +0000)]
Fix another bug introduced in [208].
Christopher Lenz [Wed, 4 Jul 2007 06:52:03 +0000 (06:52 +0000)]
Fix for bug introduced in [208]. Closes #37.
Christopher Lenz [Tue, 3 Jul 2007 21:19:27 +0000 (21:19 +0000)]
Minor changes to how previous msgids are processed.
Pedro Algarvio [Tue, 3 Jul 2007 19:20:28 +0000 (19:20 +0000)]
Doctest for changes on [205].
Pedro Algarvio [Tue, 3 Jul 2007 18:00:42 +0000 (18:00 +0000)]
Minor typo correction.
Pedro Algarvio [Tue, 3 Jul 2007 17:55:34 +0000 (17:55 +0000)]
Added `--no-fuzzy-matching` to the frontends and also `--previous` which adds the old msgid's as comments. The latest closes #31.
Christopher Lenz [Tue, 3 Jul 2007 16:29:22 +0000 (16:29 +0000)]
Handle obsolete messages when parsing catalogs. Closes #32.
Christopher Lenz [Tue, 3 Jul 2007 16:01:41 +0000 (16:01 +0000)]
Correctly handle non-ASCII chars in the catalog MIME headers.
Christopher Lenz [Tue, 3 Jul 2007 13:12:36 +0000 (13:12 +0000)]
Fix for #36: avoid corrupting the catalog on update when there's an error in the writing process.
Christopher Lenz [Tue, 3 Jul 2007 12:52:44 +0000 (12:52 +0000)]
Fix for #35, and a minor improvement to how we parse the catalog fuzzy bit.
Christopher Lenz [Mon, 2 Jul 2007 09:23:16 +0000 (09:23 +0000)]
Move change for #34 to 0.8.1 release in ChangeLog.
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.
Christopher Lenz [Sun, 1 Jul 2007 17:45:27 +0000 (17:45 +0000)]
Correctly write out obsolete messages spanning multiple lines. Fixes #33.
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.
Christopher Lenz [Fri, 29 Jun 2007 13:47:10 +0000 (13:47 +0000)]
Fix adding new messages in catalog update.
Christopher Lenz [Fri, 29 Jun 2007 08:23:10 +0000 (08:23 +0000)]
Add renaming of `init_catalog` to ChangeLog.
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.
Christopher Lenz [Thu, 28 Jun 2007 11:50:30 +0000 (11:50 +0000)]
ChangeLog entry for [185].
Christopher Lenz [Thu, 28 Jun 2007 11:43:26 +0000 (11:43 +0000)]
More robust locale string parsing, with support for scripts. Closes #27.
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.
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
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.
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.
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.
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.
Pedro Algarvio [Tue, 26 Jun 2007 09:13:08 +0000 (09:13 +0000)]
Extended the doctest to include tests for the fix on [176].
Pedro Algarvio [Tue, 26 Jun 2007 08:41:29 +0000 (08:41 +0000)]
Forgot to fix the pluralizable messages, regarding #28.
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.