summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/utils.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-06-19 14:29:32 +0200
committerKai Koehne <kai.koehne@theqtcompany.com>2015-06-30 08:47:39 +0000
commit360a8c20aa1c1c6980a033956ff79bac54d246e5 (patch)
tree3d8648c632230685915ab329d280973323023321 /src/libs/installer/utils.h
parent0f114d791574e6cd6fa17b65d34f97e5a670d854 (diff)
Unify handling of translations
Mimic the logic implemented in installerbase/QTranslator::load() by - using QLocale().uiLanguages() - splitting up the locales into candidates (first en-US, then en ...) - implicitly assuming the default is English Task-number: QTIFW-390 Change-Id: I294288d5fc739ebf12c93a0e1a43d613b3834721 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/utils.h')
-rw-r--r--src/libs/installer/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/utils.h b/src/libs/installer/utils.h
index f0a70e11c..0fa6f2983 100644
--- a/src/libs/installer/utils.h
+++ b/src/libs/installer/utils.h
@@ -66,6 +66,8 @@ namespace QInstaller {
QString createCommandline(const QString &program, const QStringList &arguments);
#endif
+ QStringList INSTALLER_EXPORT localeCandidates(const QString &locale);
+
void INSTALLER_EXPORT setVerbose(bool v);
bool INSTALLER_EXPORT isVerbose();