]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
12 years agoignore extra temp folder created by tests 8/head
Alex Morega [Wed, 3 Jul 2013 14:30:54 +0000 (16:30 +0200)] 
ignore extra temp folder created by tests

12 years agoscript to download and import cldr
Alex Morega [Wed, 3 Jul 2013 14:28:59 +0000 (16:28 +0200)] 
script to download and import cldr

12 years agotravis configuration
Alex Morega [Wed, 3 Jul 2013 13:19:47 +0000 (15:19 +0200)] 
travis configuration

12 years agotox file
Alex Morega [Wed, 3 Jul 2013 13:12:30 +0000 (15:12 +0200)] 
tox file

12 years agoignore temp files from tests
Alex Morega [Wed, 3 Jul 2013 13:12:22 +0000 (15:12 +0200)] 
ignore temp files from tests

12 years agoinitial cleanup
xen [Wed, 3 Jul 2013 13:14:23 +0000 (16:14 +0300)] 
initial cleanup

12 years agoimprove developer experience when using a hg checkout of babel (#314)
Felix Schwarz [Fri, 12 Oct 2012 20:47:47 +0000 (20:47 +0000)] 
improve developer experience when using a hg checkout of babel (#314)

12 years agoensure .mo file header contains the same information as the source .po file (#199)
Felix Schwarz [Mon, 27 Aug 2012 21:15:27 +0000 (21:15 +0000)] 
ensure .mo file header contains the same information as the source .po file (#199)

12 years agofix 'input_dirs' option for setuptools integration (#232, initial patch by Étienne...
Felix Schwarz [Thu, 23 Aug 2012 09:48:21 +0000 (09:48 +0000)] 
fix 'input_dirs' option for setuptools integration (#232, initial patch by Étienne Bersac)

12 years agofix spelling
Felix Schwarz [Wed, 22 Aug 2012 21:27:45 +0000 (21:27 +0000)] 
fix spelling

12 years agoupdate Translations.load to use new parameter name ('fp' instead of 'fileobj'), regre...
Felix Schwarz [Wed, 22 Aug 2012 20:28:32 +0000 (20:28 +0000)] 
update Translations.load to use new parameter name ('fp' instead of 'fileobj'), regression introduced in r653

12 years ago"update" command now supports "--width" option (#284)
Felix Schwarz [Mon, 20 Aug 2012 20:27:35 +0000 (20:27 +0000)] 
"update" command now supports "--width" option (#284)

12 years agoraise exception if setuptools integration for init catalog uses both 'width' and...
Felix Schwarz [Mon, 20 Aug 2012 20:24:54 +0000 (20:24 +0000)] 
raise exception if setuptools integration for init catalog uses both 'width' and 'no-wrap' parameter

12 years ago"init" command support "--width" option (#284)
Felix Schwarz [Mon, 20 Aug 2012 20:07:27 +0000 (20:07 +0000)] 
"init" command support "--width" option (#284)

12 years agochange constructor for babel.support.Translations to __init__(fp=None, domain=None...
Felix Schwarz [Mon, 20 Aug 2012 19:34:42 +0000 (19:34 +0000)] 
change constructor for babel.support.Translations to __init__(fp=None, domain=None) as its super class gettext.GNUTranslations uses "fp" as well (even if "fileobj" is a better name)

12 years agofix tests on Python 2.4, named tuples are not available there
Felix Schwarz [Mon, 20 Aug 2012 19:31:09 +0000 (19:31 +0000)] 
fix tests on Python 2.4, named tuples are not available there

12 years ago".load()" (babel.support.Translations) now returns Babel's NullTranslation (babel...
Felix Schwarz [Mon, 20 Aug 2012 19:24:03 +0000 (19:24 +0000)] 
".load()" (babel.support.Translations) now returns Babel's NullTranslation (babel.support.NullTranslation) instead of gettext.NullTranslations

12 years agoadd babel.support.NullTranslations class similar to gettext.NullTranslations but...
Felix Schwarz [Mon, 20 Aug 2012 19:21:22 +0000 (19:21 +0000)] 
add babel.support.NullTranslations class similar to gettext.NullTranslations but with all of Babel's new *gettext methods (#277)

13 years agodon't use class-level variable as default value for method parameters in babel.suppor...
Felix Schwarz [Fri, 10 Aug 2012 20:41:22 +0000 (20:41 +0000)] 
don't use class-level variable as default value for method parameters in babel.support.Translations to ease custom inheritance (see #276, initial patch by Christopher A. Stelma)

13 years agoformat_time() and format_datetime() now accept also floats (#242)
Felix Schwarz [Thu, 9 Aug 2012 11:44:40 +0000 (11:44 +0000)] 
format_time() and format_datetime() now accept also floats (#242)

13 years agoresort to hard-coded message extractors/checkers if pkg_resources is installed but...
Felix Schwarz [Thu, 9 Aug 2012 11:20:25 +0000 (11:20 +0000)] 
resort to hard-coded message extractors/checkers if pkg_resources is installed but no egg-info was found (#230)

13 years agofix Locale.default to return Locales with correct territory information
Felix Schwarz [Thu, 9 Aug 2012 07:47:09 +0000 (07:47 +0000)] 
fix Locale.default to return Locales with correct territory information

13 years agochange Locale comparison: Locales are now considered equal if all of their attributes...
Felix Schwarz [Thu, 9 Aug 2012 07:36:36 +0000 (07:36 +0000)] 
change Locale comparison: Locales are now considered equal if all of their attributes (language, territory, script, variant) are equal. Before __eq__ used the simple string representation which hides errors in Locale instantiation (see #279 and #311 for more information).

13 years agochange repr output for babel.Locale so all attributes (territory, script, variant...
Felix Schwarz [Thu, 9 Aug 2012 06:56:23 +0000 (06:56 +0000)] 
change repr output for babel.Locale so all attributes (territory, script, variant) are shown by itself. This should help identifying bad usage of the Locale class (e.g. Locale('de_DE') instead of Locale('de', 'DE'), #279

13 years agono warnings when running setup.py without installed setuptools (#262)
Felix Schwarz [Wed, 8 Aug 2012 12:36:03 +0000 (12:36 +0000)] 
no warnings when running setup.py without installed setuptools (#262)

13 years agodisable doctests for babel.numbers in Python 2.4 due to changed Decimal repr output
Felix Schwarz [Wed, 8 Aug 2012 12:23:20 +0000 (12:23 +0000)] 
disable doctests for babel.numbers in Python 2.4 due to changed Decimal repr output

13 years agoparse_decimal() now returns Decimals not floats, API change (#178)
Felix Schwarz [Mon, 6 Aug 2012 20:19:20 +0000 (20:19 +0000)] 
parse_decimal() now returns Decimals not floats, API change (#178)

13 years agofix doctests on Python 2.4: In 2.4 re.sub(..., ..., u'') will return '' (str, not...
Felix Schwarz [Mon, 6 Aug 2012 07:41:21 +0000 (07:41 +0000)] 
fix doctests on Python 2.4: In 2.4 re.sub(..., ..., u'') will return '' (str, not unicode) so just fill in some msgstr to avoid that problem

13 years agohandle irregular multi-line msgstr (no "" as first line) gracefully (#171)
Felix Schwarz [Sat, 4 Aug 2012 23:10:41 +0000 (23:10 +0000)] 
handle irregular multi-line msgstr (no "" as first line) gracefully (#171)

13 years agofix indentation in split_number
Felix Schwarz [Sat, 4 Aug 2012 20:22:49 +0000 (20:22 +0000)] 
fix indentation in split_number

13 years agorestore Python 2.4 compatibility (broken in r634)
Felix Schwarz [Sat, 4 Aug 2012 14:35:51 +0000 (14:35 +0000)] 
restore Python 2.4 compatibility (broken in r634)

13 years agofix handling of messages containing '\\n' (#171)
Felix Schwarz [Fri, 3 Aug 2012 22:41:49 +0000 (22:41 +0000)] 
fix handling of messages containing '\\n' (#171)

13 years agosmall code cleanup in write_po()
Felix Schwarz [Fri, 3 Aug 2012 19:17:50 +0000 (19:17 +0000)] 
small code cleanup in write_po()

13 years agofix format_decimal() with small Decimal values (#214, patch from George Lund)
Felix Schwarz [Fri, 3 Aug 2012 08:36:21 +0000 (08:36 +0000)] 
fix format_decimal() with small Decimal values (#214, patch from George Lund)

13 years agouse decorators (as we require Python 2.4+ anyway)
Felix Schwarz [Tue, 31 Jul 2012 08:46:19 +0000 (08:46 +0000)] 
use decorators (as we require Python 2.4+ anyway)

13 years agoadd changelog entry for r631 (#282)
Felix Schwarz [Mon, 30 Jul 2012 21:54:03 +0000 (21:54 +0000)] 
add changelog entry for r631 (#282)

13 years agofix format_date() with a datetime parameter (#282)
Felix Schwarz [Mon, 30 Jul 2012 21:48:55 +0000 (21:48 +0000)] 
fix format_date() with a datetime parameter (#282)

13 years agofix formatting of fraction in format_decimal() if the input value is a float with...
Felix Schwarz [Sat, 28 Jul 2012 22:26:02 +0000 (22:26 +0000)] 
fix formatting of fraction in format_decimal() if the input value is a float with more than 7 significant digits (#183)

13 years agoremove ElementTree import from babel.compat as this introduces a new (unnecessary...
Felix Schwarz [Tue, 24 Jul 2012 08:20:14 +0000 (08:20 +0000)] 
remove ElementTree import from babel.compat as this introduces a new (unnecessary) dependency for Python 2.4 users

13 years agoadd "--no-wrap" option for init/update commands (#289)
Felix Schwarz [Tue, 24 Jul 2012 07:33:43 +0000 (07:33 +0000)] 
add "--no-wrap" option for init/update commands (#289)

13 years agochange frontend tests so that they can be run stand-alone (using "python babel/messag...
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

13 years agoRemove unused import.
Jeroen Ruigrok van der Werven [Tue, 15 Nov 2011 15:53:51 +0000 (15:53 +0000)] 
Remove unused import.

13 years agoFix missing terminator.
Jeroen Ruigrok van der Werven [Tue, 15 Nov 2011 10:56:19 +0000 (10:56 +0000)] 
Fix missing terminator.

13 years agoremove Python 2.3 conditional in test suite generation
Felix Schwarz [Wed, 28 Sep 2011 10:09:35 +0000 (10:09 +0000)] 
remove Python 2.3 conditional in test suite generation

13 years agoSupport for context-aware methods during message extraction (fixes #229, patch by...
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)

13 years agoremove/simplify useless code lines
Felix Schwarz [Mon, 26 Sep 2011 16:57:21 +0000 (16:57 +0000)] 
remove/simplify useless code lines

13 years agoadd a compat module to shield the code from changes in different versions of Python
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

13 years agouse helper methods in frontend tests to concentrate assumptions about file system...
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

13 years agorefactor Catalog.__cmp__ method
Felix Schwarz [Mon, 26 Sep 2011 08:53:28 +0000 (08:53 +0000)] 
refactor Catalog.__cmp__ method

13 years agoadd more comparison methods to babel.messages.Catalog to ease the Python 3 transition
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

13 years agofix spelling in comments
Felix Schwarz [Sun, 25 Sep 2011 20:30:45 +0000 (20:30 +0000)] 
fix spelling in comments

13 years agoremove unused imports from setup.py
Felix Schwarz [Sun, 25 Sep 2011 20:25:31 +0000 (20:25 +0000)] 
remove unused imports from setup.py

13 years agorename several du*gettext methods() to ud*gettext for more consistent naming (fixes...
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.

13 years agofix docstring for babel.messages.extract() so it mentions the correct return type
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

13 years agoAllow disabling cache behaviour in LazyProxy (fixes #208, initial patch Pedro Algarvio)
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)

13 years agoOnly use bankers round algorithm as a tie breaker if there are two nearest numbers...
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)

13 years agoremove Python 2.3 compat code for Decimal
Felix Schwarz [Tue, 30 Aug 2011 20:27:34 +0000 (20:27 +0000)] 
remove Python 2.3 compat code for Decimal

14 years agokeywords only support space separated values, not comma separated
Philip Jenvey [Mon, 25 Apr 2011 04:41:23 +0000 (04:41 +0000)] 
keywords only support space separated values, not comma separated
thanks agronholm

14 years agoAdd mention of javascript builtin extractor.
Jeroen Ruigrok van der Werven [Fri, 22 Apr 2011 12:53:30 +0000 (12:53 +0000)] 
Add mention of javascript builtin extractor.

14 years agoAdd JavaScript example.
Jeroen Ruigrok van der Werven [Thu, 21 Apr 2011 09:30:40 +0000 (09:30 +0000)] 
Add JavaScript example.

14 years agosmall test refactoring/cleanup
Felix Schwarz [Sun, 20 Mar 2011 16:29:58 +0000 (16:29 +0000)] 
small test refactoring/cleanup

14 years agoadd 0.9.6 release date in Changelog for trunk
Felix Schwarz [Sun, 20 Mar 2011 06:26:33 +0000 (06:26 +0000)] 
add 0.9.6 release date in Changelog for trunk

14 years agouse cPickle instead of pickle for better performance (fixes #225)
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)

14 years agotest refactoring: clear global babel logger handlers to decrease test interdependenci...
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)

14 years agobabel.messages.pofile should only apply encoding when actually writing a file (eases...
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)

14 years agorename babel.localedata.list() to ease Python 3 transition (fixes #250)
Felix Schwarz [Sat, 19 Mar 2011 19:48:23 +0000 (19:48 +0000)] 
rename babel.localedata.list() to ease Python 3 transition (fixes #250)

14 years agoCatalog class should not do decoding of input strings (fixes #256)
Felix Schwarz [Sat, 19 Mar 2011 19:34:40 +0000 (19:34 +0000)] 
Catalog class should not do decoding of input strings (fixes #256)

14 years agocatalog.add() now returns the message instance (closes #245)
Felix Schwarz [Sat, 19 Mar 2011 19:28:59 +0000 (19:28 +0000)] 
catalog.add() now returns the message instance (closes #245)

14 years agofix a couple of frontend tests so they actually test something (fixes #260)
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)

14 years agoadd actual unit tests for #227 and add missing changelog entry
Felix Schwarz [Fri, 11 Mar 2011 16:48:36 +0000 (16:48 +0000)] 
add actual unit tests for #227 and add missing changelog entry

14 years agoadd missing changelog entries in 0.9.6 section of trunk changelog
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

14 years agoadd changelog entry for #200
Felix Schwarz [Fri, 11 Mar 2011 16:40:21 +0000 (16:40 +0000)] 
add changelog entry for #200

14 years agocatch exception if environment contains an invalid locale setting (fixes #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)

14 years agoremove unnecessary import
Felix Schwarz [Sat, 5 Mar 2011 18:58:33 +0000 (18:58 +0000)] 
remove unnecessary import

14 years agocleanup: remove unused imports
Felix Schwarz [Sat, 5 Mar 2011 16:40:24 +0000 (16:40 +0000)] 
cleanup: remove unused imports

14 years agoUpdate the copyright line.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 15:22:28 +0000 (15:22 +0000)] 
Update the copyright line.

14 years agoBump the copyright.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 15:12:39 +0000 (15:12 +0000)] 
Bump the copyright.

14 years agoCopy is imported, but never used. Get rid of it.
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.

14 years agoGet rid of the utility code for itemgetter(), we now simply import this
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.

14 years agoGet rid of the utility set here as well.
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.

14 years agoCleanup round #1: get rid of the frozenset/set utility code and imports.
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.

14 years agoshorten the __init__() method of !CommandLineInterface by extracting the logging...
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

14 years agoGet rid of some unused imports.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 14:50:16 +0000 (14:50 +0000)] 
Get rid of some unused imports.

14 years agoprevent !CommandLineInterface.run from accumulating logging handlers (fixes #227)
Felix Schwarz [Sat, 5 Mar 2011 14:48:59 +0000 (14:48 +0000)] 
prevent !CommandLineInterface.run from accumulating logging handlers (fixes #227)

14 years agoJust use the rsplit() since we do not need to support 2.3 in trunk.
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.

14 years agofix expected output from !FormatTimedeltaTestCase in babel.tests.dates and ensure...
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)

14 years agoChange occurence of 'metainfo' to 'metazone_info'. 'metainfo' was not
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.

14 years agofixed spelling in docstring
Felix Schwarz [Sat, 5 Mar 2011 09:55:42 +0000 (09:55 +0000)] 
fixed spelling in docstring

14 years agoImport of tzinfo is not necessary.
Jeroen Ruigrok van der Werven [Sat, 5 Mar 2011 09:33:08 +0000 (09:33 +0000)] 
Import of tzinfo is not necessary.

14 years agomention that pytz is not optional to run the automated tests (closes #249)
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)

14 years agoadd tests from r563 to trunk
Felix Schwarz [Fri, 4 Mar 2011 22:36:22 +0000 (22:36 +0000)] 
add tests from r563 to trunk

14 years agotrunk actually does not support Python 2.3 anymore, so mention 2.4 as minimally suppo...
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

14 years agoBack out r549 for now.
Jeroen Ruigrok van der Werven [Tue, 22 Feb 2011 16:01:21 +0000 (16:01 +0000)] 
Back out r549 for now.

14 years agoSmall speed improvement for format_date() by getting rid of duplicate parse_pattern.
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

14 years agoPrevent multiple handlers being attached to the same logger.
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

15 years agoFix documentation: double 'to' and stray reference to POT, which should be MO.
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.

15 years agoUpdate ChangeLog.
Jeroen Ruigrok van der Werven [Mon, 19 Apr 2010 09:48:56 +0000 (09:48 +0000)] 
Update ChangeLog.

15 years agoAdd 0.9.6 entries.
Jeroen Ruigrok van der Werven [Mon, 19 Apr 2010 09:33:53 +0000 (09:33 +0000)] 
Add 0.9.6 entries.

15 years agoFix Serbian plural forms (ticket #213).
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

15 years agoFix typos.
Jeroen Ruigrok van der Werven [Sun, 11 Apr 2010 08:43:36 +0000 (08:43 +0000)] 
Fix typos.