thanks
loadReturn=false. So it can translate.Code:
bool loadReturn=translator.load(locale);
Why is loadReturn =flase not true???
mycomputer can't run above commands.
Printable View
That code doesn't appear in the hellotr example. Anyway, upon reading the friendly manual (QTranslator::load()) I discover that:
What is the value of the variable locale? Does it correspond to a *.qm file?Quote:
Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.