1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 19:10:11 +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:
Hans-Christoph Steiner 2017-06-02 13:41:04 +02:00
parent 43d3a9c7a5
commit 37c3bf304c

View File

@ -717,15 +717,15 @@ def insert_localized_app_metadata(apps):
continue continue
locale = segments[-1] locale = segments[-1]
for f in files: 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', _set_localized_text_entry(apps[packageName], locale, 'description',
os.path.join(root, f)) os.path.join(root, f))
continue continue
elif f == 'short_description.txt': elif f in ('summary.txt', 'short_description.txt'):
_set_localized_text_entry(apps[packageName], locale, 'summary', _set_localized_text_entry(apps[packageName], locale, 'summary',
os.path.join(root, f)) os.path.join(root, f))
continue continue
elif f == 'title.txt': elif f in ('name.txt', 'title.txt'):
_set_localized_text_entry(apps[packageName], locale, 'name', _set_localized_text_entry(apps[packageName], locale, 'name',
os.path.join(root, f)) os.path.join(root, f))
continue continue