]>
git.ipfire.org Git - thirdparty/babel.git/log
Jeroen Ruigrok van der Werven [Sat, 22 Aug 2009 12:03:44 +0000 (12:03 +0000)]
Fix the import script to skip alt or draft items in the numbers/symbols
subtree of a locale.
Jeroen Ruigrok van der Werven [Fri, 21 Aug 2009 12:51:17 +0000 (12:51 +0000)]
Add extra doctest for formatting a number in de_DE since it uses a
non-breaking space (nbsp).
Jeroen Ruigrok van der Werven [Fri, 21 Aug 2009 12:26:00 +0000 (12:26 +0000)]
Adjust tests to match the data in CLDR: German doesn't use a . as thousands
separator, but a non-breaking whitespace.
Jeroen Ruigrok van der Werven [Fri, 21 Aug 2009 12:11:39 +0000 (12:11 +0000)]
Mark up two docstrings as raw (r""") in order to get the escaped characters
properly picked up in the doctest.
Jeroen Ruigrok van der Werven [Wed, 19 Aug 2009 12:15:13 +0000 (12:15 +0000)]
Add a __ne__ method for the Locale class.
Submitted by: mitsuhiko
Jeroen Ruigrok van der Werven [Wed, 29 Jul 2009 10:05:01 +0000 (10:05 +0000)]
Make sure to note CLDR 1.7 in installation details.
Jeroen Ruigrok van der Werven [Wed, 29 Jul 2009 10:00:32 +0000 (10:00 +0000)]
First changes to accomodate CLDR 1.7's changes.
Christopher Lenz [Fri, 8 May 2009 08:05:03 +0000 (08:05 +0000)]
add `--project` and `--version` options for commandline (fixes #173)
Christopher Lenz [Tue, 17 Mar 2009 22:26:03 +0000 (22:26 +0000)]
Fix for msgctxt parsing in PO files. Thanks to Asheesh Laroia for the patch. Closes #159.
Jeroen Ruigrok van der Werven [Mon, 16 Mar 2009 17:49:48 +0000 (17:49 +0000)]
Fix Catalog._set_mime_headers' handing of negative offsets.
Submitted by: Asheesh Laroia (Creative Commons)
Closes: #165
Pedro Algarvio [Thu, 12 Mar 2009 15:58:33 +0000 (15:58 +0000)]
Typo.
Pedro Algarvio [Sat, 10 Jan 2009 22:42:01 +0000 (22:42 +0000)]
Fuzzy matching regarding plurals should *NOT* be checked against `len(message.id)` because this is always 2, instead, it's should be checked against `catalog.num_plurals`.
Pedro Algarvio [Tue, 23 Dec 2008 01:12:59 +0000 (01:12 +0000)]
Use a more explicit error message if no option or argument(command) is passed to `pybabel`. Fixes #81.
Pedro Algarvio [Tue, 23 Dec 2008 01:03:40 +0000 (01:03 +0000)]
Now, the `--width` option, although with a default value of 76, it's not set to any value initially so that the `--no-wrap` option can be passed without throwing an error. Fixes #145.
With the above bug, another one was found where Babel was not mimic'ing xgtettext's behaviour regarding the `--no-wrap` option where comments are wrapped anyway to the width of 76, and, if `--width` is passed then that value is used to wrap the comments too.
Pedro Algarvio [Thu, 18 Dec 2008 01:36:14 +0000 (01:36 +0000)]
Final and complete fix for #148.
Pedro Algarvio [Thu, 18 Dec 2008 00:19:47 +0000 (00:19 +0000)]
Include patch from Asheesh Laroia. Fixes #45.
Pedro Algarvio [Thu, 18 Dec 2008 00:14:40 +0000 (00:14 +0000)]
Add support for `msgctxt`. See #54.
Pedro Algarvio [Tue, 16 Dec 2008 13:35:23 +0000 (13:35 +0000)]
Testcase for fix of #148.
Pedro Algarvio [Mon, 15 Dec 2008 23:47:54 +0000 (23:47 +0000)]
Make the `POT-Creation-Date` of the catalog being updated equal to `POT-Creation-Date` of the template used to update. Fixes #148.
Pedro Algarvio [Mon, 15 Dec 2008 23:14:50 +0000 (23:14 +0000)]
Typo's and sorted output of `list-locales`.
Armin Ronacher [Fri, 31 Oct 2008 16:13:59 +0000 (16:13 +0000)]
Removed `ValueError` raising for string formatting message checkers if the string does not contain any string formattings. The new behavior is undefined. This fixes at least one of the problems of the #150 ticket.
Philip Jenvey [Thu, 9 Oct 2008 17:13:26 +0000 (17:13 +0000)]
2.3 compat: fix another usage of set
refs #146
Philip Jenvey [Wed, 8 Oct 2008 22:42:55 +0000 (22:42 +0000)]
fix Python 2.3 compat: rearrange set/itemgetter/rsplit/sorted/unicode.decode
usage. still has a few, unimportant failing tests
Christopher Lenz [Mon, 25 Aug 2008 11:49:19 +0000 (11:49 +0000)]
More plural module cleanup and fixes.
Christopher Lenz [Mon, 25 Aug 2008 11:33:35 +0000 (11:33 +0000)]
Fix some epydoc usage in the `plural` module.
Christopher Lenz [Mon, 25 Aug 2008 11:32:56 +0000 (11:32 +0000)]
Fix type in ChangeLog.
Christopher Lenz [Mon, 25 Aug 2008 11:24:28 +0000 (11:24 +0000)]
Add message domain support to the `Translations` class. Closes #137.
Christopher Lenz [Mon, 25 Aug 2008 10:06:40 +0000 (10:06 +0000)]
Added [444] and [445] to ChangeLog.
Armin Ronacher [Sun, 24 Aug 2008 14:36:18 +0000 (14:36 +0000)]
Added support for string concatenation to javascript lexer. _("foo" + "bar") is now equivalent to _("foobar")
Armin Ronacher [Sat, 16 Aug 2008 22:30:35 +0000 (22:30 +0000)]
JavaScript lexer is now handling escapes in regular expression literals properly. This closes #138.
Christopher Lenz [Wed, 6 Aug 2008 10:20:49 +0000 (10:20 +0000)]
Strip locale modifiers when parsing (#136), and treat 'C' and 'POSIX' as aliases for 'en_US_POSIX'.
Pedro Algarvio [Tue, 5 Aug 2008 23:30:50 +0000 (23:30 +0000)]
Fix `babel.support.Translations.__repr__` and make it less stupid; Include the project name and version defined on the catalog loaded.
Christopher Lenz [Fri, 18 Jul 2008 13:38:02 +0000 (13:38 +0000)]
Add `timedelta` function to the `Format` support class.
Christopher Lenz [Fri, 18 Jul 2008 13:09:21 +0000 (13:09 +0000)]
Fix for memory leak reported in #128. Thanks to Manlio Perillo for reporting the problem.
Christopher Lenz [Wed, 16 Jul 2008 16:28:21 +0000 (16:28 +0000)]
Make the dependency on pytz for the tests explicit in `setup.py`.
Christopher Lenz [Tue, 15 Jul 2008 16:34:18 +0000 (16:34 +0000)]
Fixed quarters in date formatting.
Christopher Lenz [Tue, 15 Jul 2008 16:02:17 +0000 (16:02 +0000)]
The `format_timedelta` function now returns, for example, “1 day” instead of “0 days” if the granularity is `day` and the delta is less than a day but greater than zero.
Christopher Lenz [Tue, 15 Jul 2008 12:53:52 +0000 (12:53 +0000)]
Doc improvements for the new `format_timedelta` function.
Armin Ronacher [Tue, 15 Jul 2008 10:22:33 +0000 (10:22 +0000)]
alternative repr for plural rules
Armin Ronacher [Tue, 15 Jul 2008 10:13:55 +0000 (10:13 +0000)]
Fixed not in plural rules
Armin Ronacher [Mon, 14 Jul 2008 22:18:39 +0000 (22:18 +0000)]
Fixed a bug in plural.py that caused a traceback for some locales, changed the `__mod__` DateTimePattern to not raise exceptions but return NotImplemented.
Christopher Lenz [Mon, 14 Jul 2008 22:13:44 +0000 (22:13 +0000)]
Preliminary support for timedelta formatting (see #126), and import/expose the locale plural rules from the CLDR.
Christopher Lenz [Mon, 14 Jul 2008 13:02:16 +0000 (13:02 +0000)]
More graceful `__version__` initialization when Babel is not installed in a way Setuptools knows about it.
Armin Ronacher [Mon, 14 Jul 2008 12:48:21 +0000 (12:48 +0000)]
Some refactoring in plural.py
Armin Ronacher [Fri, 11 Jul 2008 13:51:20 +0000 (13:51 +0000)]
Added pluralization support module for the plural definitions from the latest CLDR
Christopher Lenz [Fri, 11 Jul 2008 13:47:28 +0000 (13:47 +0000)]
Improve CLDR import of currency-related data to ignore unsupported features such as symbol choice patterns and pluralized display names. See #93.
Jeroen Ruigrok van der Werven [Fri, 11 Jul 2008 08:58:04 +0000 (08:58 +0000)]
Clarify first_week_day, weekend_start, and weekend_end to point out that
0 is Monday.
Christopher Lenz [Wed, 9 Jul 2008 16:36:54 +0000 (16:36 +0000)]
Fix dates in ChangeLog.
Christopher Lenz [Tue, 8 Jul 2008 20:58:02 +0000 (20:58 +0000)]
Use item access to catalog messages in tests, so that they can be easily ported back to the 0.9.x branch.
Christopher Lenz [Tue, 8 Jul 2008 20:50:07 +0000 (20:50 +0000)]
Use item access to catalog messages in tests, so that they can be easily ported back to the 0.9.x branch.
Christopher Lenz [Mon, 7 Jul 2008 20:55:15 +0000 (20:55 +0000)]
Fix conversion of timestamp to `datetime` in `format_datetime()`
Christopher Lenz [Mon, 7 Jul 2008 14:49:16 +0000 (14:49 +0000)]
Implement support for aliases in the CLDR data. Closes #68. Also, update to CLDR 1.6, and a much improved `dump_data` script.
Armin Ronacher [Tue, 1 Jul 2008 09:17:34 +0000 (09:17 +0000)]
Added changelog entry for new `get_plural` function.
Armin Ronacher [Tue, 1 Jul 2008 09:16:30 +0000 (09:16 +0000)]
Added babel.messages.plurals.get_plural which returns a special tuple with the plural information.
Pedro Algarvio [Mon, 30 Jun 2008 16:37:29 +0000 (16:37 +0000)]
Remove some unused imports.
Pedro Algarvio [Mon, 30 Jun 2008 16:35:50 +0000 (16:35 +0000)]
Include fix of [407] in `pybabel`.
Join the `InitCatalog` testcases into a single one.
Make pylint a bit happier on `babel/messages/tests/checkers.py`.
Pedro Algarvio [Mon, 30 Jun 2008 12:23:28 +0000 (12:23 +0000)]
We no longer neglect `catalog.plurals`. Added tests for it. Fixes #120.
Added tests for the plural forms checker which will all now pass due to the above fix.
Pedro Algarvio [Thu, 26 Jun 2008 21:16:42 +0000 (21:16 +0000)]
Make sure the fix also works for multiple translator comments. Refs #119.
Pedro Algarvio [Thu, 26 Jun 2008 21:02:20 +0000 (21:02 +0000)]
Test and respective fix for gettext calls that spawn multiple lines. Fixes #119.
Pedro Algarvio [Thu, 26 Jun 2008 16:39:21 +0000 (16:39 +0000)]
Fix typo and add a test for translator comments with leading spaces.
Armin Ronacher [Wed, 25 Jun 2008 17:56:19 +0000 (17:56 +0000)]
Fixed a typo in the message checkers (tests will follow)
Armin Ronacher [Wed, 18 Jun 2008 12:39:01 +0000 (12:39 +0000)]
Added documentation to format method in babel.js
Armin Ronacher [Wed, 18 Jun 2008 12:29:00 +0000 (12:29 +0000)]
Added contrib folder with a JavaScript support file for babel.
Armin Ronacher [Wed, 18 Jun 2008 10:42:07 +0000 (10:42 +0000)]
Fixed logic error in the python format checker.
Armin Ronacher [Tue, 17 Jun 2008 22:11:09 +0000 (22:11 +0000)]
Convert format strings to str for nicer error messages (no u prefix) in the python_format checker.
Armin Ronacher [Tue, 17 Jun 2008 21:56:50 +0000 (21:56 +0000)]
Updated catalog test case for last commit, flags are now tested too in the clone test case.
Armin Ronacher [Tue, 17 Jun 2008 21:55:14 +0000 (21:55 +0000)]
Message.clone doesn't return a shallow copy any longer. This fixes a bug with update where flags where shared.
Armin Ronacher [Tue, 17 Jun 2008 21:17:44 +0000 (21:17 +0000)]
Fix scientific notation for 0. closes #99
Armin Ronacher [Tue, 17 Jun 2008 20:40:36 +0000 (20:40 +0000)]
Fixed #59 by falling back silently on invalid location comments.
Armin Ronacher [Tue, 17 Jun 2008 20:30:02 +0000 (20:30 +0000)]
Refactored the checker system. It's now possible to partially validate translations on a per-message level.
Armin Ronacher [Tue, 17 Jun 2008 20:07:08 +0000 (20:07 +0000)]
Moved PYTHON_FORMAT back to catalog.
Armin Ronacher [Tue, 17 Jun 2008 19:59:02 +0000 (19:59 +0000)]
Fixed a small bug in the python format string checker that caused the wrong exception to be thrown.
Armin Ronacher [Tue, 17 Jun 2008 19:54:34 +0000 (19:54 +0000)]
The builtin checkers don't require setuptools any longer, validate_format and python_format from the checkers module are merged into one now.
Armin Ronacher [Tue, 17 Jun 2008 19:32:09 +0000 (19:32 +0000)]
Added `validate_format helper function to `babel.support`.
Christopher Lenz [Mon, 16 Jun 2008 16:49:56 +0000 (16:49 +0000)]
More work on msgctxt support (#54).
Christopher Lenz [Mon, 16 Jun 2008 16:05:35 +0000 (16:05 +0000)]
Fixes for timezone calculations in time formatting (#83).
Christopher Lenz [Mon, 16 Jun 2008 12:24:04 +0000 (12:24 +0000)]
Update to CLDR 1.5.1, which split out the metazone mappings into a separate supplemental file.
Christopher Lenz [Mon, 16 Jun 2008 11:37:52 +0000 (11:37 +0000)]
Fix for incorrect month context lookup in date formatting. Closes #75. Thanks to Andrew Stromnov for reporting the problem and providing a patch.
Christopher Lenz [Mon, 16 Jun 2008 10:14:38 +0000 (10:14 +0000)]
Remove leftover unused code from [365].
Armin Ronacher [Mon, 16 Jun 2008 09:53:44 +0000 (09:53 +0000)]
Fixed a bug in pofile (in_msgctxt was not defined). Test follows.
Armin Ronacher [Sat, 14 Jun 2008 22:07:41 +0000 (22:07 +0000)]
JavaScript lexer falls back silently now on syntax errors and tries to recover.
Armin Ronacher [Sat, 14 Jun 2008 19:00:35 +0000 (19:00 +0000)]
added some newlines to extract and jslexer to stay consistent with the rest of the sourcecode.
Armin Ronacher [Thu, 12 Jun 2008 16:26:52 +0000 (16:26 +0000)]
Added !JavaScript extractor
Armin Ronacher [Thu, 12 Jun 2008 16:24:25 +0000 (16:24 +0000)]
Stripping of comment tags is optional now. If enabled it will strip the tags from all lines of a comment now.
Christopher Lenz [Wed, 11 Jun 2008 22:12:09 +0000 (22:12 +0000)]
Fix iterkeys/iteritems/itervalues/pop/popitem methods on the `odict` utility class. Thanks to Armin Ronacher for the patch.
Christopher Lenz [Wed, 11 Jun 2008 20:00:21 +0000 (20:00 +0000)]
Fix handling of default value of `locales` parameter of the `Translations.load()` method. Thanks to Armin Ronacher for reporting the problem.
Christopher Lenz [Wed, 11 Jun 2008 18:56:27 +0000 (18:56 +0000)]
More preparation for msgctxt support (#54).
Christopher Lenz [Tue, 10 Jun 2008 17:05:52 +0000 (17:05 +0000)]
Add basic MO file reading in preparation for #54.
Christopher Lenz [Tue, 10 Jun 2008 16:57:15 +0000 (16:57 +0000)]
Change Catalog class to retain the plural forms set in the MIME headers.
Christopher Lenz [Tue, 10 Jun 2008 10:32:33 +0000 (10:32 +0000)]
Add test file needed for [368].
Christopher Lenz [Fri, 6 Jun 2008 22:06:33 +0000 (22:06 +0000)]
Fix message catalog compilation for locales with more than two plural forms. Closes #95. Many thanks to Victor Safronovich for the patch.
Christopher Lenz [Fri, 6 Jun 2008 21:51:48 +0000 (21:51 +0000)]
Fix for #97, compilation of message catalogs for locales with more than two plural forms where the translations were empty was failing.
Christopher Lenz [Fri, 6 Jun 2008 21:22:29 +0000 (21:22 +0000)]
Allow extraction method specification to use a dot instead of the colon for separating module and function names. See #105.
Jeroen Ruigrok van der Werven [Fri, 2 May 2008 22:13:17 +0000 (22:13 +0000)]
Reinstate changeset r362, but this time properly wrap the exception list in
braces.
Submitted by: cboos
Jeroen Ruigrok van der Werven [Thu, 24 Apr 2008 09:25:09 +0000 (09:25 +0000)]
Back out last change, this broke extraction.
Christopher Lenz [Fri, 11 Apr 2008 12:51:12 +0000 (12:51 +0000)]
Make dependency on the parser module optional.
Jeroen Ruigrok van der Werven [Wed, 19 Mar 2008 15:32:18 +0000 (15:32 +0000)]
Actually use UTC to be more correct.
Jeroen Ruigrok van der Werven [Wed, 19 Mar 2008 15:03:07 +0000 (15:03 +0000)]
Replace Europe/Paris with Universal.
The doctest was, and still is, not respecting local clock changes for
summer/winter time, which cause the test to fail for half of the year.
Jeroen Ruigrok van der Werven [Wed, 19 Mar 2008 14:58:15 +0000 (14:58 +0000)]
Fix typo.
Philip Jenvey [Mon, 18 Feb 2008 18:09:30 +0000 (18:09 +0000)]
fix invalid message extraction methods causing:
UnboundLocalError: local variable 'func' referenced before assignment
thanks cramm