From: Daniel Martí Date: Mon, 8 Jul 2013 13:24:48 +0000 (+0200) Subject: Use all xml files to figure out strings X-Git-Tag: 0.1~514 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=69619a5acf5ef67fc09e5378ff2cd1d06d24dc4c;p=fdroidserver.git Use all xml files to figure out strings --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index ce6177e5..ebf23eb9 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -864,7 +864,7 @@ def description_html(lines,linkres): def retrieve_string(app_dir, string_id): string_search = re.compile(r'.*"'+string_id+'".*>([^<]+?)<.*').search for xmlfile in glob.glob(os.path.join( - app_dir, 'res', 'values', '*string*.xml')): + app_dir, 'res', 'values', '*.xml')): for line in file(xmlfile): matches = string_search(line) if matches: