enricofer / postgisQueryBuilder

6 stars 3 forks source link

internationalization of the plugin #20

Open FERRATON opened 3 years ago

FERRATON commented 3 years ago

Would it be possible to make the plugin easily translatable into other languages using the recommendations in the cookbook ? (https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins/plugins.html#translation )

enricofer commented 3 years ago

I created the internationalization infrastructure in inter branch https://github.com/enricofer/postgisQueryBuilder/tree/inter feel free to check it and add your favourite translation

FERRATON commented 3 years ago

As I have difficulties with the implementation in French I looked at your work for Italian. Here are some first remarks: The translated strings from the files : querysetbuilder.py, PSQL.py, TableSet.py are not taken into account.

See for example the contextual menu of the layers.

This may be due to the way intertionalization is implemented in these files, e.g. init_internationalization() which is repeated in each class does not seem to be called by the class constructor.

I should point out that my experience with plugin development is limited.

FERRATON commented 3 years ago

I'm still interested in getting a French version. Do you think you will come back to the issue of internationalization of the plugin?