From: Flavio Date: Thu, 24 Oct 2013 20:04:01 +0000 (+0200) Subject: Mac locale inside Resources X-Git-Tag: 2.1.4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d497b13bca938cc95fe9e16f4a889a78a403a97;p=minitube Mac locale inside Resources --- diff --git a/src/main.cpp b/src/main.cpp index fe894e6..d26a9ff 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -77,7 +77,11 @@ int main(int argc, char **argv) { #else QString dataDir = ""; #endif +#ifdef APP_MAC + QString localeDir = qApp->applicationDirPath() + "/../Resources/locale"; +#else QString localeDir = qApp->applicationDirPath() + "/locale"; +#endif if (!QDir(localeDir).exists()) { localeDir = dataDir + "/locale"; }