From 349a42cf16f004b6392d78298e082ee6d8b082fe Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 18 Jun 2014 02:49:07 +0200 Subject: [PATCH] Port libraries to translation domains --- core/CMakeLists.txt | 2 ++ core/daemon.cpp | 3 --- plugins/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index da0fb0cb1..b2d0d89be 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -1,5 +1,7 @@ project(KDEConnectCore) +add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\") + include_directories( ${QJSON_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR} diff --git a/core/daemon.cpp b/core/daemon.cpp index cc887b62c..9b4673359 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -41,9 +41,6 @@ #include "backends/devicelink.h" #include "backends/linkprovider.h" -static const KCatalogLoader loader("kdeconnect-core"); -static const KCatalogLoader loaderPlugins("kdeconnect-plugins"); - struct DaemonPrivate { //Different ways to find devices and connect to them diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index e4eeb0e8d..bac4a9b2c 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,4 +1,5 @@ include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}/core ${QCA2_INCLUDE_DIR}) +add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-plugins\") install(FILES kdeconnect_plugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) add_subdirectory(ping)