19 #ifndef KLOCALIZEDSTRING_H
20 #define KLOCALIZEDSTRING_H
22 #include <ki18n_export.h>
24 #include <QtCore/QChar>
25 #include <QtCore/QLatin1Char>
26 #include <QtCore/QString>
27 #include <QtCore/QStringList>
29 #include <kuitmarkup.h>
31 class KLocalizedStringPrivate;
43 #define I18N_NOOP(text) text
52 #define I18NC_NOOP(context, text) context, text
61 #define I18N_NOOP2(context, text) text
64 #ifndef I18N_NOOP2_NOSTRIP
70 #define I18N_NOOP2_NOSTRIP(context, text) context, text
91 friend KLocalizedString KI18N_EXPORT
ki18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural);
100 friend KLocalizedString KI18N_EXPORT
kxi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural);
144 QString toString ()
const;
156 QString toString (
const QStringList &languages)
const;
158 #if 0 // until locale system is ready
168 QString toString (
const KLocale *locale)
const;
179 QString toString (
const QString &domain)
const;
240 bool isEmpty ()
const;
255 QChar fillChar = QLatin1Char(
' '))
const;
270 QChar fillChar = QLatin1Char(
' '))
const;
285 QChar fillChar = QLatin1Char(
' '))
const;
300 QChar fillChar = QLatin1Char(
' '))
const;
315 QChar fillChar = QLatin1Char(
' '))
const;
330 QChar fillChar = QLatin1Char(
' '))
const;
345 char format =
'g',
int precision = -1,
346 QChar fillChar = QLatin1Char(
' '))
const;
359 QChar fillChar = QLatin1Char(
' '))
const;
372 QChar fillChar = QLatin1Char(
' '))
const;
385 QChar fillChar = QLatin1Char(
' '))
const;
416 const QString &text)
const;
432 static void setApplicationCatalog (
const QString &domain);
434 #if 0 // until locale system is ready
444 static void setLocale (
const KLocale &locale);
457 static void setLanguages (
const QStringList &languages);
467 static void clearLanguages ();
477 static bool isApplicationTranslatedInto (
const QString &language);
494 static QString localizedFilePath (
const QString &filePath);
510 static QString removeAcceleratorMarker (
const QString &label);
527 static QString translateQt (
const char* context,
const char *text,
529 #
if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
544 static void insertQtCatalog (
const QString &domain);
562 static void removeQtCatalog (
const QString &domain);
568 KLocalizedStringPrivate *
const d;
574 #ifdef DOXYGEN_PREPROC
584 QString
i18n (
const char *text,
const TYPE &arg...);
595 QString
i18nc (
const char *context,
const char *text,
const TYPE &arg...);
606 QString
i18np (
const char *singular,
const char *plural,
const TYPE &arg...);
618 QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
630 QString
i18nd (
const char *domain,
const char *text,
const TYPE &arg...);
642 QString
i18ndc (
const char *domain,
const char *context,
const char *text,
655 QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
670 QString
i18ndcp (
const char *domain,
671 const char *context,
const char *singular,
const char *plural,
682 QString
xi18n (
const char *text,
const TYPE &arg...);
693 QString
xi18nc (
const char *context,
const char *text,
const TYPE &arg...);
704 QString
xi18np (
const char *singular,
const char *plural,
const TYPE &arg...);
717 QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
729 QString
xi18nd (
const char *domain,
const char *text,
const TYPE &arg...);
742 QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
756 QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
771 QString
xi18ndcp (
const char *domain,
772 const char *context,
const char *singular,
const char *plural,
775 #endif // DOXYGEN_PREPROC
851 KLocalizedString KI18N_EXPORT
ki18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural);
929 KLocalizedString KI18N_EXPORT
kxi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural);
940 inline QString
tr2i18n (
const char *text,
const char *comment = 0)
942 if (comment && comment[0] && text && text[0]) {
945 else if (text && text[0]) {
964 const char *text,
const char *comment = 0)
966 if (comment && comment[0] && text && text[0]) {
969 else if (text && text[0]) {
986 inline QString
tr2xi18n (
const char *text,
const char *comment = 0)
988 if (comment && comment[0] && text && text[0]) {
991 else if (text && text[0]) {
1010 const char *text,
const char *comment = 0)
1012 if (comment && comment[0] && text && text[0]) {
1015 else if (text && text[0]) {
1023 #ifndef DOXYGEN_PREPROC
1026 #define I18N_ERR_MSG String_literal_as_second_argument_to_i18n___Perhaps_you_need_i18nc_or_i18np
1027 template <
typename T,
int s>
class I18nTypeCheck {
public:
static void I18N_ERR_MSG () {}};
1028 template <
int s>
class I18nTypeCheck<char[s], s> {};
1029 #define STATIC_ASSERT_NOT_LITERAL_STRING(T) I18nTypeCheck<T, sizeof(T)>::I18N_ERR_MSG ();
1031 #define STATIC_ASSERT_NOT_LITERAL_STRING(T)
1036 inline QString
i18n (
const char *text)
1040 template <
typename A1>
1041 inline QString
i18n (
const char *text,
const A1 &a1)
1043 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1044 return
ki18n(text).subs(a1).toString();
1046 template <typename A1, typename A2>
1047 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2)
1049 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1050 return
ki18n(text).subs(a1).subs(a2).toString();
1052 template <typename A1, typename A2, typename A3>
1053 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3)
1055 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1056 return
ki18n(text).subs(a1).subs(a2).subs(a3).toString();
1058 template <typename A1, typename A2, typename A3, typename A4>
1059 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
1061 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1062 return
ki18n(text).subs(a1).subs(a2).subs(a3).subs(a4).toString();
1064 template <typename A1, typename A2, typename A3, typename A4, typename A5>
1065 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
1067 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1068 return
ki18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).toString();
1070 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
1071 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
1073 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1074 return
ki18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).toString();
1076 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7>
1077 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
1079 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1080 return
ki18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).toString();
1082 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
1083 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8)
1085 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1086 return
ki18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).toString();
1088 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9>
1089 inline QString
i18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9)
1091 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1092 return
ki18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).subs(a9).toString();
1098 inline QString
i18nc (const
char *context, const
char *text)
1102 template <
typename A1>
1103 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1)
1107 template <
typename A1,
typename A2>
1108 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2)
1112 template <
typename A1,
typename A2,
typename A3>
1113 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1117 template <
typename A1,
typename A2,
typename A3,
typename A4>
1118 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1122 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1123 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1127 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1128 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1132 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1133 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1137 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1138 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1142 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1143 inline QString
i18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1151 template <
typename A1>
1152 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1)
1156 template <
typename A1,
typename A2>
1157 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1161 template <
typename A1,
typename A2,
typename A3>
1162 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1166 template <
typename A1,
typename A2,
typename A3,
typename A4>
1167 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1171 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1172 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1176 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1177 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1181 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1182 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1186 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1187 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1191 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1192 inline QString
i18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1200 template <
typename A1>
1201 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1)
1205 template <
typename A1,
typename A2>
1206 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1210 template <
typename A1,
typename A2,
typename A3>
1211 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1215 template <
typename A1,
typename A2,
typename A3,
typename A4>
1216 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1220 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1221 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1225 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1226 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1230 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1231 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1235 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1236 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1240 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1241 inline QString
i18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1249 inline QString
i18nd (
const char *domain,
const char *text)
1253 template <
typename A1>
1254 inline QString
i18nd (
const char *domain,
const char *text,
const A1 &a1)
1256 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1257 return
ki18nd(domain, text).subs(a1).toString();
1259 template <typename A1, typename A2>
1260 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2)
1262 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1263 return
ki18nd(domain, text).subs(a1).subs(a2).toString();
1265 template <typename A1, typename A2, typename A3>
1266 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3)
1268 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1269 return
ki18nd(domain, text).subs(a1).subs(a2).subs(a3).toString();
1271 template <typename A1, typename A2, typename A3, typename A4>
1272 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
1274 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1275 return
ki18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).toString();
1277 template <typename A1, typename A2, typename A3, typename A4, typename A5>
1278 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
1280 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1281 return
ki18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).toString();
1283 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
1284 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
1286 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1287 return
ki18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).toString();
1289 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7>
1290 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
1292 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1293 return
ki18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).toString();
1295 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
1296 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8)
1298 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1299 return
ki18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).toString();
1301 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9>
1302 inline QString
i18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9)
1304 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1305 return
ki18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).subs(a9).toString();
1311 inline QString
i18ndc (const
char *domain, const
char *context, const
char *text)
1315 template <
typename A1>
1316 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1)
1320 template <
typename A1,
typename A2>
1321 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2)
1325 template <
typename A1,
typename A2,
typename A3>
1326 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1330 template <
typename A1,
typename A2,
typename A3,
typename A4>
1331 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1335 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1336 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1340 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1341 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1345 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1346 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1350 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1351 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1355 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1356 inline QString
i18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1364 template <
typename A1>
1365 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1)
1369 template <
typename A1,
typename A2>
1370 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1374 template <
typename A1,
typename A2,
typename A3>
1375 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1379 template <
typename A1,
typename A2,
typename A3,
typename A4>
1380 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1384 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1385 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1389 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1390 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1394 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1395 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1399 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1400 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1404 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1405 inline QString
i18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1413 template <
typename A1>
1414 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1)
1418 template <
typename A1,
typename A2>
1419 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1423 template <
typename A1,
typename A2,
typename A3>
1424 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1428 template <
typename A1,
typename A2,
typename A3,
typename A4>
1429 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1433 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1434 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1438 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1439 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1443 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1444 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1448 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1449 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1453 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1454 inline QString
i18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1462 inline QString
xi18n (
const char *text)
1466 template <
typename A1>
1467 inline QString
xi18n (
const char *text,
const A1 &a1)
1469 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1470 return
kxi18n(text).subs(a1).toString();
1472 template <typename A1, typename A2>
1473 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2)
1475 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1476 return
kxi18n(text).subs(a1).subs(a2).toString();
1478 template <typename A1, typename A2, typename A3>
1479 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3)
1481 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1482 return
kxi18n(text).subs(a1).subs(a2).subs(a3).toString();
1484 template <typename A1, typename A2, typename A3, typename A4>
1485 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
1487 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1488 return
kxi18n(text).subs(a1).subs(a2).subs(a3).subs(a4).toString();
1490 template <typename A1, typename A2, typename A3, typename A4, typename A5>
1491 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
1493 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1494 return
kxi18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).toString();
1496 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
1497 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
1499 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1500 return
kxi18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).toString();
1502 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7>
1503 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
1505 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1506 return
kxi18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).toString();
1508 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
1509 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8)
1511 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1512 return
kxi18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).toString();
1514 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9>
1515 inline QString
xi18n (const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9)
1517 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1518 return
kxi18n(text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).subs(a9).toString();
1524 inline QString
xi18nc (const
char *context, const
char *text)
1528 template <
typename A1>
1529 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1)
1533 template <
typename A1,
typename A2>
1534 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2)
1538 template <
typename A1,
typename A2,
typename A3>
1539 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1543 template <
typename A1,
typename A2,
typename A3,
typename A4>
1544 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1548 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1549 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1553 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1554 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1558 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1559 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1563 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1564 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1568 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1569 inline QString
xi18nc (
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1577 template <
typename A1>
1578 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1)
1582 template <
typename A1,
typename A2>
1583 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1587 template <
typename A1,
typename A2,
typename A3>
1588 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1592 template <
typename A1,
typename A2,
typename A3,
typename A4>
1593 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1597 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1598 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1602 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1603 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1607 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1608 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1612 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1613 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1617 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1618 inline QString
xi18np (
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1626 template <
typename A1>
1627 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1)
1631 template <
typename A1,
typename A2>
1632 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1636 template <
typename A1,
typename A2,
typename A3>
1637 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1641 template <
typename A1,
typename A2,
typename A3,
typename A4>
1642 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1646 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1647 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1651 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1652 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1656 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1657 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1661 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1662 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1666 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1667 inline QString
xi18ncp (
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1675 inline QString
xi18nd (
const char *domain,
const char *text)
1679 template <
typename A1>
1680 inline QString
xi18nd (
const char *domain,
const char *text,
const A1 &a1)
1682 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1683 return
kxi18nd(domain, text).subs(a1).toString();
1685 template <typename A1, typename A2>
1686 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2)
1688 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1689 return
kxi18nd(domain, text).subs(a1).subs(a2).toString();
1691 template <typename A1, typename A2, typename A3>
1692 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3)
1694 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1695 return
kxi18nd(domain, text).subs(a1).subs(a2).subs(a3).toString();
1697 template <typename A1, typename A2, typename A3, typename A4>
1698 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
1700 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1701 return
kxi18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).toString();
1703 template <typename A1, typename A2, typename A3, typename A4, typename A5>
1704 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
1706 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1707 return
kxi18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).toString();
1709 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
1710 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
1712 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1713 return
kxi18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).toString();
1715 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7>
1716 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
1718 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1719 return
kxi18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).toString();
1721 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
1722 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8)
1724 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1725 return
kxi18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).toString();
1727 template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9>
1728 inline QString
xi18nd (const
char *domain, const
char *text, const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9)
1730 STATIC_ASSERT_NOT_LITERAL_STRING(A1)
1731 return
kxi18nd(domain, text).subs(a1).subs(a2).subs(a3).subs(a4).subs(a5).subs(a6).subs(a7).subs(a8).subs(a9).toString();
1737 inline QString
xi18ndc (const
char *domain, const
char *context, const
char *text)
1741 template <
typename A1>
1742 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1)
1746 template <
typename A1,
typename A2>
1747 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2)
1751 template <
typename A1,
typename A2,
typename A3>
1752 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1756 template <
typename A1,
typename A2,
typename A3,
typename A4>
1757 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1761 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1762 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1766 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1767 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1771 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1772 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1776 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1777 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1781 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1782 inline QString
xi18ndc (
const char *domain,
const char *context,
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1790 template <
typename A1>
1791 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1)
1795 template <
typename A1,
typename A2>
1796 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1800 template <
typename A1,
typename A2,
typename A3>
1801 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1805 template <
typename A1,
typename A2,
typename A3,
typename A4>
1806 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1810 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1811 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1815 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1816 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1820 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1821 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1825 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1826 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1830 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1831 inline QString
xi18ndp (
const char *domain,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1839 template <
typename A1>
1840 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1)
1844 template <
typename A1,
typename A2>
1845 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2)
1849 template <
typename A1,
typename A2,
typename A3>
1850 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3)
1854 template <
typename A1,
typename A2,
typename A3,
typename A4>
1855 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
1859 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
1860 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5)
1864 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6>
1865 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6)
1869 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7>
1870 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7)
1874 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1875 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8)
1879 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
1880 inline QString
xi18ndcp (
const char *domain,
const char *context,
const char *singular,
const char *plural,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4,
const A5 &a5,
const A6 &a6,
const A7 &a7,
const A8 &a8,
const A9 &a9)
1886 #endif // DOXYGEN_PREPROC
1888 #endif // KLOCALIZEDSTRING_H
1890 #ifndef DOXYGEN_PREPROC
1895 #ifdef TRANSLATION_DOMAIN
1896 #define i18n(...) i18nd(TRANSLATION_DOMAIN, __VA_ARGS__)
1897 #define i18nc(...) i18ndc(TRANSLATION_DOMAIN, __VA_ARGS__)
1898 #define i18np(...) i18ndp(TRANSLATION_DOMAIN, __VA_ARGS__)
1899 #define i18ncp(...) i18ndcp(TRANSLATION_DOMAIN, __VA_ARGS__)
1900 #define ki18n(...) ki18nd(TRANSLATION_DOMAIN, __VA_ARGS__)
1901 #define ki18nc(...) ki18ndc(TRANSLATION_DOMAIN, __VA_ARGS__)
1902 #define ki18np(...) ki18ndp(TRANSLATION_DOMAIN, __VA_ARGS__)
1903 #define ki18ncp(...) ki18ndcp(TRANSLATION_DOMAIN, __VA_ARGS__)
1904 #define tr2i18n(...) tr2i18nd(TRANSLATION_DOMAIN, __VA_ARGS__)
1905 #define xi18n(...) xi18nd(TRANSLATION_DOMAIN, __VA_ARGS__)
1906 #define xi18nc(...) xi18ndc(TRANSLATION_DOMAIN, __VA_ARGS__)
1907 #define xi18np(...) xi18ndp(TRANSLATION_DOMAIN, __VA_ARGS__)
1908 #define xi18ncp(...) xi18ndcp(TRANSLATION_DOMAIN, __VA_ARGS__)
1909 #define kxi18n(...) kxi18nd(TRANSLATION_DOMAIN, __VA_ARGS__)
1910 #define kxi18nc(...) kxi18ndc(TRANSLATION_DOMAIN, __VA_ARGS__)
1911 #define kxi18np(...) kxi18ndp(TRANSLATION_DOMAIN, __VA_ARGS__)
1912 #define kxi18ncp(...) kxi18ndcp(TRANSLATION_DOMAIN, __VA_ARGS__)
1913 #define tr2xi18n(...) tr2i18nd(TRANSLATION_DOMAIN, __VA_ARGS__)
1935 #endif // DOXYGEN_PREPROC