| 1 | // SPDX-FileCopyrightText: Nheko Contributors |
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #include "Emoji.h" |
| 6 | |
| 7 | #include <QCoreApplication> |
| 8 | QString |
| 9 | emoji::categoryToName(emoji::Emoji::Category cat) |
| 10 | { |
| 11 | switch (cat) { |
| 12 | case emoji::Emoji::Category::People: |
| 13 | return QCoreApplication::translate("emoji-catagory", "People"); |
| 14 | case emoji::Emoji::Category::Nature: |
| 15 | return QCoreApplication::translate("emoji-catagory", "Nature"); |
| 16 | case emoji::Emoji::Category::Food: |
| 17 | return QCoreApplication::translate("emoji-catagory", "Food"); |
| 18 | case emoji::Emoji::Category::Activity: |
| 19 | return QCoreApplication::translate("emoji-catagory", "Activity"); |
| 20 | case emoji::Emoji::Category::Travel: |
| 21 | return QCoreApplication::translate("emoji-catagory", "Travel"); |
| 22 | case emoji::Emoji::Category::Objects: |
| 23 | return QCoreApplication::translate("emoji-catagory", "Objects"); |
| 24 | case emoji::Emoji::Category::Symbols: |
| 25 | return QCoreApplication::translate("emoji-catagory", "Symbols"); |
| 26 | case emoji::Emoji::Category::Flags: |
| 27 | return QCoreApplication::translate("emoji-catagory", "Flags"); |
| 28 | default: |
| 29 | return ""; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | #include "moc_Emoji.cpp" |