mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
Use all xml files to figure out strings
This commit is contained in:
parent
292fb5cc59
commit
69619a5acf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user