]>
git.ipfire.org Git - thirdparty/babel.git/log
Felix Schwarz [Tue, 24 Jul 2012 07:33:43 +0000 (07:33 +0000)]
add "--no-wrap" option for init/update commands (#289)
Felix Schwarz [Mon, 23 Jul 2012 18:55:56 +0000 (18:55 +0000)]
change frontend tests so that they can be run stand-alone (using "python babel/messages/tests/frontend.py") and not just as part of the whole suite
Jeroen Ruigrok van der Werven [Tue, 15 Nov 2011 15:53:51 +0000 (15:53 +0000)]
Remove unused import.
Jeroen Ruigrok van der Werven [Tue, 15 Nov 2011 10:56:19 +0000 (10:56 +0000)]
Fix missing terminator.
Felix Schwarz [Wed, 28 Sep 2011 10:09:35 +0000 (10:09 +0000)]
remove Python 2.3 conditional in test suite generation
Felix Schwarz [Mon, 26 Sep 2011 20:01:01 +0000 (20:01 +0000)]
Support for context-aware methods during message extraction (fixes #229, patch by David Rios)
Felix Schwarz [Mon, 26 Sep 2011 16:57:21 +0000 (16:57 +0000)]
remove/simplify useless code lines
Felix Schwarz [Mon, 26 Sep 2011 09:42:43 +0000 (09:42 +0000)]
add a compat module to shield the code from changes in different versions of Python
Felix Schwarz [Mon, 26 Sep 2011 09:25:03 +0000 (09:25 +0000)]
use helper methods in frontend tests to concentrate assumptions about file system layout in these helper methods
Felix Schwarz [Mon, 26 Sep 2011 08:53:28 +0000 (08:53 +0000)]
refactor Catalog.__cmp__ method
Felix Schwarz [Sun, 25 Sep 2011 20:44:10 +0000 (20:44 +0000)]
add more comparison methods to babel.messages.Catalog to ease the Python 3 transition
Felix Schwarz [Sun, 25 Sep 2011 20:30:45 +0000 (20:30 +0000)]
fix spelling in comments
Felix Schwarz [Sun, 25 Sep 2011 20:25:31 +0000 (20:25 +0000)]
remove unused imports from setup.py
Felix Schwarz [Wed, 7 Sep 2011 19:49:45 +0000 (19:49 +0000)]
rename several du*gettext methods() to ud*gettext for more consistent naming (fixes #263). The old names are still valid and are not deprecetad as these names are commonly used also in other software.
Felix Schwarz [Sat, 3 Sep 2011 08:31:43 +0000 (08:31 +0000)]
fix docstring for babel.messages.extract() so it mentions the correct return type
Felix Schwarz [Wed, 31 Aug 2011 12:38:06 +0000 (12:38 +0000)]
Allow disabling cache behaviour in LazyProxy (fixes #208, initial patch Pedro Algarvio)
Felix Schwarz [Tue, 30 Aug 2011 20:53:33 +0000 (20:53 +0000)]
Only use bankers round algorithm as a tie breaker if there are two nearest numbers, round as usual if there is only one nearest number (#267, patch by Martin)
Felix Schwarz [Tue, 30 Aug 2011 20:27:34 +0000 (20:27 +0000)]
remove Python 2.3 compat code for Decimal
Philip Jenvey [Mon, 25 Apr 2011 04:41:23 +0000 (04:41 +0000)]
keywords only support space separated values, not comma separated
thanks agronholm
Jeroen Ruigrok van der Werven [Fri, 22 Apr 2011 12:53:30 +0000 (12:53 +0000)]
Add mention of javascript builtin extractor.
Jeroen Ruigrok van der Werven [Thu, 21 Apr 2011 09:30:40 +0000 (09:30 +0000)]
Add JavaScript example.
Felix Schwarz [Sun, 20 Mar 2011 16:29:58 +0000 (16:29 +0000)]
small test refactoring/cleanup
Felix Schwarz [Sun, 20 Mar 2011 06:26:33 +0000 (06:26 +0000)]
add 0.9.6 release date in Changelog for trunk
Felix Schwarz [Sun, 20 Mar 2011 06:01:11 +0000 (06:01 +0000)]
use cPickle instead of pickle for better performance (fixes #225)
import_cldr on my system was about 20% faster with this patch (13.9 sec vs. 16.9 sec)
Felix Schwarz [Sat, 19 Mar 2011 21:13:34 +0000 (21:13 +0000)]
test refactoring: clear global babel logger handlers to decrease test interdependencies (follow-up on #227)
Felix Schwarz [Sat, 19 Mar 2011 19:50:21 +0000 (19:50 +0000)]
babel.messages.pofile should only apply encoding when actually writing a file (eases Python 3 transition, closes #251)
Felix Schwarz [Sat, 19 Mar 2011 19:48:23 +0000 (19:48 +0000)]
rename babel.localedata.list() to ease Python 3 transition (fixes #250)
Felix Schwarz [Sat, 19 Mar 2011 19:34:40 +0000 (19:34 +0000)]
Catalog class should not do decoding of input strings (fixes #256)
Felix Schwarz [Sat, 19 Mar 2011 19:28:59 +0000 (19:28 +0000)]
catalog.add() now returns the message instance (closes #245)
Felix Schwarz [Wed, 16 Mar 2011 14:31:44 +0000 (14:31 +0000)]
fix a couple of frontend tests so they actually test something (fixes #260)
Felix Schwarz [Fri, 11 Mar 2011 16:48:36 +0000 (16:48 +0000)]
add actual unit tests for #227 and add missing changelog entry
Felix Schwarz [Fri, 11 Mar 2011 16:42:37 +0000 (16:42 +0000)]
add missing changelog entries in 0.9.6 section of trunk changelog
Felix Schwarz [Fri, 11 Mar 2011 16:40:21 +0000 (16:40 +0000)]
add changelog entry for #200
Felix Schwarz [Fri, 11 Mar 2011 16:20:57 +0000 (16:20 +0000)]
catch exception if environment contains an invalid locale setting (fixes #200)
Felix Schwarz [Sat, 5 Mar 2011 18:58:33 +0000 (18:58 +0000)]
remove unnecessary import
Felix Schwarz [Sat, 5 Mar 2011 16:40:24 +0000 (16:40 +0000)]
cleanup: remove unused imports
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 15:22:28 +0000 (15:22 +0000)]
Update the copyright line.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 15:12:39 +0000 (15:12 +0000)]
Bump the copyright.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 15:10:01 +0000 (15:10 +0000)]
Copy is imported, but never used. Get rid of it.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 15:06:28 +0000 (15:06 +0000)]
Get rid of the utility code for itemgetter(), we now simply import this
from operator.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 15:05:28 +0000 (15:05 +0000)]
Get rid of the utility set here as well.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 14:59:20 +0000 (14:59 +0000)]
Cleanup round #1: get rid of the frozenset/set utility code and imports.
This is no longer needed with 2.4 and onward.
Felix Schwarz [Sat, 5 Mar 2011 14:53:03 +0000 (14:53 +0000)]
shorten the __init__() method of !CommandLineInterface by extracting the logging configuration into another method
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 14:50:16 +0000 (14:50 +0000)]
Get rid of some unused imports.
Felix Schwarz [Sat, 5 Mar 2011 14:48:59 +0000 (14:48 +0000)]
prevent !CommandLineInterface.run from accumulating logging handlers (fixes #227)
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 14:43:28 +0000 (14:43 +0000)]
Just use the rsplit() since we do not need to support 2.3 in trunk.
Felix Schwarz [Sat, 5 Mar 2011 10:22:59 +0000 (10:22 +0000)]
fix expected output from !FormatTimedeltaTestCase in babel.tests.dates and ensure it will be executed during the normal test run (see #259)
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 09:59:28 +0000 (09:59 +0000)]
Change occurence of 'metainfo' to 'metazone_info'. 'metainfo' was not
used anywhere and the test was made against 'metazone_info', similar to the
'info' test above.
Felix Schwarz [Sat, 5 Mar 2011 09:55:42 +0000 (09:55 +0000)]
fixed spelling in docstring
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 09:33:08 +0000 (09:33 +0000)]
Import of tzinfo is not necessary.
Felix Schwarz [Fri, 4 Mar 2011 22:54:21 +0000 (22:54 +0000)]
mention that pytz is not optional to run the automated tests (closes #249)
Felix Schwarz [Fri, 4 Mar 2011 22:36:22 +0000 (22:36 +0000)]
add tests from r563 to trunk
Felix Schwarz [Fri, 4 Mar 2011 11:11:51 +0000 (11:11 +0000)]
trunk actually does not support Python 2.3 anymore, so mention 2.4 as minimally supported version of Python
Jeroen Ruigrok van der Werven [Tue, 22 Feb 2011 16:01:21 +0000 (16:01 +0000)]
Back out r549 for now.
Jeroen Ruigrok van der Werven [Tue, 22 Feb 2011 15:16:13 +0000 (15:16 +0000)]
Small speed improvement for format_date() by getting rid of duplicate parse_pattern.
Issue: #216
Submitted by: Stéphane Démurget
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.