1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 23:23:27 +02:00

Use all xml files to figure out strings

This commit is contained in:
Daniel Martí 2013-07-08 15:24:48 +02:00
parent 292fb5cc59
commit 69619a5acf

View File

@ -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: