projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
148657d
)
...actually commit the translation magic...
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 1 Jan 2008 21:03:32 +0000
(21:03 +0000)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 1 Jan 2008 21:03:32 +0000
(21:03 +0000)
src/common/main.cpp
patch
|
blob
|
history
diff --git
a/src/common/main.cpp
b/src/common/main.cpp
index
cb935e7
..
f6da8f5
100644
(file)
--- a/
src/common/main.cpp
+++ b/
src/common/main.cpp
@@
-76,15
+76,15
@@
int main(int argc, char **argv) {
QApplication app(argc, argv);
#endif
QApplication app(argc, argv);
#endif
- //Just for testing
- //QTranslator translator;
- //translator.load(":i18n/quassel_de");
- //app.installTranslator(&translator);
+ // Set up i18n support
+ QLocale locale = QLocale::system();
+ QTranslator translator;
+ translator.load(QString(":i18n/quassel_%1").arg(locale.name()));
+ app.installTranslator(&translator);
-
QCoreApplication::setOrganizationDomain("quassel-irc.org");
QCoreApplication::setApplicationName("Quassel IRC");
QCoreApplication::setOrganizationDomain("quassel-irc.org");
QCoreApplication::setApplicationName("Quassel IRC");
- QCoreApplication::setOrganizationName("Quassel IRC Development Team");
+ QCoreApplication::setOrganizationName("Quassel IRC Development Team");
// FIXME
#ifndef BUILD_QTUI
Core::instance(); // create and init the core
#ifndef BUILD_QTUI
Core::instance(); // create and init the core