From: konrad Date: Sun, 27 Feb 2011 12:06:28 +0000 (+0000) Subject: make translation loading more accurate X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=808703ef3e1802126f1546bb527a38cd3b83ea0e;p=web%2Fkonrad%2Fsmoke.git make translation loading more accurate git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@737 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/main.cpp b/src/main.cpp index 155845e..d709f30 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -182,6 +183,21 @@ void MApplication::setMyStyle() } } +static inline void loadTranslation(QTranslator&trans,const QString&lang,const QString&prog) +{ + QStringList lpath; + lpath <