I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e0a7a234 authored by kytv's avatar kytv
Browse files

refresh patch to remove 'fuzz'

parent 9e4bbb72
No related branches found
No related tags found
No related merge requests found
--- env/lib/python2.7/site-packages/flask_babel/__init__.py 2013-07-13 00:00:00 +0000 --- env/lib/python2.7/site-packages/flask_babel/__init__.py 2014-02-14 01:30:08.990285797 +0000
+++ env/lib/python2.7/site-packages/flask_babel/__init__.py 2013-07-13 00:00:00 +0000 +++ env/lib/python2.7/site-packages/flask_babel/__init__.py 2014-02-14 01:30:14.030285865 +0000
@@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
from datetime import datetime from datetime import datetime
from flask import _request_ctx_stack from flask import _request_ctx_stack
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
from werkzeug import ImmutableDict from werkzeug import ImmutableDict
try: try:
from pytz.gae import pytz from pytz.gae import pytz
@@ -55,9 +56,11 @@ @@ -57,9 +58,11 @@
}) })
def __init__(self, app=None, default_locale='en', default_timezone='UTC', def __init__(self, app=None, default_locale='en', default_timezone='UTC',
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
self._date_formats = date_formats self._date_formats = date_formats
self._configure_jinja = configure_jinja self._configure_jinja = configure_jinja
self.app = app self.app = app
@@ -77,6 +80,7 @@ @@ -79,6 +82,7 @@
app.config.setdefault('BABEL_DEFAULT_LOCALE', self._default_locale) app.config.setdefault('BABEL_DEFAULT_LOCALE', self._default_locale)
app.config.setdefault('BABEL_DEFAULT_TIMEZONE', self._default_timezone) app.config.setdefault('BABEL_DEFAULT_TIMEZONE', self._default_timezone)
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
if self._date_formats is None: if self._date_formats is None:
self._date_formats = self.default_date_formats.copy() self._date_formats = self.default_date_formats.copy()
@@ -95,6 +99,7 @@ @@ -97,6 +101,7 @@
self.locale_selector_func = None self.locale_selector_func = None
self.timezone_selector_func = None self.timezone_selector_func = None
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
if self._configure_jinja: if self._configure_jinja:
app.jinja_env.filters.update( app.jinja_env.filters.update(
@@ -142,6 +147,19 @@ @@ -144,6 +149,19 @@
self.timezone_selector_func = f self.timezone_selector_func = f
return f return f
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
def list_translations(self): def list_translations(self):
"""Returns a list of all the locales translations exist for. The """Returns a list of all the locales translations exist for. The
@@ -178,6 +196,13 @@ @@ -180,6 +198,13 @@
""" """
return timezone(self.app.config['BABEL_DEFAULT_TIMEZONE']) return timezone(self.app.config['BABEL_DEFAULT_TIMEZONE'])
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
def get_translations(): def get_translations():
"""Returns the correct gettext translations that should be used for """Returns the correct gettext translations that should be used for
@@ -191,7 +216,10 @@ @@ -193,7 +218,10 @@
translations = getattr(ctx, 'babel_translations', None) translations = getattr(ctx, 'babel_translations', None)
if translations is None: if translations is None:
dirname = os.path.join(ctx.app.root_path, 'translations') dirname = os.path.join(ctx.app.root_path, 'translations')
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
ctx.babel_translations = translations ctx.babel_translations = translations
return translations return translations
@@ -243,6 +271,29 @@ @@ -245,6 +273,29 @@
return tzinfo return tzinfo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment