File indexing completed on 2024-05-12 03:54:20
0001 /* 0002 SPDX-FileCopyrightText: 2015 Chusslove Illich <caslav.ilic@gmx.net> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 /* This file is needed for test_translation_kde. 0008 * It provides fake i18n* in order to avoid dependency on Ki18n framework. 0009 */ 0010 0011 #ifndef KLOCALIZEDSTRING_H 0012 #define KLOCALIZEDSTRING_H 0013 0014 inline QString i18n(const char *msgid) 0015 { 0016 return QString::fromUtf8(msgid); 0017 } 0018 0019 inline QString i18nc(const char *msgctxt, const char *msgid) 0020 { 0021 Q_UNUSED(msgctxt); 0022 return QString::fromUtf8(msgid); 0023 } 0024 0025 inline QString i18nd(const char *domain, const char *msgid) 0026 { 0027 Q_UNUSED(domain); 0028 return QString::fromUtf8(msgid); 0029 } 0030 0031 inline QString i18ndc(const char *domain, const char *msgctxt, const char *msgid) 0032 { 0033 Q_UNUSED(domain); 0034 Q_UNUSED(msgctxt); 0035 return QString::fromUtf8(msgid); 0036 } 0037 0038 #endif