apply translation strings to good translations
This commit is contained in:
parent
033385d6e8
commit
718f7c1332
|
@ -245,3 +245,17 @@ def isNumerical(s):
|
|||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
def applyGoodTranslations():
|
||||
for t in Translation.objects.all():
|
||||
if t.string_trans.strip() != '':
|
||||
string = t.string
|
||||
trans = t.string_trans
|
||||
print trans
|
||||
for g in Good.objects.filter(description_string=string):
|
||||
g.description_string_trans = trans
|
||||
g.save()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user