[fix] Return the description for current locale only in app_list

This commit is contained in:
Jérôme Lebleu 2014-11-08 14:25:06 +01:00
parent fd8e3d3d0a
commit a9975edaf7

3
app.py
View file

@ -174,7 +174,8 @@ def app_list(offset=None, limit=None, filter=None, raw=False):
list_dict.append({ list_dict.append({
'id': app_id, 'id': app_id,
'name': app_info['manifest']['name'], 'name': app_info['manifest']['name'],
'description': app_info['manifest']['description'], 'description': _value_for_locale(
app_info['manifest']['description']),
# FIXME: Temporarly allow undefined license # FIXME: Temporarly allow undefined license
'license': app_info['manifest'].get('license', 'license': app_info['manifest'].get('license',
m18n.n('license_undefined')), m18n.n('license_undefined')),