mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Retrieve 'license' field from app manifest
This commit is contained in:
parent
3815bb5557
commit
e3f27e01e0
3 changed files with 8 additions and 0 deletions
6
app.py
6
app.py
|
@ -175,6 +175,9 @@ def app_list(offset=None, limit=None, filter=None, raw=False):
|
||||||
'id': app_id,
|
'id': app_id,
|
||||||
'name': app_info['manifest']['name'],
|
'name': app_info['manifest']['name'],
|
||||||
'description': app_info['manifest']['description'],
|
'description': app_info['manifest']['description'],
|
||||||
|
# FIXME: Temporarly allow undefined license
|
||||||
|
'license': app_info['manifest'].get('license',
|
||||||
|
m18n.n('license_undefined')),
|
||||||
'installed': installed
|
'installed': installed
|
||||||
})
|
})
|
||||||
i += 1
|
i += 1
|
||||||
|
@ -209,6 +212,9 @@ def app_info(app, raw=False):
|
||||||
return {
|
return {
|
||||||
'name': app_info['manifest']['name'],
|
'name': app_info['manifest']['name'],
|
||||||
'description': app_info['manifest']['description']['en'],
|
'description': app_info['manifest']['description']['en'],
|
||||||
|
# FIXME: Temporarly allow undefined license
|
||||||
|
'license': app_info['manifest'].get('license',
|
||||||
|
m18n.n('license_undefined')),
|
||||||
#TODO: Add more infos
|
#TODO: Add more infos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"installation_complete" : "Installation complete",
|
"installation_complete" : "Installation complete",
|
||||||
"installation_failed" : "Installation failed",
|
"installation_failed" : "Installation failed",
|
||||||
|
|
||||||
|
"license_undefined" : "undefined",
|
||||||
"no_appslist_found" : "No apps list found",
|
"no_appslist_found" : "No apps list found",
|
||||||
"custom_appslist_name_required" : "You must provide a name for your custom apps list",
|
"custom_appslist_name_required" : "You must provide a name for your custom apps list",
|
||||||
"appslist_retrieve_error" : "Unable to retrieve the remote apps list",
|
"appslist_retrieve_error" : "Unable to retrieve the remote apps list",
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"installation_complete" : "Installation terminée",
|
"installation_complete" : "Installation terminée",
|
||||||
"installation_failed" : "Échec de l'installation",
|
"installation_failed" : "Échec de l'installation",
|
||||||
|
|
||||||
|
"license_undefined" : "indéfinie",
|
||||||
"no_appslist_found" : "Aucune liste d'applications trouvée",
|
"no_appslist_found" : "Aucune liste d'applications trouvée",
|
||||||
"custom_appslist_name_required" : "Vous devez spécifier un nom pour votre liste d'applications personnalisée",
|
"custom_appslist_name_required" : "Vous devez spécifier un nom pour votre liste d'applications personnalisée",
|
||||||
"appslist_retrieve_error" : "Impossible de récupérer la liste d'applications distante",
|
"appslist_retrieve_error" : "Impossible de récupérer la liste d'applications distante",
|
||||||
|
|
Loading…
Add table
Reference in a new issue