0

I have a Qt Linguist *.ts file like:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de_DE" sourcelanguage="en_GB">
<context>
    <name></name>
    <message>
        <location filename="classWithStaticMethod.cpp" line="60"/>
        <source>File</source>
        <translation>Datei</translation>
    </message>
</context>
</TS>

How do I enter a translation object with a static method.

ClassWithStaticMethod.cpp has a static method where a QT_TR_NOOP("File")

occurs at line 60 for instance. Leaving the name tags empty does nott work.

Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
  • Please Insert you code specifically the part that throw that error. – dev-masih Nov 03 '15 at 12:41
  • @MasihAkbari There is no error. I created a translation file for a class which contains '''static''' methods only. My application does not translate within that class. – Ralf Wickum Nov 03 '15 at 12:55

0 Answers0