mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 07:52:35 +03:00
Use all xml files to figure out strings
This commit is contained in:
parent
292fb5cc59
commit
69619a5acf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue