diff --git a/tools/onlinequoteseditor/CMakeLists.txt b/tools/onlinequoteseditor/CMakeLists.txt index a316fc6..c1d6c69 100644 --- a/tools/onlinequoteseditor/CMakeLists.txt +++ b/tools/onlinequoteseditor/CMakeLists.txt @@ -1,48 +1,48 @@ add_subdirectory(icons) include_directories( ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src ) set(SOURCES main.cpp mainwindow.cpp ) set(HEADERS mainwindow.h ) set(UI mainwindow.ui ) ki18n_wrap_ui(SOURCES ${UI} ) ecm_add_app_icon(SOURCES ICONS icons/16-apps-onlinequoteseditor.png icons/22-apps-onlinequoteseditor.png icons/32-apps-onlinequoteseditor.png icons/48-apps-onlinequoteseditor.png icons/64-apps-onlinequoteseditor.png icons/128-apps-onlinequoteseditor.png ) ecm_add_executable(onlinequoteseditor ${SOURCES} ${HEADERS}) if(BUILD_QT4) set(LIBS ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_USE_LIBSPREFIX}Core ${QT_USE_LIBSPREFIX}Network ${QT_USE_LIBSPREFIX}WebKit) else() set(LIBS Qt5::Widgets Qt5::WebKitWidgets KF5::KDELibs4Support) - add_definitions(-DTRANSLATION_DOMAIN=\"onlinequoteeditor\") + add_definitions(-DTRANSLATION_DOMAIN=\"onlinequoteseditor\") endif() target_link_libraries(onlinequoteseditor alkimia alkimia-internal ${LIBS} ) install(TARGETS onlinequoteseditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES org.kde.onlinequoteeditor.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) diff --git a/tools/onlinequoteseditor/Messages.sh b/tools/onlinequoteseditor/Messages.sh index bdaa73c..0ad7f14 100644 --- a/tools/onlinequoteseditor/Messages.sh +++ b/tools/onlinequoteseditor/Messages.sh @@ -1,11 +1,11 @@ #!bin/sh # invoke the extractrc script on all .ui, .rc, and .kcfg files in the sources # the results are stored in a pseudo .cpp file to be picked up by xgettext. $EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp # call xgettext on all source files. If your sources have other filename # extensions besides .cpp, and .h, just add them in the find call. -$XGETTEXT `find . -name \*.cpp -o -name \*.h -o -name \*.qml` -o $podir/onlinequoteeditor.pot +$XGETTEXT `find . -name \*.cpp -o -name \*.h -o -name \*.qml` -o $podir/onlinequoteseditor.pot # Remove these two generated files again rm rc.cpp diff --git a/tools/onlinequoteseditor/main.cpp b/tools/onlinequoteseditor/main.cpp index e3c61bf..3f121f1 100644 --- a/tools/onlinequoteseditor/main.cpp +++ b/tools/onlinequoteseditor/main.cpp @@ -1,49 +1,49 @@ /*************************************************************************** * Copyright 2018 Ralf Habacker * * * * This file is part of libalkimia. * * * * libalkimia is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2.1 of * * the License or (at your option) version 3 or any later version. * * * * libalkimia is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see * ***************************************************************************/ #include "mainwindow.h" #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) #define KABOUTDATA_H #include #define KAboutData K4AboutData #else #include #endif #include #include int main(int argc, char **argv) { KAboutData about("onlinequoteseditor", - "onlinequoteeditor", + "onlinequoteseditor", ki18n("Online Quotes Editor"), "1.0", ki18n("Editor for online price quotes used by finance applications"), KAboutData::License_GPL, ki18n("(C) 2018-2019 Ralf Habacker")); KCmdLineArgs::init(argc, argv, &about); KApplication app(true); MainWindow w; w.show(); return app.exec(); }