[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. 3d0cce9b7d511a7e0eaf031126c6aaf000084b06
Sune Vuorela
pusling-guest at alioth.debian.org
Mon Feb 23 22:05:39 UTC 2009
The following commit has been merged in the master branch:
commit 3d0cce9b7d511a7e0eaf031126c6aaf000084b06
Author: Sune Vuorela <sune at vuorela.dk>
Date: Mon Feb 23 23:05:36 2009 +0100
load translations
diff --git a/main.cpp b/main.cpp
index 34b31bd..38f7cfd 100644
--- a/main.cpp
+++ b/main.cpp
@@ -30,6 +30,16 @@ int main(int argc, char* argv[])
}
QApplication app(argc,argv);
+
+ QString locale = QLocale::system().name();
+
+ QTranslator translator;
+ if(!translator.load(QString("kaboom_") + locale))
+ {
+ qDebug() << "loading translation failed";
+ }
+ app.installTranslator(&translator);
+
MigrationTool main;
main.show();
int exitvalue = app.exec();
--
Kaboom - Debian KDE 3->4 migration tool
More information about the pkg-kde-commits
mailing list