]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
18 years agoFix for `get_timezone_name` when falling back to GMT display.
Christopher Lenz [Wed, 15 Aug 2007 12:35:45 +0000 (12:35 +0000)] 
Fix for `get_timezone_name` when falling back to GMT display.

18 years agoFix typo on distutils/setuptools doc page.
Christopher Lenz [Tue, 14 Aug 2007 17:06:00 +0000 (17:06 +0000)] 
Fix typo on distutils/setuptools doc page.

18 years agodon't init new catalogs as fuzzy
Philip Jenvey [Tue, 14 Aug 2007 07:20:33 +0000 (07:20 +0000)] 
don't init new catalogs as fuzzy

18 years agoSoften dependency on setuptools. Extraction methods can now be referenced using a...
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.

18 years agoadded test cases for correct po/mofile sorting, following up r264
Philip Jenvey [Mon, 13 Aug 2007 04:16:16 +0000 (04:16 +0000)] 
added test cases for correct po/mofile sorting, following up r264

18 years agoadd a __cmp__ to Message that correctly sorts by id, taking into account plurals
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

18 years ago`get_timezone_gmt()` wasn't getting the locale passed in all cases, which led to...
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.

18 years agoUpdated TODO-items in number.py.
Jonas Borgström [Sun, 12 Aug 2007 17:21:39 +0000 (17:21 +0000)] 
Updated TODO-items in number.py.

18 years agoRevert accidential change of file header in [260].
Christopher Lenz [Sat, 11 Aug 2007 22:54:40 +0000 (22:54 +0000)] 
Revert accidential change of file header in [260].

18 years agoAdded `Decimal` support to the scientific notation formatter and some code cleanup...
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.

18 years agoAdded initial support for scientific notation patterns.
Jonas Borgström [Sat, 11 Aug 2007 11:31:05 +0000 (11:31 +0000)] 
Added initial support for scientific notation patterns.

18 years agoFinish implementation of day-of-year and day-of-month for now, and fix implementation...
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.

18 years agoImplement day-of-week-in-month field in date formatting. Closes #50.
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.

18 years agoMore work on #46 (week-of-year/week-of-month).
Christopher Lenz [Tue, 7 Aug 2007 20:01:35 +0000 (20:01 +0000)] 
More work on #46 (week-of-year/week-of-month).

