Hi, I want to translate my program to english, but there is a problem with polish signs.
I can't translate strings which contain polish signs, like 'ó', 'ł', 'ż'. For example, when I run the program, QTranslator changes "Edycja" to "Edit", but doesn't change the "Menu główne" to "Main menu".
I have set:
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
To copy to clipboard, switch view to plain text mode
and in .pro file:
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
To copy to clipboard, switch view to plain text mode
.ts file:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en_US" sourcelanguage="pl_PL">
<defaultcodec>UTF-8</defaultcodec>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en_US" sourcelanguage="pl_PL">
<defaultcodec>UTF-8</defaultcodec>
To copy to clipboard, switch view to plain text mode
I use linux and:
lupdate version 4.7.0
lrelease version 4.7.0
lupdate version 4.7.0
lrelease version 4.7.0
To copy to clipboard, switch view to plain text mode
Does anyone know what I'm doing wrong?
Bookmarks