Missing language strings should be logged as warnings, not errors.
This commit is contained in:
parent
4acd10d344
commit
f9ec8a4419
@ -166,7 +166,7 @@ class MultiLanguageObject(object):
|
|||||||
result = self.messages
|
result = self.messages
|
||||||
for field in fields:
|
for field in fields:
|
||||||
if field not in result:
|
if field not in result:
|
||||||
logging.error(
|
logging.debug(
|
||||||
"Please define self.message{f}".format(
|
"Please define self.message{f}".format(
|
||||||
f=''.join(
|
f=''.join(
|
||||||
'[\'{field}\']'.format(
|
'[\'{field}\']'.format(
|
||||||
@ -184,7 +184,7 @@ class MultiLanguageObject(object):
|
|||||||
if language not in result:
|
if language not in result:
|
||||||
language = 'en'
|
language = 'en'
|
||||||
if language not in result:
|
if language not in result:
|
||||||
logging.error(
|
logging.debug(
|
||||||
"Please define self.message{f}['en']".format(
|
"Please define self.message{f}['en']".format(
|
||||||
f=''.join(
|
f=''.join(
|
||||||
'[\'{field}\']'.format(
|
'[\'{field}\']'.format(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user