aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <[email protected]>2014-08-10 12:59:16 +0200
committerAndreas Cord-Landwehr <[email protected]>2014-08-10 12:59:16 +0200
commite5b924676f9c04761a008310525e26f1cbf08699 (patch)
tree81358afae1a321f62b8494cbe7b0b73fd551f20e
parent6ea15c250c0fb59b650a9804b4dfdfb68b68d88e (diff)
Port KAboutData.
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/main.cpp42
2 files changed, 26 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7be910..7a84e67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,7 @@ find_package(Qt5 REQUIRED COMPONENTS
)
find_package(KF5 CONFIG REQUIRED COMPONENTS
Config
+ CoreAddons
I18n
KDELibs4Support
)
diff --git a/src/main.cpp b/src/main.cpp
index 26a12b4..6741f10 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -20,34 +20,42 @@
#include "mainwindow.h"
#include "application.h"
-#include "version.h"
+// #include "version.h"
#include <KAboutData>
#include <KCmdLineArgs>
-#include <KLocale>
+#include <KLocalizedString>
#include <QDebug>
static const char description[] =
I18N_NOOP("Learn and practice pronunciation.");
-static const char version[] = ARTIKULATE_VERSION_STR;
+static const char version[] = "0.4.50"; //ARTIKULATE_VERSION_STR; //FIXME
int main(int argc, char **argv)
{
- KAboutData about("artikulate", 0,
- ki18n("Artikulate Pronunciation Trainer"),
- version,
- ki18n(description),
- KAboutData::License_GPL,
- ki18n("Copyright (C) 2013-2014, The Artikulate Developers")
- );
-
- about.addAuthor(ki18n("Andreas Cord-Landwehr"), ki18n("Original Author"), "[email protected]");
- about.addAuthor(ki18n("Samikshan Bairagya"), ki18n("Developer"), "[email protected]");
- about.addAuthor(ki18n("Oindrila Gupta"), ki18n("Developer and Course Data"));
- about.addAuthor(ki18n("Magdalena Konkiewicz"), ki18n("Developer and Course Data"));
-
- KCmdLineArgs::init(argc, argv, &about);
+ KAboutData aboutData("artikulate",
+ ki18nc("@title Displayed program name", "Artikulate").toString(),
+ version,
+ ki18nc("@title KAboutData: short program description", "Artikulate Pronunciation Trainer").toString(),
+ KAboutLicense::GPL_V2,
+ ki18nc("@info:credit", "(c) 2013-2014 The Artikulate Developers").toString(),
+ ki18nc("@title Short program description", "Training your ponunciation in a foreign language.").toString()
+ );
+
+ aboutData.addAuthor(ki18nc("@info:credit Developer name", "Andreas Cord-Landwehr").toString(),
+ ki18nc("@info:credit Role", "Original Author").toString(),
+
+ aboutData.addAuthor(ki18nc("@info:credit Developer name", "Samikshan Bairagya").toString(),
+ ki18nc("@info:credit Role", "Developer").toString(),
+
+ aboutData.addAuthor(ki18nc("@info:credit Developer name", "Oindrila Gupta").toString(),
+ ki18nc("@info:credit Role", "Developer and Course Data").toString());
+
+ aboutData.addAuthor(ki18nc("@info:credit Developer name", "Magdalena Konkiewicz").toString(),
+ ki18nc("@info:credit Role", "Developer and Course Data").toString());
Application app;