18 years agoAgain, properly implement week-in-year (#46).
Christopher Lenz [Tue, 7 Aug 2007 17:17:28 +0000 (17:17 +0000)] 
Again, properly implement week-in-year (#46).

18 years agoBack out [251] which contained an accidential commit.
Christopher Lenz [Tue, 7 Aug 2007 17:16:10 +0000 (17:16 +0000)] 
Back out [251] which contained an accidential commit.

18 years agoProperly implement week-in-year (#46).
Christopher Lenz [Tue, 7 Aug 2007 17:13:45 +0000 (17:13 +0000)] 
Properly implement week-in-year (#46).

18 years agoDocumentation stuff moved to a shared repository.
Christopher Lenz [Tue, 7 Aug 2007 13:07:37 +0000 (13:07 +0000)] 
Documentation stuff moved to a shared repository.

18 years agoClear executable bit on logos.
Christopher Lenz [Fri, 3 Aug 2007 09:00:28 +0000 (09:00 +0000)] 
Clear executable bit on logos.

18 years agoAdd more `since` tags to stuff added in trunk.
Christopher Lenz [Wed, 1 Aug 2007 14:15:35 +0000 (14:15 +0000)] 
Add more `since` tags to stuff added in trunk.

18 years agoUpgraded to CLDR 1.5 and improved timezone formatting.
Christopher Lenz [Wed, 1 Aug 2007 12:32:20 +0000 (12:32 +0000)] 
Upgraded to CLDR 1.5 and improved timezone formatting.

18 years agoUse logging module for output from CLI frontend.
Christopher Lenz [Mon, 30 Jul 2007 20:28:43 +0000 (20:28 +0000)] 
Use logging module for output from CLI frontend.

18 years agoUse proper logging in distutils `compile_catalog` command.
Christopher Lenz [Sun, 29 Jul 2007 20:04:17 +0000 (20:04 +0000)] 
Use proper logging in distutils `compile_catalog` command.

18 years agoForgot to update test method name after copy/paste.
Christopher Lenz [Tue, 24 Jul 2007 21:25:19 +0000 (21:25 +0000)] 
Forgot to update test method name after copy/paste.

18 years agoRemove duplicate locations of catalog messages.
Christopher Lenz [Tue, 24 Jul 2007 21:16:57 +0000 (21:16 +0000)] 
Remove duplicate locations of catalog messages.

18 years agoFollow-up to [239]: also combine duplicate comments when writing PO files.
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.

18 years agoFix tests broken by [233], and add new tests.
Christopher Lenz [Fri, 20 Jul 2007 16:20:43 +0000 (16:20 +0000)] 
Fix tests broken by [233], and add new tests.

18 years agoOnly write unique comments, no duplicates.
Pedro Algarvio [Fri, 20 Jul 2007 14:22:50 +0000 (14:22 +0000)] 
Only write unique comments, no duplicates.

18 years agoApplied patch by Ramiro Morales for more extensive detection of Python string formatt...
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.

18 years agoFix for message extractors which return `None` as the gettext call.
Pedro Algarvio [Fri, 20 Jul 2007 12:43:20 +0000 (12:43 +0000)] 
Fix for message extractors which return `None` as the gettext call.

18 years agofix skipping of class definitions without parens
Philip Jenvey [Wed, 18 Jul 2007 20:49:12 +0000 (20:49 +0000)] 
fix skipping of class definitions without parens
fixes #55

18 years agoo extract_python fixes:
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

18 years agoImplement day-of-year date format field. Closes #49.
Christopher Lenz [Mon, 16 Jul 2007 20:51:49 +0000 (20:51 +0000)] 
Implement day-of-year date format field. Closes #49.

18 years agoAdded infrastructure for adding catalog checkers, and implement a checker that valida...
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.

18 years agoUpdated ChangeLog.
Christopher Lenz [Mon, 16 Jul 2007 16:55:08 +0000 (16:55 +0000)] 
Updated ChangeLog.

18 years agoAdded Decimal support to the number formatter.
Jonas Borgström [Mon, 16 Jul 2007 15:35:34 +0000 (15:35 +0000)] 
Added Decimal support to the number formatter.

18 years agoImplement milliseconds in day (#48).
Christopher Lenz [Mon, 16 Jul 2007 06:30:01 +0000 (06:30 +0000)] 
Implement milliseconds in day (#48).

18 years agoSupport for fractional seconds field in date formatting. Closes #47.
Christopher Lenz [Sun, 15 Jul 2007 22:09:02 +0000 (22:09 +0000)] 
Support for fractional seconds field in date formatting. Closes #47.

18 years agoDummy/stub implementation for week-in-year and week-in-month date format fields....
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.

18 years agoMore robust handling of argument indices in message extraction.
Christopher Lenz [Fri, 13 Jul 2007 16:33:28 +0000 (16:33 +0000)] 
More robust handling of argument indices in message extraction.

18 years agoAdded ChangeLog entries for [216:217].
Christopher Lenz [Fri, 13 Jul 2007 15:59:42 +0000 (15:59 +0000)] 
Added ChangeLog entries for [216:217].

18 years agoSwitched to using our own round() implementation.
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.

18 years agoAdded support for siginificant digits in number patterns.
Jonas Borgström [Tue, 10 Jul 2007 20:14:05 +0000 (20:14 +0000)] 
Added support for siginificant digits in number patterns.

18 years agoWhen parsing catalog headers, look for the content-type first, to be able to use...
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.

18 years agoInclude percentage in statistics output.
Christopher Lenz [Thu, 5 Jul 2007 08:02:26 +0000 (08:02 +0000)] 
Include percentage in statistics output.

18 years agoMake frontends that make use of a ''loop all'' fail if no message catalogs are found.
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.

18 years agoImplement translations statistics, closes #18.
Pedro Algarvio [Wed, 4 Jul 2007 15:24:32 +0000 (15:24 +0000)] 
Implement translations statistics, closes #18.

18 years agoPreserve language-team header in catalogs on update. Closes #35 again.
Christopher Lenz [Wed, 4 Jul 2007 12:25:28 +0000 (12:25 +0000)] 
Preserve language-team header in catalogs on update. Closes #35 again.

18 years agoFix another bug introduced in [208].
Christopher Lenz [Wed, 4 Jul 2007 06:54:07 +0000 (06:54 +0000)] 
Fix another bug introduced in [208].

18 years agoFix for bug introduced in [208]. Closes #37.
Christopher Lenz [Wed, 4 Jul 2007 06:52:03 +0000 (06:52 +0000)] 
Fix for bug introduced in [208]. Closes #37.

18 years agoMinor changes to how previous msgids are processed.
Christopher Lenz [Tue, 3 Jul 2007 21:19:27 +0000 (21:19 +0000)] 
Minor changes to how previous msgids are processed.

18 years agoDoctest for changes on [205].
Pedro Algarvio [Tue, 3 Jul 2007 19:20:28 +0000 (19:20 +0000)] 
Doctest for changes on [205].

18 years agoMinor typo correction.
Pedro Algarvio [Tue, 3 Jul 2007 18:00:42 +0000 (18:00 +0000)] 
Minor typo correction.

18 years agoAdded `--no-fuzzy-matching` to the frontends and also `--previous` which adds the...
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.

18 years agoHandle obsolete messages when parsing catalogs. Closes #32.
Christopher Lenz [Tue, 3 Jul 2007 16:29:22 +0000 (16:29 +0000)] 
Handle obsolete messages when parsing catalogs. Closes #32.

18 years agoCorrectly handle non-ASCII chars in the catalog MIME headers.
Christopher Lenz [Tue, 3 Jul 2007 16:01:41 +0000 (16:01 +0000)] 
Correctly handle non-ASCII chars in the catalog MIME headers.

18 years agoFix for #36: avoid corrupting the catalog on update when there's an error in the...
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.

18 years agoFix for #35, and a minor improvement to how we parse the catalog fuzzy bit.
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.

18 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.

18 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.

18 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.

18 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.

18 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.

18 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.

18 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.

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

18 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.

18 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.

18 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

18 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.

18 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.

18 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.

18 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.

18 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].

18 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.

18 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.

18 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

18 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.

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

18 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.

18 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.

18 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

18 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.

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

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

18 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.

18 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.

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

18 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.

18 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.

18 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.

18 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.

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

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

18 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.

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

18 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.

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

18 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.

18 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.