Commit d748d272 authored by Thomas Baumgart's avatar Thomas Baumgart Committed by Thomas Baumgart
Browse files

Combine QIF KCModule into a single desktop file

parent 85d0972e
Pipeline #90632 passed with stage
in 17 minutes and 25 seconds
......@@ -7,23 +7,11 @@ set(kcm_qif_PART_SRCS
ki18n_wrap_ui(kcm_qif_PART_SRCS mymoneyqifprofileeditor.ui)
#dirty hack: kcm_qif doesn't need json but build fails if it isn't found
if(ENABLE_QIFIMPORTER)
kcoreaddons_add_plugin(kcm_qif
SOURCES ${kcm_qif_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
elseif(ENABLE_QIFEXPORTER)
kcoreaddons_add_plugin(kcm_qif
SOURCES ${kcm_qif_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
endif()
if(ENABLE_QIFIMPORTER)
kcoreaddons_desktop_to_json(kcm_qif kcm_qifimporter.desktop)
endif()
if(ENABLE_QIFEXPORTER)
kcoreaddons_desktop_to_json(kcm_qif kcm_qifexporter.desktop)
if(ENABLE_QIFIMPORTER OR ENABLE_QIFEXPORTER)
kcoreaddons_add_plugin(kcm_qif
SOURCES ${kcm_qif_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
kcoreaddons_desktop_to_json(kcm_qif kcm_qif.desktop)
endif()
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
......@@ -39,13 +27,7 @@ target_link_libraries(kcm_qif
KF5::KIOWidgets
)
if(ENABLE_QIFIMPORTER)
install(FILES kcm_qifimporter.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
endif()
if(ENABLE_QIFEXPORTER)
install(FILES kcm_qifexporter.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
if(ENABLE_QIFIMPORTER OR ENABLE_QIFEXPORTER)
install(FILES kcm_qif.desktop DESTINATION ${SERVICES_INSTALL_DIR})
endif()
......@@ -23,6 +23,6 @@ KCMqif::KCMqif(QWidget *parent, const QVariantList& args) : KCModule(parent, arg
load();
}
K_PLUGIN_FACTORY(KCMqifFactory, registerPlugin<KCMqif>();)
K_PLUGIN_CLASS_WITH_JSON(KCMqif, "kcm_qif.json")
#include "kcm_qif.moc"
[Desktop Entry]
Name=QIF Importer configuration
Name=QIF Im-/Exporter configuration
Name[ca]=Configuració de l'importador de QIF
Name[ca@valencia]=Configuració de l'importador de QIF
Name[cs]=Nastavení importu QIF
......@@ -28,7 +28,7 @@ Icon=document-import
Type=Service
X-KDE-ServiceTypes=KCModule
Categories=Qt;KDE;kmymoney;
Keywords=qifimporter;kmymoney;
Keywords=qifimporter;qifexporter;kmymoney;
Keywords[ca]=qifimporter;kmymoney;
Keywords[ca@valencia]=qifimporter;kmymoney;
Keywords[de]=qifimport;kmymoney;
......@@ -53,9 +53,9 @@ Keywords[x-test]=xxqifimporterxx;xxkmymoneyxx;
Keywords[zh_CN]=qifimporter;kmymoney;
Keywords[zh_TW]=qifimporter;kmymoney;
X-KDE-Library=kmymoney/kcm_qif
X-KDE-ParentApp=qifimporter
X-KDE-ParentComponents=qifimporter
Comment=Configuration for QIF Importer plugin
X-KDE-ParentApp=kmymoney
X-KDE-ParentComponents=qifimporter,qifexporter
Comment=Configuration for QIF Im- and Exporter plugin
Comment[ca]=Configuració del connector per a l'importador de QIF
Comment[ca@valencia]=Configuració del connector per a l'importador de QIF
Comment[cs]=Nastavení modulu pro import QIF
......
[Desktop Entry]
Name=QIF Importer configuration
Name[ca]=Configuració de l'importador de QIF
Name[ca@valencia]=Configuració de l'importador de QIF
Name[cs]=Nastavení importu QIF
Name[de]=QIF-Importeinrichtung
Name[en_GB]=QIF Importer configuration
Name[es]=Configuración del importador QIF
Name[et]=QIF importimise seadistamine
Name[eu]=QIF inportatzailearen konfigurazoia
Name[fi]=QIF-tuontiasetukset
Name[fr]=Configuration de l'importation de QIF
Name[gl]=Configuración do importador de QIF
Name[it]=Configurazione dello strumento di importazione QIF
Name[ko]=QIF 가져오기 도구 설정
Name[nl]=Instellingen van QIF-importeren
Name[pl]=Ustawienia importera QIF
Name[pt]=Configuração da Importação de QIF
Name[pt_BR]=Configuração do importador QIF
Name[sl]=Nastavitev uvoznika QIF
Name[sv]=QIF-importinställning
Name[tr]=QIF İçe Aktarıcı yapılandırması
Name[uk]=Налаштування засобу імпортування QIF
Name[x-test]=xxQIF Importer configurationxx
Name[zh_CN]=QIF 导入工具配置
Name[zh_TW]=QIF 匯入程式設定
Icon=document-import
Type=Service
X-KDE-ServiceTypes=KCModule
Categories=Qt;KDE;kmymoney;
Keywords=qifexporter;kmymoney;
Keywords[ca]=qifexporter;kmymoney;
Keywords[ca@valencia]=qifexporter;kmymoney;
Keywords[de]=qifexport;kmymoney;
Keywords[en_GB]=qifexporter;kmymoney;
Keywords[es]=qifexporter;kmymoney;
Keywords[et]=qif eksport;kmymoney;
Keywords[eu]=qifesportatzailea;qifexporter;kmymoney;
Keywords[fi]=qif-vienti;kmymoney;
Keywords[fr]=qifexport;kmymoney;
Keywords[gl]=qifexporter;kmymoney;exportador;qif
Keywords[it]=qifexporter;kmymoney;
Keywords[ko]=qifexporter;kmymoney;QIF가져오기도구;
Keywords[nl]=qifexporter;kmymoney;
Keywords[pl]=qifexporter;kmymoney;
Keywords[pt]=exportação qif;kmymoney;
Keywords[pt_BR]=exportação;qif;kmymoney;
Keywords[sl]=qifexporter;kmymoney;qif izvoznik;
Keywords[sv]=qifexporter;kmymoney;
Keywords[tr]=qifçıkarıcı;kmymoney;
Keywords[uk]=qifexporter;kmymoney;експорт;кома;кмаймані;кіф;
Keywords[x-test]=xxqifexporterxx;xxkmymoneyxx;
Keywords[zh_CN]=qifexporter;kmymoney;
Keywords[zh_TW]=qifexporter;kmymoney;
X-KDE-Library=kmymoney/kcm_qif
X-KDE-ParentApp=qifexporter
X-KDE-ParentComponents=qifexporter
Comment=Configuration for QIF Importer plugin
Comment[ca]=Configuració del connector per a l'importador de QIF
Comment[ca@valencia]=Configuració del connector per a l'importador de QIF
Comment[cs]=Nastavení modulu pro import QIF
Comment[de]=Einrichtung des QIF-Importmoduls
Comment[en_GB]=Configuration for QIF Importer plugin
Comment[es]=Configuración para el complemento de importación QIF
Comment[et]=QIF importimise plugina seadistamine
Comment[eu]=QIF inportazio pluginaren konfigurazioa
Comment[fi]=QIF-tuontiliitännäisen asetukset
Comment[fr]=Configuration du module externe d'importation « QIF »
Comment[gl]=Configuración do complemento de importación de QIF.
Comment[it]=Configurazione dell'estensione di importazione QIF
Comment[ko]=QIF 가져오기 도구 플러그인 설정
Comment[nl]=Instellingen voor plug-in voor QIF importeren
Comment[pl]=Ustawienia dla wtyczki Importera QIF
Comment[pt]=Configuração do 'plugin' de Importação de QIF
Comment[pt_BR]=Configuração do plugin de importação QIF
Comment[sl]=Nastavitev vtičnika uvoznika QIF
Comment[sv]=Anpassa QIF-importinsticksprogram
Comment[tr]=QIF İçe Aktarıcı eklentisi için yapılandırma
Comment[uk]=Налаштування додатка імпортування у форматі QIF
Comment[x-test]=xxConfiguration for QIF Importer pluginxx
Comment[zh_CN]=QIF 导入插件配置
Comment[zh_TW]=QIF 匯入工具外掛程式設定
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