better transliteration in slugs, thanks winniehell
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
- allow URL(...,language=...) with parametric router, thanks Jonathan
|
- allow URL(...,language=...) with parametric router, thanks Jonathan
|
||||||
- allow non-expiration of gae-memcache, thanks crimsoncantab
|
- allow non-expiration of gae-memcache, thanks crimsoncantab
|
||||||
- MARKMIN(...,_class='...'), thanks Luca
|
- MARKMIN(...,_class='...'), thanks Luca
|
||||||
|
- better transliteration in building slugs
|
||||||
- autolink emails
|
- autolink emails
|
||||||
- new Janrain API, thanks PeterQ2
|
- new Janrain API, thanks PeterQ2
|
||||||
- enable admin app for GAE (experimental), thanks Alan
|
- enable admin app for GAE (experimental), thanks Alan
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
Version 2.9.1-stable+timestamp.2014.03.02.17.18.31
|
Version 2.9.1-stable+timestamp.2014.03.02.17.44.56
|
||||||
|
|||||||
+6
-1
@@ -658,7 +658,12 @@ class translator(object):
|
|||||||
set_plural(language)
|
set_plural(language)
|
||||||
self.accepted_language = language
|
self.accepted_language = language
|
||||||
return languages
|
return languages
|
||||||
self.accepted_language = language or self.current_languages[0]
|
self.accepted_language = language
|
||||||
|
if not language:
|
||||||
|
if self.current_languages:
|
||||||
|
self.accepted_language = self.current_languages[0]
|
||||||
|
else:
|
||||||
|
self.accepted_language = DEFAULT_LANGUAGE
|
||||||
self.language_file = self.default_language_file
|
self.language_file = self.default_language_file
|
||||||
self.cache = global_language_cache.setdefault(self.language_file,
|
self.cache = global_language_cache.setdefault(self.language_file,
|
||||||
({}, RLock()))
|
({}, RLock()))
|
||||||
|
|||||||
+2
-1
@@ -20,7 +20,8 @@ import decimal
|
|||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
from gluon.utils import simple_hash, web2py_uuid, DIGEST_ALG_BY_SIZE
|
from gluon.utils import simple_hash, web2py_uuid, DIGEST_ALG_BY_SIZE
|
||||||
from gluon.dal import FieldVirtual, FieldMethod
|
from gluon.dal import FieldVirtual, FieldMethod
|
||||||
|
from gluon.contrib import translitcodec
|
||||||
|
|
||||||
regex_isint = re.compile('^[+-]?\d+$')
|
regex_isint = re.compile('^[+-]?\d+$')
|
||||||
|
|
||||||
JSONErrors = (NameError, TypeError, ValueError, AttributeError,
|
JSONErrors = (NameError, TypeError, ValueError, AttributeError,
|
||||||
|
|||||||
Reference in New Issue
Block a user