3liz / qgis-pgmetadata-plugin

QGIS Plugin to manage some metadata from PostgreSQL layer
GNU General Public License v2.0
12 stars 10 forks source link

Tests - Add translation test about glossary #51

Closed Gustry closed 3 years ago

Gustry commented 3 years ago

@mdouchin you wrote

use the new version of the function SELECT pgmetadata.get_dataset_item_html_content('{schema}', '{table}', '{locale}'); with a try / catch (and use the old one if the first failed SELECT pgmetadata.get_dataset_item_html_content('{schema}', '{table}');

If the language does not exist, the query is not failing @mdouchin, only the content is empty. So it does not make it easy to know if the language is supported for now.

What would be the behavior you wanted ?

Gustry commented 3 years ago

I think @mdouchin We should just always default to english if

So we have a single query, even on the module side.

What do you think ?