mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
support fdroid names in filenames for localized texts
* "full description" is just "description" * "short description" is "summary" * "title" is "name"
This commit is contained in:
parent
43d3a9c7a5
commit
37c3bf304c
@ -717,15 +717,15 @@ def insert_localized_app_metadata(apps):
|
||||
continue
|
||||
locale = segments[-1]
|
||||
for f in files:
|
||||
if f == 'full_description.txt':
|
||||
if f in ('description.txt', 'full_description.txt'):
|
||||
_set_localized_text_entry(apps[packageName], locale, 'description',
|
||||
os.path.join(root, f))
|
||||
continue
|
||||
elif f == 'short_description.txt':
|
||||
elif f in ('summary.txt', 'short_description.txt'):
|
||||
_set_localized_text_entry(apps[packageName], locale, 'summary',
|
||||
os.path.join(root, f))
|
||||
continue
|
||||
elif f == 'title.txt':
|
||||
elif f in ('name.txt', 'title.txt'):
|
||||
_set_localized_text_entry(apps[packageName], locale, 'name',
|
||||
os.path.join(root, f))
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user