summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Schwarzer <[email protected]>2016-01-06 07:57:33 +0100
committerFrederik Schwarzer <[email protected]>2016-01-06 07:57:33 +0100
commit07a80623daa027da4ddcf194777d40702b309dce (patch)
tree27fa2d932acd5b61484c4cc7c77e42038fb5ce09
parent4da5cc91176fe1cb9fc7267342fcd85ae844f886 (diff)
Use setApplicationDomain(), TRANSLATION_DOMAIN is for libraries.
-rw-r--r--CMakeLists.txt3
-rw-r--r--src/main.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 254add0..36410a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,9 +59,6 @@ if(OPENGL_SUPPORT)
add_definitions(-DOPENGL_SUPPORT)
endif(OPENGL_SUPPORT)
-add_definitions(-DTRANSLATION_DOMAIN="ksudoku")
-
-
add_subdirectory( src )
add_subdirectory( doc )
diff --git a/src/main.cpp b/src/main.cpp
index 4f01bb4..d07cc94 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -63,6 +63,8 @@ int main(int argc, char **argv)
KCmdLineArgs::addCmdLineOptions(options);
KApplication app;
+ KLocalizedString::setApplicationDomain("ksudoku");
+
// register ourselves as a dcop client
// app.dcopClient()->registerAs(app.name(), false); //TODO PORT