Commit 62e70398 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename last class

parent b50e3535
......@@ -84,7 +84,7 @@ find_package(KF5AkonadiNotes ${AKONADINOTES_LIB_VERSION} CONFIG REQUIRED)
include_directories(${pim-data-exporter_SOURCE_DIR} ${pim-data-exporter_BINARY_DIR})
add_definitions(-DTRANSLATION_DOMAIN=\"pimsettingexporter\")
add_definitions(-DTRANSLATION_DOMAIN=\"pimdataexporter\")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
......@@ -100,7 +100,7 @@ add_subdirectory(gui)
add_subdirectory(console)
install( FILES pimdataexporter.renamecategories pimdataexporter.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
install(FILES org.kde.pimsettingexporter.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES org.kde.pimdataexporter.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
add_subdirectory(doc)
......
#! /bin/sh
$EXTRACTRC `find . -name '*.ui' -or -name '*.rc'` >> rc.cpp || exit 11
$XGETTEXT `find -name '*.cpp' | grep -v '/tests/'` -o $podir/pimsettingexporter.pot
$XGETTEXT `find -name '*.cpp' | grep -v '/tests/'` -o $podir/pimdataexporter.pot
rm -f rc.cpp
......@@ -34,9 +34,9 @@ int main(int argc, char *argv[])
QCoreApplication app(argc, argv);
QCommandLineParser parser;
KAboutData aboutData(QStringLiteral("pimsettingexporterconsole"), i18n("PIM Setting Exporter Console"),
QStringLiteral(PIMDATAEXPORTER_VERSION), i18n("PIM Setting Exporter Console"), KAboutLicense::GPL_V2,
i18n("Copyright © 2015-2019 pimsettingexporter authors"));
KAboutData aboutData(QStringLiteral("pimdataexporterconsole"), i18n("PIM Data Exporter Console"),
QStringLiteral(PIMDATAEXPORTER_VERSION), i18n("PIM Data Exporter Console"), KAboutLicense::GPL_V2,
i18n("Copyright © 2015-2019 pimdataexporter authors"));
aboutData.addAuthor(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("montel@kde.org"));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("logfile"), i18n("File to log information to."), QStringLiteral("file")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("template"), i18n("Template file to define what data, settings to import or export."), QStringLiteral("file")));
......
########### install files ###############
#
#
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR pimsettingexporter)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR pimdataexporter)
......@@ -47,9 +47,9 @@ qt5_add_resources(pimdataexporter_SRCS pimdataexporter.qrc)
ecm_qt_declare_logging_category(pimdataexporter_SRCS HEADER pimdataexportgui_debug.h IDENTIFIER PIMDATAEXPORTERGUI_LOG CATEGORY_NAME org.kde.pim.pimdataexportergui)
add_executable(pimsettingexporter ${pimdataexporter_SRCS})
add_executable(pimdataexporter ${pimdataexporter_SRCS})
target_link_libraries(pimsettingexporter
target_link_libraries(pimdataexporter
PRIVATE
KF5::XmlGui
KF5::DBusAddons
......@@ -67,9 +67,9 @@ target_link_libraries(pimsettingexporter
add_subdirectory(kconf_update)
install(TARGETS pimsettingexporter ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS pimdataexporter ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(PROGRAMS org.kde.pimsettingexporter.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(PROGRAMS org.kde.pimdataexporter.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES settings/pimdataexporterglobalconfig.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
......
......@@ -33,12 +33,13 @@ int main(int argc, char *argv[])
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("pimsettingexporter");
KLocalizedString::setApplicationDomain("pimdataexporter");
KCrash::initialize();
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setDesktopFileName(QStringLiteral("org.kde.pimsettingexporter"));
Kdelibs4ConfigMigrator migrate(QStringLiteral("pimsettingexporter"));
app.setDesktopFileName(QStringLiteral("org.kde.pimdataexporter"));
Kdelibs4ConfigMigrator migrate(QStringLiteral("pimdataexporter"));
//old migration. Don't change it
migrate.setConfigFiles(QStringList() << QStringLiteral("pimsettingexporterrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("pimsettingexporter.rc"));
migrate.migrate();
......
[Desktop Entry]
Name=PIM Setting Exporter
Name[ar]=مصدّر إعدادات PIM
Name[bs]=Izvoženje PIM postavki
Name[ca]=Exportador de la configuració PIM
Name[ca@valencia]=Exportador de la configuració PIM
Name[cs]=Exportér nastavení PIM
Name[da]=Eksportør til PIM-indstillinger
Name[de]=PIM-Einstellungs-Export
Name[el]=Εξαγωγέας ρυθμίσεων PIM
Name[en_GB]=PIM Setting Exporter
Name[es]=Exportador de preferencias de PIM
Name[et]=PIM-i seadistuste eksport
Name[fi]=PIM-asetusten vienti
Name[fr]=Export des paramètres PIM
Name[gl]=Exportador da configuración PIM
Name[hu]=PIM beállítás exportáló
Name[ia]=PIM Setting Explorer (Exportator de preferentias de PIM)
Name[it]=Esportatore delle impostazioni di PIM
Name[kk]=PIM баптауын экспорты
Name[km]=កម្មវិធី​នាំចេញ​ការ​កំណត់​របស់ PIM
Name[ko]=PIM 설정 내보내기
Name[lt]=PIM nustatymų eksportavimo programa
Name[mr]=PIM संयोजना निर्यात करणारा
Name[nb]=PIM-oppsettseksport
Name[nds]=PIM-Instellen-Exportprogramm
Name[nl]=PIM-exportprogramma van instellingen
Name[pl]=Eksporter ustawień ZIO
Name[pt]=Exportação das Definições PIM
Name[pt_BR]=Exportação das Definições PIM
Name[ro]=Exportator de configurări PIM
Name[ru]=Экспорт данных PIM
Name[sk]=Exportovač nastavenia PIM
Name[sl]=Izvoznik nastavitev PIM
Name[sr]=Извозник ПИМ поставки
Name[sr@ijekavian]=Извозник ПИМ поставки
Name[sr@ijekavianlatin]=Izvoznik PIM postavki
Name[sr@latin]=Izvoznik PIM postavki
Name[sv]=Export av inställningar för personlig informationshantering
Name[tr]=PIM Ayar Aktarıcı
Name[uk]=Інструмент експортування параметрів
Name[wa]=Ebagueu d' apontiaedje PIM
Name[x-test]=xxPIM Setting Exporterxx
Name[zh_CN]=个人信息管理设置导出器
Name[zh_TW]=PIM 設定匯出器
Exec=pimsettingexporter
Name=PIM Data Exporter
Exec=pimdataexporter
Type=Application
Icon=kontact
GenericName=Saves and restores all data from PIM apps
......@@ -71,6 +28,6 @@ Comment[uk]=За допомогою програми для експортува
Comment[x-test]=xxPIM Setting Exporter allows to save all data from PIM apps and restore them in other systems.xx
Terminal=false
Categories=Qt;KDE;Network;Email;
X-DocPath=pimsettingexporter/index.html
X-DocPath=pimdataexporter/index.html
X-DBUS-StartupType=Unique
X-DBUS-ServiceName=org.kde.pimsettingexporter
X-DBUS-ServiceName=org.kde.pimdataexporter
......@@ -49,9 +49,9 @@ void PimDataCommandLineOption::slotActivateRequested(const QStringList &argument
void PimDataCommandLineOption::createParser(const QApplication &app)
{
KAboutData aboutData(QStringLiteral("pimsettingexporter"), i18n("PIM Setting Exporter"),
QStringLiteral(PIMDATAEXPORTER_VERSION), i18n("PIM Setting Exporter"), KAboutLicense::GPL_V2,
i18n("Copyright © 2012-2019 pimsettingexporter authors"));
KAboutData aboutData(QStringLiteral("pimdataexporter"), i18n("PIM Data Exporter"),
QStringLiteral(PIMDATAEXPORTER_VERSION), i18n("PIM Data Exporter"), KAboutLicense::GPL_V2,
i18n("Copyright © 2012-2019 pimdataexporter authors"));
aboutData.addAuthor(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("montel@kde.org"));
mParser.addVersionOption();
mParser.addHelpOption();
......
......@@ -170,7 +170,7 @@ void PimDataExporterWindow::showFinishInformation()
{
KMessageBox::information(
this,
i18n("For restoring data, you must use \"pimsettingexporter\". "
i18n("For restoring data, you must use \"pimdataexporter\". "
"Be careful as it can overwrite your existing settings and data."),
i18n("Backup"),
QStringLiteral("setProgressDialogLabelBackupInfos"));
......@@ -370,7 +370,7 @@ void PimDataExporterWindow::loadData(const QString &filename, const QString &tem
= QFileDialog::getOpenFileName(
this,
i18n("Restore backup"),
KFileWidget::getStartUrl(QUrl(QStringLiteral("kfiledialog:///pimsettingexporter")),
KFileWidget::getStartUrl(QUrl(QStringLiteral("kfiledialog:///pimdataexporter")),
recentDirClass).toLocalFile(),
QStringLiteral("%1 (*.zip)").arg(i18n("Zip File")));
if (currentFileName.isEmpty()) {
......
......@@ -70,7 +70,7 @@
<url type="help">https://docs.kde.org/?application=pimsettingexporter</url>
<url type="donation">https://www.kde.org/community/donations</url>
<provides>
<binary>pimsettingexporter</binary>
<binary>pimdataexporter</binary>
</provides>
<project_group>KDE</project_group>
<screenshots>
......
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