Commit b7bdca4e authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

better export + try to have proper i18n without dupe

parent efaf2f99
......@@ -13,6 +13,9 @@ target_link_libraries(kate-bin PRIVATE kateprivate)
# ensure consistent SingleApplication usage
target_compile_definitions(kate-bin PUBLIC -DQAPPLICATION_CLASS=QApplication)
# ensure right translations domain
target_compile_definitions(externaltoolsplugin PRIVATE TRANSLATION_DOMAIN="kateprivate")
# we have different windows icons, less margins
set(ICONS_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/icons/unix)
if(WIN32)
......
#! /usr/bin/env bash
$EXTRACTRC `find . ../lib -name \*.rc -o -name \*.ui` >> rc.cpp || exit 11
$XGETTEXT `find . ../lib -name "*.cpp" -o -name "*.h"` -o $podir/kate.pot
$EXTRACTRC `find . -name \*.rc -o -name \*.ui` >> rc.cpp || exit 11
$XGETTEXT `find . -name "*.cpp" -o -name "*.h"` -o $podir/kate.pot
#! /usr/bin/env bash
$EXTRACTRC `find . ../lib -name \*.rc -o -name \*.ui` >> rc.cpp || exit 11
$XGETTEXT `find . ../lib -name "*.cpp" -o -name "*.h"` -o $podir/kwrite.pot
$EXTRACTRC `find . -name \*.rc -o -name \*.ui` >> rc.cpp || exit 11
$XGETTEXT `find . -name "*.cpp" -o -name "*.h"` -o $podir/kwrite.pot
......@@ -8,7 +8,7 @@ configure_file(config.h.in config.h)
include(GenerateExportHeader)
generate_export_header(
kateprivate
EXPORT_FILE_NAME katetests_export.h
EXPORT_FILE_NAME kateprivate_export.h
EXPORT_MACRO_NAME KATE_PRIVATE_EXPORT
)
......@@ -18,7 +18,7 @@ target_include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/session
${CMAKE_CURRENT_SOURCE_DIR}/quickopen
${CMAKE_CURRENT_BINARY_DIR} # katetests_export.h + config.h
${CMAKE_CURRENT_BINARY_DIR} # kateprivate_export.h + config.h
)
find_package(
......
#! /usr/bin/env bash
$EXTRACTRC `find . -name \*.rc -o -name \*.ui` >> rc.cpp || exit 11
$XGETTEXT `find . -name "*.cpp" -o -name "*.h"` -o $podir/kateprivate.pot
......@@ -10,7 +10,7 @@
#include <QRegularExpression>
#include <QStandardPaths>
#include "katetests_export.h"
#include "kateprivate_export.h"
/**
* small helper function to setup a QProcess based "git" command.
......
......@@ -18,9 +18,9 @@
#include "katedocmanager.h"
#include "katemainwindow.h"
#include "katepluginmanager.h"
#include "kateprivate_export.h"
#include "katesessionmanager.h"
#include "katestashmanager.h"
#include "katetests_export.h"
#include <KConfig>
#include <QList>
......
......@@ -10,8 +10,8 @@
#define __KATE_VIEWMANAGER_H__
#include "katedocmanager.h"
#include "kateprivate_export.h"
#include "katesplitter.h"
#include "katetests_export.h"
#include <QList>
#include <QMap>
......
......@@ -13,8 +13,8 @@
#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/view.h>
#include "kateprivate_export.h"
#include "katetabbar.h"
#include "katetests_export.h"
#include <QHash>
#include <QWidget>
......
......@@ -12,7 +12,7 @@
#include <QSortFilterProxyModel>
#include <QTreeView>
#include "katetests_export.h"
#include "kateprivate_export.h"
class QAbstractItemModel;
namespace KTextEditor
......
......@@ -7,7 +7,7 @@
#ifndef __KATE_SESSION_H__
#define __KATE_SESSION_H__
#include "katetests_export.h"
#include "kateprivate_export.h"
#include <QDateTime>
#include <QExplicitlySharedDataPointer>
......
......@@ -7,7 +7,7 @@
#ifndef __KATE_SESSIONS_ACTION_H__
#define __KATE_SESSIONS_ACTION_H__
#include "katetests_export.h"
#include "kateprivate_export.h"
#include <KActionMenu>
class KateSessionManager;
......
Supports Markdown
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