mirror of
https://github.com/yweber/lodel2.git
synced 2026-07-30 01:23:26 +02:00
mlstring: empty mlstring should be an empty string
This commit is contained in:
parent
c779ede921
commit
50fb6fa1fd
1 changed files with 4 additions and 1 deletions
|
|
@ -18,7 +18,10 @@ class MlString(object):
|
|||
self.translations[lang] = text
|
||||
|
||||
def __str__(self):
|
||||
if self.translations:
|
||||
return json.dumps(self.translations)
|
||||
else:
|
||||
return ""
|
||||
|
||||
@staticmethod
|
||||
def load(json_string):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue