]>
git.ipfire.org Git - thirdparty/babel.git/log
Jeroen Ruigrok van der Werven [Thu, 6 Dec 2007 10:10:28 +0000 (10:10 +0000)]
Add a plurals definition for Thai.
Philip Jenvey [Fri, 28 Sep 2007 23:47:35 +0000 (23:47 +0000)]
mention the ticket, #66, in the last changelog
Philip Jenvey [Fri, 28 Sep 2007 05:18:27 +0000 (05:18 +0000)]
woops, misplaced changelog
Philip Jenvey [Fri, 28 Sep 2007 05:16:25 +0000 (05:16 +0000)]
fix catalogs' charset values not being recognized
thanks Jose Galvez
Philip Jenvey [Fri, 28 Sep 2007 04:44:55 +0000 (04:44 +0000)]
we must mean options.locale here
Christopher Lenz [Sun, 9 Sep 2007 17:07:45 +0000 (17:07 +0000)]
Fix error in `compile_catalog` distutils command. Closes #65.
Christopher Lenz [Fri, 7 Sep 2007 10:12:35 +0000 (10:12 +0000)]
Updated ChangeLog for [milestone:0.9.1].
Christopher Lenz [Wed, 5 Sep 2007 17:13:22 +0000 (17:13 +0000)]
Fix `__repr__` of `Translations` class. Closes #63.
Christopher Lenz [Wed, 5 Sep 2007 16:40:17 +0000 (16:40 +0000)]
In `Locale.parse()`, only parse the argument if it's a string, otherwise just return the argument. This assumes that a non-string argument is either a `Locale` instance, or a proxy object pretending to be one. That may not be a safe assumption, but at least it allows you to use proxy objects such as Paste's `StackedObjectProxy` for locales.
Christopher Lenz [Wed, 5 Sep 2007 16:32:51 +0000 (16:32 +0000)]
Write PO files in binary mode. Closes #61.
Christopher Lenz [Tue, 4 Sep 2007 15:09:54 +0000 (15:09 +0000)]
Fix for updating catalog messages that changed from gettext to ngettext or vice versa.
Jonas Borgström [Sun, 26 Aug 2007 13:43:06 +0000 (13:43 +0000)]
Fixed a bug introduced by [301].
Jonas Borgström [Sun, 26 Aug 2007 13:38:58 +0000 (13:38 +0000)]
Fixed formatting bug with 12-hour clock patterns.
Christopher Lenz [Wed, 22 Aug 2007 15:16:45 +0000 (15:16 +0000)]
Fix typo in docstring.
Christopher Lenz [Wed, 22 Aug 2007 11:32:09 +0000 (11:32 +0000)]
Fix typo in documentation of the default extraction methods. Thanks to Ramiro Morales for pointing out the mistake.
Christopher Lenz [Wed, 22 Aug 2007 09:33:47 +0000 (09:33 +0000)]
Default the encoding of output by the `pybabel --list-locales` command to ASCII with errors replaced, if the output stream has no encoding set. For a reason unknown to me I got an encoding error, but only when when running the output through a pipe on the shell.
Christopher Lenz [Mon, 20 Aug 2007 09:43:26 +0000 (09:43 +0000)]
Bump up version number on trunk.
Christopher Lenz [Mon, 20 Aug 2007 09:04:35 +0000 (09:04 +0000)]
Updated ChangeLog for [milestone:0.9].
Christopher Lenz [Mon, 20 Aug 2007 08:33:44 +0000 (08:33 +0000)]
Fix minor glitch in docstring.
Christopher Lenz [Mon, 20 Aug 2007 08:28:30 +0000 (08:28 +0000)]
Apply patch for #26 to implement locale aliases.
Philip Jenvey [Fri, 17 Aug 2007 05:02:44 +0000 (05:02 +0000)]
skip messages that have less arguments than the keyword spec calls for
avoids potential IndexErrors during extraction
Philip Jenvey [Wed, 15 Aug 2007 18:36:19 +0000 (18:36 +0000)]
add extractor tests for some odder method signatures and concatenated strings
Christopher Lenz [Wed, 15 Aug 2007 13:13:24 +0000 (13:13 +0000)]
Fix typo in [271] that slipped into the check-in.
Christopher Lenz [Wed, 15 Aug 2007 13:12:25 +0000 (13:12 +0000)]
Added examples for using `get_timezone_name` to documentation.
Christopher Lenz [Wed, 15 Aug 2007 12:41:40 +0000 (12:41 +0000)]
Fail more gracefully when formatting the timezone for an unknown/invalid territory.
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.