aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaUtils.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-21 14:29:14 -0400
committerKen Moore <moorekou@gmail.com>2015-07-21 14:29:14 -0400
commitb5e828986f0a668ce8471e0fbea7d75b373eef13 (patch)
tree6295015b71cb27135322424a046535ae614a7cfe /libLumina/LuminaUtils.h
parentUpdate/add some localization functions to libLumina. (diff)
downloadlumina-b5e828986f0a668ce8471e0fbea7d75b373eef13.tar.gz
lumina-b5e828986f0a668ce8471e0fbea7d75b373eef13.tar.bz2
lumina-b5e828986f0a668ce8471e0fbea7d75b373eef13.zip
Change a bit more of the localization/translation mechanisms: Now it is possible to save the translator for use later (instead of always installing a new QTranslator).
Diffstat (limited to 'libLumina/LuminaUtils.h')
-rw-r--r--libLumina/LuminaUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libLumina/LuminaUtils.h b/libLumina/LuminaUtils.h
index ba161436..6dcb9d45 100644
--- a/libLumina/LuminaUtils.h
+++ b/libLumina/LuminaUtils.h
@@ -49,7 +49,7 @@ public:
static QStringList imageExtensions();
//Load a translation file for a Lumina Project
- static void LoadTranslation(QApplication *app, QString appname, QString locale = "");
+ static QTranslator* LoadTranslation(QApplication *app, QString appname, QString locale = "", QTranslator *cTrans = 0);
//Other localization shortcuts
static QStringList knownLocales(); //Note: This only lists locales known to Lumina (so the i18n files need to be installed)
static void setLocaleEnv(QString lang, QString msg="", QString time="", QString num="" ,QString money="",QString collate="", QString ctype="");
bgstack15