I'm a fan of Qt and update it frequently, Qt5.1->5.2->5.3.
However, the tranalations of Standard buttons like "Ok" "Cancel" "Save" do not work anymore in Qt5.3. They are not translated, but just plain English.
The Code for translations does NOT change through each version of Qt. like:
TRANSLATIONS = qt_fr.ts
QTranslator trans
trans.load("qt_fr");
a.installTranslator(&trans);
any idea?
[Update] AFAIN, it might be a bug. Go back to Qt5.1 is a slution if U dont have to use some improvements in new Qts.
I had the same problem and got it to work with an updated translation file. I am not sure if this is the intended behaviour, but my
qt_de.qm
has a filesize of only 1kB. There is however a file calledqtbase_de.qm
now (154kB) which seems to do the trick.This is source of qt_ru:
Therefore, it is necessary to deploy application with all these translation files. If at least one file is missing, the translation
qt_ru
will not load.Starting from Qt5.3 the
qt_*.qm
is divided into multiple files (qt*_*.qm
) and now you have to copyqtbase_*.qm
to translation directory and use together.