From 808703ef3e1802126f1546bb527a38cd3b83ea0e Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 27 Feb 2011 12:06:28 +0000 Subject: [PATCH] make translation loading more accurate git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@737 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/main.cpp | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) 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 <