mirror-kde-plasma-desktop/emojier/emojicategory.cpp
Volker Krause 2d8a9c30b9 Port emojier away from deprecated I18N_NOOP
This is rather dirty, the category table should hold KLazyLocalizedString
instances rather than QStrings of the untranslated message, and actual
translation should be done by calling toString() on those, to avoid
duplicating the context.

That however isn't easily possible here as the translation happens on the
QML side, after using the untranslated string in a mapping table for icons.
So this has to do for now.
2022-10-10 15:19:24 +00:00

26 lines
1.2 KiB
C++

/*
SPDX-FileCopyrightText: 2022 Weng Xuetian <wegnxt@gmail.com>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
// Generated from emoji-test.txt
#include "emojicategory.h"
#include <KLazyLocalizedString>
const QStringList &getCategoryNames()
{
static const QStringList names = {
QString::fromUtf8(kli18nc("Emoji Category", "Smileys and Emotion").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "People and Body").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Component").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Animals and Nature").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Food and Drink").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Travel and Places").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Activities").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Objects").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Symbols").untranslatedText()),
QString::fromUtf8(kli18nc("Emoji Category", "Flags").untranslatedText()),
};
return names;
}