Mercurial > trustbridge
diff ui/main.cpp @ 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 | 574cd1fae1dc |
children | fe2c6666b462 |
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); /*