From: Flavio Tordini Date: Wed, 29 Jul 2009 08:52:44 +0000 (+0200) Subject: Fixed translation loading X-Git-Tag: 0.5~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=474283c79b75a40dd7e7748b8cf016fb67eecc0c;p=minitube Fixed translation loading --- diff --git a/src/main.cpp b/src/main.cpp index ce8c76a..47302b0 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,7 +26,8 @@ int main(int argc, char **argv) { QString localeDir = dataDir + QDir::separator() + "locale"; // if app was not "installed" use the app directory if (!QFile::exists(localeDir)) { - dataDir = qApp->applicationDirPath() + QDir::separator() + "locale"; + localeDir = qApp->applicationDirPath() + QDir::separator() + "locale"; + // qDebug() << "Using locale dir" << localeDir << locale; } QTranslator translator; translator.load(locale, localeDir);