fixed bug in language file that corrupts files on language update, thanks kverdecia2
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
- Support for Google App Engine projections, thanks Christian
|
- Support for Google App Engine projections, thanks Christian
|
||||||
- Field(... 'upload', default=path) now accepts a path to a local file as default value, if user does not upload a file. Relative path looks inside current application folder, thanks Marin
|
- Field(... 'upload', default=path) now accepts a path to a local file as default value, if user does not upload a file. Relative path looks inside current application folder, thanks Marin
|
||||||
- executesql(...,fields=,columns=) allows parsing of results in Rows, thanks Anthony
|
- executesql(...,fields=,columns=) allows parsing of results in Rows, thanks Anthony
|
||||||
|
- Rows.find(lambda row: bool(), limitby=(0,1))
|
||||||
|
|
||||||
### Auth improvements
|
### Auth improvements
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
Version 2.0.5 (2012-09-01 07:01:32) stable
|
Version 2.0.5 (2012-09-01 22:32:08) stable
|
||||||
|
|||||||
@@ -70,7 +70,9 @@
|
|||||||
'inspect attributes': 'inspect attributes',
|
'inspect attributes': 'inspect attributes',
|
||||||
'Install': 'Install',
|
'Install': 'Install',
|
||||||
'Installed applications': 'Installed applications',
|
'Installed applications': 'Installed applications',
|
||||||
|
'invalid password.': 'invalid password.',
|
||||||
'Key bindings': 'Key bindings',
|
'Key bindings': 'Key bindings',
|
||||||
|
'Language files (static strings) updated': 'Language files (static strings) updated',
|
||||||
'languages': 'languages',
|
'languages': 'languages',
|
||||||
'Languages': 'Languages',
|
'Languages': 'Languages',
|
||||||
'Last saved on:': 'Last saved on:',
|
'Last saved on:': 'Last saved on:',
|
||||||
@@ -107,6 +109,7 @@
|
|||||||
'Save via Ajax': 'Save via Ajax',
|
'Save via Ajax': 'Save via Ajax',
|
||||||
'Saved file hash:': 'Saved file hash:',
|
'Saved file hash:': 'Saved file hash:',
|
||||||
'session': 'session',
|
'session': 'session',
|
||||||
|
'session expired': 'session expired',
|
||||||
'shell': 'shell',
|
'shell': 'shell',
|
||||||
'Site': 'Site',
|
'Site': 'Site',
|
||||||
'Start wizard': 'Start wizard',
|
'Start wizard': 'Start wizard',
|
||||||
|
|||||||
+1
-1
@@ -3584,7 +3584,7 @@ INGRES_SEQNAME='ii***lineitemsequence' # NOTE invalid database object name
|
|||||||
# to be a delimited identifier)
|
# to be a delimited identifier)
|
||||||
|
|
||||||
class IngresAdapter(BaseAdapter):
|
class IngresAdapter(BaseAdapter):
|
||||||
drivers = ('ingredbi',)
|
drivers = ('ingresdbi',)
|
||||||
|
|
||||||
types = {
|
types = {
|
||||||
'boolean': 'CHAR(1)',
|
'boolean': 'CHAR(1)',
|
||||||
|
|||||||
+5
-4
@@ -800,8 +800,8 @@ def findT(path, language='en'):
|
|||||||
"""
|
"""
|
||||||
must be run by the admin app
|
must be run by the admin app
|
||||||
"""
|
"""
|
||||||
filename = ospath.join(path, 'languages', language + '.py')
|
lang_file = ospath.join(path, 'languages', language + '.py')
|
||||||
sentences = read_dict(filename)
|
sentences = read_dict(lang_file)
|
||||||
mp = ospath.join(path, 'models')
|
mp = ospath.join(path, 'models')
|
||||||
cp = ospath.join(path, 'controllers')
|
cp = ospath.join(path, 'controllers')
|
||||||
vp = ospath.join(path, 'views')
|
vp = ospath.join(path, 'views')
|
||||||
@@ -830,8 +830,9 @@ def findT(path, language='en'):
|
|||||||
'en' if language in ('default', 'en') else language)
|
'en' if language in ('default', 'en') else language)
|
||||||
if not '!langname!' in sentences:
|
if not '!langname!' in sentences:
|
||||||
sentences['!langname!'] = (
|
sentences['!langname!'] = (
|
||||||
'English' if language in ('default', 'en') else sentences['!langcode!'])
|
'English' if language in ('default', 'en')
|
||||||
write_dict(filename, sentences)
|
else sentences['!langcode!'])
|
||||||
|
write_dict(lang_file, sentences)
|
||||||
|
|
||||||
### important to allow safe session.flash=T(....)
|
### important to allow safe session.flash=T(....)
|
||||||
def lazyT_unpickle(data):
|
def lazyT_unpickle(data):
|
||||||
|
|||||||
Reference in New Issue
Block a user