diff --git a/app.py b/app.py index c3df03a34..4e2e4763c 100644 --- a/app.py +++ b/app.py @@ -175,6 +175,9 @@ def app_list(offset=None, limit=None, filter=None, raw=False): 'id': app_id, 'name': app_info['manifest']['name'], 'description': app_info['manifest']['description'], + # FIXME: Temporarly allow undefined license + 'license': app_info['manifest'].get('license', + m18n.n('license_undefined')), 'installed': installed }) i += 1 @@ -209,6 +212,9 @@ def app_info(app, raw=False): return { 'name': app_info['manifest']['name'], '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 } diff --git a/locales/en.json b/locales/en.json index 384d2c66b..ff70d9202 100644 --- a/locales/en.json +++ b/locales/en.json @@ -6,6 +6,7 @@ "installation_complete" : "Installation complete", "installation_failed" : "Installation failed", + "license_undefined" : "undefined", "no_appslist_found" : "No apps list found", "custom_appslist_name_required" : "You must provide a name for your custom apps list", "appslist_retrieve_error" : "Unable to retrieve the remote apps list", diff --git a/locales/fr.json b/locales/fr.json index e49a6ae1c..7be62fde1 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -6,6 +6,7 @@ "installation_complete" : "Installation terminée", "installation_failed" : "Échec de l'installation", + "license_undefined" : "indéfinie", "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", "appslist_retrieve_error" : "Impossible de récupérer la liste d'applications distante",