]>
git.ipfire.org Git - thirdparty/babel.git/log
Jeroen Ruigrok van der Werven [Tue, 22 Feb 2011 14:30:22 +0000 (14:30 +0000)]
Prevent multiple handlers being attached to the same logger.
Issue: #227
Submitted by: dfraser
Jeroen Ruigrok van der Werven [Mon, 26 Apr 2010 11:28:07 +0000 (11:28 +0000)]
Fix documentation: double 'to' and stray reference to POT, which should be MO.
Jeroen Ruigrok van der Werven [Mon, 19 Apr 2010 09:48:56 +0000 (09:48 +0000)]
Update ChangeLog.
Jeroen Ruigrok van der Werven [Mon, 19 Apr 2010 09:33:53 +0000 (09:33 +0000)]
Add 0.9.6 entries.
Jeroen Ruigrok van der Werven [Sun, 11 Apr 2010 09:27:20 +0000 (09:27 +0000)]
Fix Serbian plural forms (ticket #213).
Submitted by: Patrice Neff
Jeroen Ruigrok van der Werven [Sun, 11 Apr 2010 08:43:36 +0000 (08:43 +0000)]
Fix typos.
Jeroen Ruigrok van der Werven [Thu, 8 Apr 2010 09:17:34 +0000 (09:17 +0000)]
Document the Python 2.7 ElementTree fix.
Jeroen Ruigrok van der Werven [Thu, 8 Apr 2010 09:16:53 +0000 (09:16 +0000)]
Fix the ElementTree find()/findall() syntax to be compatible with Python 2.7.
Jeroen Ruigrok van der Werven [Thu, 8 Apr 2010 08:26:22 +0000 (08:26 +0000)]
Fix test to run under Python 2.3.
Christopher Lenz [Wed, 7 Apr 2010 07:33:59 +0000 (07:33 +0000)]
Rename the ''CVS'' directory in the test data to ''ignored'', as quite a number of tools are configured or even hardcoded to ignore CVS directories. For example, I couldn't find a way to include the directory in the sdist tarball.
Christopher Lenz [Tue, 6 Apr 2010 11:45:01 +0000 (11:45 +0000)]
Workaround for a weird bug with newer versions of pytz, which fails when `utcoffset()` gets passed a `None` argument. Which it shouldn't be getting in the first place.
Jeroen Ruigrok van der Werven [Tue, 6 Apr 2010 10:29:43 +0000 (10:29 +0000)]
Add the 0.9.5 release notes.
Jeroen Ruigrok van der Werven [Sat, 27 Feb 2010 11:15:18 +0000 (11:15 +0000)]
Fix some more typos.
Pedro Algarvio [Sat, 27 Feb 2010 10:32:54 +0000 (10:32 +0000)]
Typo correction.
Jeroen Ruigrok van der Werven [Wed, 24 Feb 2010 13:01:47 +0000 (13:01 +0000)]
Document the square bracket and CLDR 1.7 work.
Jeroen Ruigrok van der Werven [Wed, 24 Feb 2010 12:27:32 +0000 (12:27 +0000)]
Forgot to bump the copyright line.
Jeroen Ruigrok van der Werven [Fri, 19 Feb 2010 14:15:56 +0000 (14:15 +0000)]
Actually make the msgid_plural be a plural as per typical use case.
Jeroen Ruigrok van der Werven [Fri, 19 Feb 2010 14:12:41 +0000 (14:12 +0000)]
More than two plural forms work nowadays. Adjust the test.
Jeroen Ruigrok van der Werven [Fri, 19 Feb 2010 13:45:25 +0000 (13:45 +0000)]
Put the square brackets test after all the normal plural tests. It's more
logical.
Jeroen Ruigrok van der Werven [Fri, 19 Feb 2010 13:38:24 +0000 (13:38 +0000)]
Add a test for a locale with one plural form.
Jeroen Ruigrok van der Werven [Fri, 19 Feb 2010 13:16:08 +0000 (13:16 +0000)]
Fix testcase name typo.
Switch to use a locale that uses a different singular and plural form instead
of just one form for both singular and plural.
Jeroen Ruigrok van der Werven [Fri, 19 Feb 2010 13:08:56 +0000 (13:08 +0000)]
Make sure to only strip on the first occurence of ].
Submitted by: Benoit Boissinot
Philip Jenvey [Fri, 25 Sep 2009 20:29:11 +0000 (20:29 +0000)]
remove sorted and don't assume dict ordering (Python 2.3 & Jython compat)
Jeroen Ruigrok van der Werven [Sat, 22 Aug 2009 12:53:45 +0000 (12:53 +0000)]
Current CDLR has implemented the full type specifiers on the dateTimeFormats,
as a result you cannot call None on the dictionary anymore since it's no
longer a key for it.
Jeroen Ruigrok van der Werven [Sat, 22 Aug 2009 12:13:40 +0000 (12:13 +0000)]
The date now returns 52 with the current data, adjust the test accordingly.
Jeroen Ruigrok van der Werven [Sat, 22 Aug 2009 12:09:29 +0000 (12:09 +0000)]
Revert part of the commits with relation to the de locale's use of \xa0 as
thousands separator, this is still a proposed change and not the active one.
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`.