elpaso / qgis-formawarevaluerelationwidget

A Form-Aware Value Relation Widget plugin for QGIS
6 stars 8 forks source link

The Form Value Relation is not installed properly #3

Closed 9ls1 closed 8 years ago

9ls1 commented 8 years ago

Thanks for creating this widget that I really would like to use. But, something's wrong. I'm using QGIS 2.12.3 having Norwegian as the language. After installing the plugin, the widget name appears in the list but the "widget" is empty - no input is shown. 2016-02-22 20_13_15-rediger egenskaper for programtillegg - veg1 2212-2_f Any idea how to solve this? Install English version of QGIS? (the Norwegian version is installed automatically, I'm not choosing language during installation.)

elpaso commented 8 years ago

Honestly, I checked only english and italian and there are no problems with both.

You can change temporarily your language under settings -> options -> locale (and restart QGIS).

Please let me know if that works.

9ls1 commented 8 years ago

Beautiful! That did the trick, thanks!

elpaso commented 8 years ago

Still, I would like to know why that happens...

elpaso commented 8 years ago

Can you please try to change: https://github.com/elpaso/qgis-formawarevaluerelationwidget/blob/master/FormAwareValueRelationWidget.py#L51

to just return text?

like:

def tr(text):
    return text
luipir commented 8 years ago

works under Ubuntu 15.10 with spanish translation

elpaso commented 8 years ago

@luipir thanks for testing, so far seems to fail in norvegian (windows) and finnish (unknown O.S.)

9ls1 commented 8 years ago

@elpaso changing line 51 as you suggest seems to work. I carried out the changes in code, set the language to Norwegian and restartet QGIS. Form Value Relation appeared correctly: 2016-02-22 21_22_28-the form value relation is not installed properly issue 3 elpaso_qgis-forma

elpaso commented 8 years ago

Thanks for testing... I'll check it out and make a new release!