mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +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):
|
def retrieve_string(app_dir, string_id):
|
||||||
string_search = re.compile(r'.*"'+string_id+'".*>([^<]+?)<.*').search
|
string_search = re.compile(r'.*"'+string_id+'".*>([^<]+?)<.*').search
|
||||||
for xmlfile in glob.glob(os.path.join(
|
for xmlfile in glob.glob(os.path.join(
|
||||||
app_dir, 'res', 'values', '*string*.xml')):
|
app_dir, 'res', 'values', '*.xml')):
|
||||||
for line in file(xmlfile):
|
for line in file(xmlfile):
|
||||||
matches = string_search(line)
|
matches = string_search(line)
|
||||||
if matches:
|
if matches:
|
||||||
|
Loading…
Reference in New Issue
Block a user