parent
5fd4b48538
commit
c1b0053ac8
13 changed files with 946 additions and 878 deletions
|
@ -67,9 +67,14 @@ QString GlobalString::getLanguageFile()
|
|||
{
|
||||
QString language = getLanguage();
|
||||
QString languageFile = ":/global/global." % language % ".ini";
|
||||
if (!QFileInfo::exists(languageFile)) {
|
||||
#if QT_VERSION >= 0x050200
|
||||
if (!QFileInfo::exists(languageFile))
|
||||
languageFile = ":/global/global.en.ini";
|
||||
}
|
||||
#else
|
||||
if (!QFileInfo(languageFile).exists())
|
||||
languageFile = ":/global/global.en.ini";
|
||||
#endif
|
||||
|
||||
return languageFile;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue