apply translation strings to good translations

This commit is contained in:
Sanj 2012-02-18 18:59:40 +05:30
parent 033385d6e8
commit 718f7c1332

View File

@ -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()