[Qgis-developer] Translation plugin (accents)

jawensi jawensi at gmail.com
Tue Aug 18 03:35:21 PDT 2015


Hello, I have developped a plugin in Spanish and I want to translate it to
English. I have problems with accented words in the class that describe the
interface, which I compilate from *.ui to *.py.

This is a fragment of the .ts file, which doesn't work:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en_US" sourcelanguage="es_ES">
<context>
    <name>DEMto3DDialogBase</name>
    <message>
        <location filename="DEMto3D_dialog_base.py" line="342"/>
        <source>Extensión a imprimir</source>
        <translation>Print Extension</translation>
    </message>
</context>
....

In the class 'DEMto3DDialogBase' show like this inside the function 'def
retranslateUi':
/self.groupBox_2.setTitle(_translate("DEMto3DDialogBase", u"Extensión a
imprimir", None))/

Any idea if I was missing something.

Thank you.




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Translation-plugin-accents-tp5220118.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list