ckan / ckanext-showcase

A ckan extension to showcase datasets in use
GNU Affero General Public License v3.0
43 stars 77 forks source link

i18n translation file is missing "Plural-Forms" field #108

Open pduchesne opened 3 years ago

pduchesne commented 3 years ago

The Plural-Forms field is expected in the i18n metadata (cf ckan i18n lib : https://github.com/ckan/ckan/blob/67376681491f2808fae56920f757c4b594b58284/ckan/lib/i18n.py#L339)

The translation file in showcase is missing that field, causing the server to crash with a KeyError .

This can go unnoticed if the showcase plugin is not the first one in the order of declared plugins during the call to _build_js_translation (codeline above).