Commit d295af9b authored by Laurent Montel's avatar Laurent Montel 😁

Fix load translation

parent 04783bd8
......@@ -19,6 +19,7 @@ include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
include(ECMPoQmTools)
set(PIM_VERSION "5.2.80")
......@@ -27,7 +28,6 @@ set(KDGANTS_LIB_VERSION ${PIM_VERSION})
set(QT_REQUIRED_VERSION "5.5.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test PrintSupport)
ecm_setup_version(${KDGANTS_LIB_VERSION} VARIABLE_PREFIX KDGANTT2
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kdgantt2_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5KDGantt2ConfigVersion.cmake"
......
add_definitions(-DTRANSLATION_DOMAIN=\"kdgantt2\")
ecm_create_qm_loader(libkdgantt2_QM_LOADER kdgantt2)
# Those paths need to be absolute since this file is included from other CMakeLists.txt files
set(libkdgantt2_SRCS
kdganttabstractgrid.cpp
......@@ -21,6 +22,7 @@ kdganttstyleoptionganttitem.cpp
kdganttsummaryhandlingproxymodel.cpp
kdgantttreeviewrowcontroller.cpp
kdganttview.cpp
${libkdgantt2_QM_LOADER}
)
ecm_qt_declare_logging_category(libkdgantt2_SRCS HEADER kdgantt_debug.h IDENTIFIER KDGANTT_LOG CATEGORY_NAME log_kdgantt)
......
#! /bin/sh
$XGETTEXT_QT *.cpp *.h -o $podir/kdgantt2.pot
$EXTRACT_TR_STRINGS *.cpp *.h -o $podir/kdgantt2.pot
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment