Mercurial > trustbridge
changeset 993:561cc777e0b6
Add failure indicator if translation load failed.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 01 Sep 2014 12:53:22 +0200 |
parents | a1e8ef2d7081 |
children | 8fb1b912fd8e |
files | ui/main.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/main.cpp Mon Sep 01 12:52:05 2014 +0200 +++ b/ui/main.cpp Mon Sep 01 12:53:22 2014 +0200 @@ -112,9 +112,11 @@ /* Useful for testing / development as the primary target is german */ translator.load(":/l10n/trustbridge_de_DE"); } else { - translator.load(":/l10n/trustbridge_" + QLocale::system().name()); qDebug() << "Loading translations for: " << "trustbridge_" + QLocale::system().name(); + if (!translator.load(":/l10n/trustbridge_" + QLocale::system().name())) { + qDebug() << "Failed."; + } } app.installTranslator(&translator); /*