PDA

View Full Version : QTranslator and polish signs



damon_1990
11th December 2011, 22:04
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"));


and in .pro file:


CODECFORTR = UTF-8
CODECFORSRC = UTF-8

.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>


I use linux and:


lupdate version 4.7.0
lrelease version 4.7.0

Does anyone know what I'm doing wrong?