From 3d497b13bca938cc95fe9e16f4a889a78a403a97 Mon Sep 17 00:00:00 2001 From: Flavio Date: Thu, 24 Oct 2013 22:04:01 +0200 Subject: [PATCH] Mac locale inside Resources --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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"; } -- 2.39.2