]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
18 years ago`read_po` now returns a `Catalog`.
Christopher Lenz [Fri, 8 Jun 2007 13:15:32 +0000 (13:15 +0000)] 
`read_po` now returns a `Catalog`.

18 years agoAdded the available commands list to the `--help` output of Babel's binary.
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.

18 years agoThe order of extraction methods is now preserved (see #10).
Christopher Lenz [Fri, 8 Jun 2007 12:41:00 +0000 (12:41 +0000)] 
The order of extraction methods is now preserved (see #10).

18 years agoMove `Translations` and `LazyProxy` to new `babel.support` module, which should conta...
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)''

18 years agoFix typo in [58].
Christopher Lenz [Fri, 8 Jun 2007 11:44:28 +0000 (11:44 +0000)] 
Fix typo in [58].

18 years agoFix 2nd typo of [58].
Pedro Algarvio [Fri, 8 Jun 2007 11:35:06 +0000 (11:35 +0000)] 
Fix 2nd typo of [58].

18 years agoFix typo in [58].
Christopher Lenz [Fri, 8 Jun 2007 11:32:27 +0000 (11:32 +0000)] 
Fix typo in [58].

18 years ago * The `extract_messages` distutils command now operators on configurable input direc...
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.

18 years agoAdd actual data structures for handling message catalogs, so that more code can be...
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.

18 years ago`new_catalog` now accepts another argument, `--domain`, which is used to build the...
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.

18 years agoRename the `babel.catalog` package to `babel.messages` for consistency with the other...
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.

18 years agoAdd `english_name` property to `Locale` class.
Christopher Lenz [Thu, 7 Jun 2007 23:11:32 +0000 (23:11 +0000)] 
Add `english_name` property to `Locale` class.

18 years agoSupport sub-commands in command-line interface, and renamed the generated script...
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.

18 years agoFixed a bug regarding plural msgid's handling when writing the `.pot` file.
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`..

18 years agoAdded round-half-even (banker's rounding) support.
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.

18 years agoSupport a `message_extractors` keyword argument directly in `setup()`. Closes #4.
Christopher Lenz [Thu, 7 Jun 2007 00:15:27 +0000 (00:15 +0000)] 
Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.

18 years agoMove the mapping configuration file format to `ConfigParser`, and add some more docum...
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.

18 years agoSupport passing extraction method mapping and options from the frontends (see #4...
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.

18 years agoMinor docstring fixes.
Christopher Lenz [Wed, 6 Jun 2007 20:54:11 +0000 (20:54 +0000)] 
Minor docstring fixes.

18 years agoFix copy&paste error in documentation stylesheet.
Christopher Lenz [Wed, 6 Jun 2007 20:52:32 +0000 (20:52 +0000)] 
Fix copy&paste error in documentation stylesheet.

18 years agoSome work towards #4.
Christopher Lenz [Wed, 6 Jun 2007 17:40:35 +0000 (17:40 +0000)] 
Some work towards #4.

18 years agoAdd setup config to get the SVN revision in the version number.
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.

18 years agoAdd new function to module exports.
Christopher Lenz [Wed, 6 Jun 2007 12:14:01 +0000 (12:14 +0000)] 
Add new function to module exports.

18 years agoLoad locale data lazily to avoid penalizing usage of `Locale` objects when no locale...
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.

18 years agoSyntax highlighting for the docs.
Christopher Lenz [Wed, 6 Jun 2007 11:02:48 +0000 (11:02 +0000)] 
Syntax highlighting for the docs.

18 years agoMove function for determining the system default locale to `babel.core`, and make...
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`.

18 years agoStarted implementation of datetime parsing, using a very basic approach for now.
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.

18 years agoAdd optional pytz dependency to `INSTALL.txt`.
Christopher Lenz [Tue, 5 Jun 2007 10:38:11 +0000 (10:38 +0000)] 
Add optional pytz dependency to `INSTALL.txt`.

18 years agoFix for #8: fix extraction of strings from Python source using prefixes ('u' or ...
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.

18 years agoAdd note on daylight savings time.
Christopher Lenz [Mon, 4 Jun 2007 16:14:03 +0000 (16:14 +0000)] 
Add note on daylight savings time.

18 years agoExtended time-zone support.
Christopher Lenz [Mon, 4 Jun 2007 16:03:12 +0000 (16:03 +0000)] 
Extended time-zone support.

18 years ago * Import datetime patterns from CLDR.
Christopher Lenz [Mon, 4 Jun 2007 14:28:54 +0000 (14:28 +0000)] 
 * Import datetime patterns from CLDR.
 * Make the date/time arguments to the formatting functions optional, defaulting to the current date/time.

18 years agoStarted docs on number formatting/parsing.
Christopher Lenz [Mon, 4 Jun 2007 12:06:25 +0000 (12:06 +0000)] 
Started docs on number formatting/parsing.

18 years agoRaise error on unsupported locales. Closes #5.
Christopher Lenz [Mon, 4 Jun 2007 11:29:55 +0000 (11:29 +0000)] 
Raise error on unsupported locales. Closes #5.

18 years agoAdd missing import.
Christopher Lenz [Mon, 4 Jun 2007 10:54:26 +0000 (10:54 +0000)] 
Add missing import.

18 years agoMore work on timezones.
Christopher Lenz [Mon, 4 Jun 2007 10:51:38 +0000 (10:51 +0000)] 
More work on timezones.

18 years agoImport basic timezone info from CLDR (see #3). Still missing a couple other pieces...
Christopher Lenz [Sun, 3 Jun 2007 20:25:19 +0000 (20:25 +0000)] 
Import basic timezone info from CLDR (see #3). Still missing a couple other pieces in the puzzle.

18 years agoChanging `write_po` to include licensing info, same as the project. Since the method...
Pedro Algarvio [Sun, 3 Jun 2007 15:30:07 +0000 (15:30 +0000)] 
Changing `write_po` to include licensing info, same as the project. Since the method is also to create the initial pot file, we also include the year in the copyright. We also mark the translations catalog template as fuzzy as it should be, only localized translations catalogs ready to be compiled should not include the fuzzy bit on the header.

18 years ago * Reduce size of locale data pickles by only storing the data provided by each local...
Christopher Lenz [Sun, 3 Jun 2007 15:27:27 +0000 (15:27 +0000)] 
 * Reduce size of locale data pickles by only storing the data provided by each locale itself, and merging inherited data at runtime.
 * Move locale data loading from `babel.core` into a separate `babel.localedata` module.
 * Add curency names and symbols to locale data.

18 years agoAdd doc section on calender display names.
Christopher Lenz [Fri, 1 Jun 2007 16:15:56 +0000 (16:15 +0000)] 
Add doc section on calender display names.

18 years agoReimplement line wrapping for PO writing (as the `textwrap` module is too destructive...
Christopher Lenz [Fri, 1 Jun 2007 15:36:00 +0000 (15:36 +0000)] 
Reimplement line wrapping for PO writing (as the `textwrap` module is too destructive with white space) and move it to the `normalize` function (which was already doing some handling of line breaks).

18 years agoAdded line-wrap support for `write_po`.
Pedro Algarvio [Thu, 31 May 2007 22:44:57 +0000 (22:44 +0000)] 
Added line-wrap support for `write_po`.
Fixed bug on the distutils frontend regarding the `keywords`.

18 years agoImplemented babel.numbers.format_percent
Jonas Borgström [Thu, 31 May 2007 19:52:57 +0000 (19:52 +0000)] 
Implemented babel.numbers.format_percent

18 years agoChange pot header's first line, "Translations Template for %%(project)s." instead...
Pedro Algarvio [Thu, 31 May 2007 18:04:41 +0000 (18:04 +0000)] 
Change pot header's first line, "Translations Template for %%(project)s." instead of "SOME DESCRIPTIVE TITLE.". '''`project`''' and '''`version`''' now default to '''PROJECT''' and '''VERSION''' respectively. Fixed a bug regarding '''Content-Transfer-Encoding''', it shouldn't be the charset, and we're defaulting to `8bit` untill someone complains.

18 years agoFix typo in doc.
Christopher Lenz [Thu, 31 May 2007 17:58:38 +0000 (17:58 +0000)] 
Fix typo in doc.

18 years agoMoved some datetime tests from doctest to unittest, to avoid breaking docutils/epydoc...
Christopher Lenz [Thu, 31 May 2007 17:56:14 +0000 (17:56 +0000)] 
Moved some datetime tests from doctest to unittest, to avoid breaking docutils/epydoc doctest block detection.

18 years agoStarted documentation for date formatting, plus some code tweaks in that area.
Christopher Lenz [Thu, 31 May 2007 17:10:47 +0000 (17:10 +0000)] 
Started documentation for date formatting, plus some code tweaks in that area.

18 years agoRecognize python-format messages also for unnamed parameters.
Christopher Lenz [Thu, 31 May 2007 17:07:49 +0000 (17:07 +0000)] 
Recognize python-format messages also for unnamed parameters.

18 years agoHandle escape chars in datetime patterns.
Christopher Lenz [Thu, 31 May 2007 14:37:31 +0000 (14:37 +0000)] 
Handle escape chars in datetime patterns.

18 years agoMinor date formatting improvements.
Christopher Lenz [Thu, 31 May 2007 14:20:04 +0000 (14:20 +0000)] 
Minor date formatting improvements.

18 years agoAdd a temporary/placeholder logo. Not the real thing, I promise ;-)
Christopher Lenz [Thu, 31 May 2007 11:41:03 +0000 (11:41 +0000)] 
Add a temporary/placeholder logo. Not the real thing, I promise ;-)

18 years agoExtended and documented `LazyProxy`.
Christopher Lenz [Thu, 31 May 2007 10:27:47 +0000 (10:27 +0000)] 
Extended and documented `LazyProxy`.

18 years ago * Removed pkg_resources/setuptools requirement from various places.
Christopher Lenz [Thu, 31 May 2007 08:38:54 +0000 (08:38 +0000)] 
 * Removed pkg_resources/setuptools requirement from various places.
 * Fixed copyright year in a couple of file headers.
 * Some cleanup.

18 years agoBoth Babel's [source:trunk/babel/catalog/frontend.py frontend] and [source:trunk...
Pedro Algarvio [Wed, 30 May 2007 22:48:11 +0000 (22:48 +0000)] 
Both Babel's [source:trunk/babel/catalog/frontend.py frontend] and [source:trunk/babel/catalog/extract.py extract] now handle keyword indices. Also added an extra boolean flag so that the default keywords defined by Babel are not included in the keywords to search for when extracting strings.

18 years agoAdd basic support for number format patterns.
Jonas Borgström [Wed, 30 May 2007 21:30:14 +0000 (21:30 +0000)] 
Add basic support for number format patterns.

18 years agoPull in some supplemental data from the CLDR, for things like the first day of the...
Christopher Lenz [Wed, 30 May 2007 17:39:43 +0000 (17:39 +0000)] 
Pull in some supplemental data from the CLDR, for things like the first day of the week.

18 years agoFix usage of `write_po` in frontends (follow-up to [7]).
Christopher Lenz [Wed, 30 May 2007 11:55:02 +0000 (11:55 +0000)] 
Fix usage of `write_po` in frontends (follow-up to [7]).

18 years agoAdd basic PO file parsing, and change the PO writing procedure to also take flags...
Christopher Lenz [Wed, 30 May 2007 11:52:46 +0000 (11:52 +0000)] 
Add basic PO file parsing, and change the PO writing procedure to also take flags (such as "python-format" or "fuzzy").

18 years ago * The creation-date header in generated PO files now includes the timezone offset.
Christopher Lenz [Wed, 30 May 2007 10:16:37 +0000 (10:16 +0000)] 
 * The creation-date header in generated PO files now includes the timezone offset.
 * The distutils frontend pulls the project name and version from the distribution object.

18 years agoFixes for the extended translations class.
Christopher Lenz [Wed, 30 May 2007 08:43:51 +0000 (08:43 +0000)] 
Fixes for the extended translations class.

18 years agoForgot to check in the doc directory.
Christopher Lenz [Wed, 30 May 2007 07:37:26 +0000 (07:37 +0000)] 
Forgot to check in the doc directory.

18 years agoImport of initial code base.
Christopher Lenz [Tue, 29 May 2007 20:33:55 +0000 (20:33 +0000)] 
Import of initial code base.

18 years agoBasic directory layout.
Christopher Lenz [Tue, 29 May 2007 20:22:12 +0000 (20:22 +0000)] 
Basic directory layout.