From 2ccc62618474149847b284f469c693bd9f41dff9 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 7 May 2009 00:36:37 +0300 Subject: [PATCH] Translate: fix import of superfluous ids. bzr revid: p_christ@hol.gr-20090506213637-y473wcgc6qvxbdyc --- bin/tools/translate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index d6e4a7c5270..0af189b84c7 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -713,6 +713,8 @@ def trans_load_data(db_name, fileobj, fileformat, lang, strict=False, lang_name= # if the resource id (res_id) is in that list, use it, # otherwise use the whole list + if not ids: + ids = [] ids = (dic['res_id'] in ids) and [dic['res_id']] or ids for id in ids: dic['res_id'] = id