[Qgis-developer] comboxdelagate and translator list

Enzo Cocca enzo.ccc at gmail.com
Wed Apr 8 06:04:28 PDT 2015


Hi peoples,

I have a question:

I have a list of words in an comboxdelegate ( the words are in italian) :

*valuesRS.=["ciao", "buongiorno", "buonasera, ""]*
* self.delegateRS = ComboBoxDelegate()*
* self.delegateRS.def_values(valuesRS)*
* self.delegateRS.def_editable('False')*
* self.tableWidget_rapporti.setItemDelegateForColumn(0,self.delegateRS)*

If I want translate in English when I set QGIS in English
How can to make?

I dont know If I need to use QCore.QLocale or QTranslator

thanks a lot!!

EC

-- 
Enzo Cocca PhD
in "Science and Technology for Archaeology and Cultural Heritage"
mail: enzo.ccc at gmail.com
cell: +393495087014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150408/0e6bae69/attachment.html>


More information about the Qgis-developer mailing list