Commit b6321bf8 authored by Laurent Montel's avatar Laurent Montel
Browse files

Port I18N_NOOP

parent e5a31eb4
Pipeline #211679 passed with stage
in 55 seconds
......@@ -32,61 +32,38 @@
#include "juk.h"
#include <config-juk.h>
static const char description[] = I18N_NOOP("Jukebox and music manager by the KDE community");
static const char scott[] = I18N_NOOP("Author, chief dork and keeper of the funk");
static const char michael[] = I18N_NOOP("Assistant superhero, fixer of many things");
static const char georg[] = I18N_NOOP("More KDE Platform 4 porting efforts");
static const char daniel[] = I18N_NOOP("System tray docking, \"inline\" tag editing,\nbug fixes, evangelism, moral support");
static const char tim[] = I18N_NOOP("GStreamer port");
static const char stefan[] = I18N_NOOP("Global keybindings support");
static const char stephen[] = I18N_NOOP("Track announcement popups");
static const char frerich[] = I18N_NOOP("Automagic track data guessing, bugfixes");
static const char zack[] = I18N_NOOP("More automagical things, now using MusicBrainz");
static const char adam[] = I18N_NOOP("Co-conspirator in MusicBrainz wizardry");
static const char matthias[] = I18N_NOOP("Friendly, neighborhood aRts guru");
static const char maks[] = I18N_NOOP("Making JuK friendlier to people with terabytes of music");
static const char antonio[] = I18N_NOOP("DCOP interface");
static const char allan[] = I18N_NOOP("FLAC and MPC support");
static const char nathan[] = I18N_NOOP("Album cover manager");
static const char pascal[] = I18N_NOOP("Gimper of splash screen");
static const char laurent[] = I18N_NOOP("Porting to KDE Platform 4 when no one else was around");
static const char giorgos[] = I18N_NOOP("Badly-needed tag editor bugfixes.");
static const char sandsmark[] = I18N_NOOP(" scrobbling support, lyrics, prepping for KDE Frameworks 5.");
static const char sho[] = I18N_NOOP("MPRIS2 Interface implementation.");
static const char kacper[] = I18N_NOOP("Porting to KDE Frameworks 5 when no one else was around");
int main(int argc, char *argv[])
QApplication a(argc, argv);
KAboutData aboutData(QStringLiteral("juk"), i18n("JuK"),
QStringLiteral(JUK_VERSION), i18n(description), KAboutLicense::GPL,
QStringLiteral(JUK_VERSION), i18n("Jukebox and music manager by the KDE community"), KAboutLicense::GPL,
i18n("Copyright © 2002–2021, Scott Wheeler, Michael Pyne, and others"),
aboutData.addAuthor(i18n("Scott Wheeler"), i18n(scott), "");
aboutData.addAuthor(i18n("Michael Pyne"), i18n(michael), "");
aboutData.addCredit(i18n("Kacper Kasper"), i18n(kacper), "", "");
aboutData.addCredit(i18n("Eike Hein"), i18n(sho), "");
aboutData.addCredit(i18n("Martin Sandsmark"), i18n(sandsmark), "");
aboutData.addCredit(i18n("Γιώργος Κυλάφας (Giorgos Kylafas)"), i18n(giorgos), "");
aboutData.addCredit(i18n("Georg Grabler"), i18n(georg), "");
aboutData.addCredit(i18n("Laurent Montel"), i18n(laurent), "");
aboutData.addCredit(i18n("Nathan Toone"), i18n(nathan), "");
aboutData.addCredit(i18n("Matthias Kretz"), i18n(matthias), "");
aboutData.addCredit(i18n("Daniel Molkentin"), i18n(daniel), "");
aboutData.addCredit(i18n("Tim Jansen"), i18n(tim), "");
aboutData.addCredit(i18n("Stefan Asserhäll"), i18n(stefan), "");
aboutData.addCredit(i18n("Stephen Douglas"), i18n(stephen), "");
aboutData.addCredit(i18n("Frerich Raabe"), i18n(frerich), "");
aboutData.addCredit(i18n("Zack Rusin"), i18n(zack), "");
aboutData.addCredit(i18n("Adam Treat"), i18n(adam), "");
aboutData.addCredit(i18n("Maks Orlovich"), i18n(maks), "");
aboutData.addCredit(i18n("Antonio Larrosa Jimenez"), i18n(antonio), "");
aboutData.addCredit(i18n("Allan Sandfeld Jensen"), i18n(allan), "");
aboutData.addCredit(i18n("Pascal Klein"), i18n(pascal), "");
aboutData.addAuthor(i18n("Scott Wheeler"), i18n("Author, chief dork and keeper of the funk"), "");
aboutData.addAuthor(i18n("Michael Pyne"), i18n("Assistant superhero, fixer of many things"), "");
aboutData.addCredit(i18n("Kacper Kasper"), i18n("Porting to KDE Frameworks 5 when no one else was around"), "", "");
aboutData.addCredit(i18n("Eike Hein"), i18n("MPRIS2 Interface implementation."), "");
aboutData.addCredit(i18n("Martin Sandsmark"), i18n(" scrobbling support, lyrics, prepping for KDE Frameworks 5."), "");
aboutData.addCredit(i18n("Γιώργος Κυλάφας (Giorgos Kylafas)"), i18n("Badly-needed tag editor bugfixes."), "");
aboutData.addCredit(i18n("Georg Grabler"), i18n("More KDE Platform 4 porting efforts"), "");
aboutData.addCredit(i18n("Laurent Montel"), i18n("Porting to KDE Platform 4 when no one else was around"), "");
aboutData.addCredit(i18n("Nathan Toone"), i18n("Album cover manager"), "");
aboutData.addCredit(i18n("Matthias Kretz"), i18n("Friendly, neighborhood aRts guru"), "");
aboutData.addCredit(i18n("Daniel Molkentin"), i18n("System tray docking, \"inline\" tag editing,\nbug fixes, evangelism, moral support"), "");
aboutData.addCredit(i18n("Tim Jansen"), i18n("GStreamer port"), "");
aboutData.addCredit(i18n("Stefan Asserhäll"), i18n("Global keybindings support"), "");
aboutData.addCredit(i18n("Stephen Douglas"), i18n("Track announcement popups"), "");
aboutData.addCredit(i18n("Frerich Raabe"), i18n("Automagic track data guessing, bugfixes"), "");
aboutData.addCredit(i18n("Zack Rusin"), i18n("More automagical things, now using MusicBrainz"), "");
aboutData.addCredit(i18n("Adam Treat"), i18n("Co-conspirator in MusicBrainz wizardry"), "");
aboutData.addCredit(i18n("Maks Orlovich"), i18n("Making JuK friendlier to people with terabytes of music"), "");
aboutData.addCredit(i18n("Antonio Larrosa Jimenez"), i18n("DCOP interface"), "");
aboutData.addCredit(i18n("Allan Sandfeld Jensen"), i18n("FLAC and MPC support"), "");
aboutData.addCredit(i18n("Pascal Klein"), i18n("Gimper of splash screen"), "");
QCommandLineParser parser;
......@@ -21,6 +21,7 @@
#include <kconfigbase.h>
#include <kconfiggroup.h>
#include <KSharedConfig>
#include <KLazyLocalizedString>
#include "juk_debug.h"
......@@ -92,46 +93,43 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category)
QString TagRenamerOptions::tagTypeText(TagType type, bool translate)
const char *msg = 0, *context = 0;
KLazyLocalizedString msg;
switch(type) {
case Title:
msg = I18N_NOOP2("song title", "Title");
context = "song title";
msg = kli18nc("song title", "Title");
case Artist:
msg = I18N_NOOP("Artist");
msg = kli18n("Artist");
case Album:
msg = I18N_NOOP("Album");
msg = kli18n("Album");
case Track:
msg = I18N_NOOP2("cd track number", "Track");
context = "cd track number";
msg = kli18nc("cd track number", "Track");
case Genre:
msg = I18N_NOOP("Genre");
msg = kli18n("Genre");
case Year:
msg = I18N_NOOP("Year");
msg = kli18n("Year");
qCWarning(JUK_LOG) << "I don't know what category we're looking up, this is a problem.";
qCWarning(JUK_LOG) << "The category ID is " << (unsigned) type;
msg = I18N_NOOP2("unknown renamer category", "Unknown");
context = "unknown renamer category";
msg = kli18nc("unknown renamer category", "Unknown");
return context ? i18nc(context, msg) : i18n(msg);
return msg.toString();
return msg;
return msg.untranslatedText();
void TagRenamerOptions::saveConfig(unsigned categoryNum) const
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