KI18n
klazylocalizedstring.h
39 * const auto it = std::find_if(std::begin(vehicle_msg_table), std::end(vehicle_msg_table), [vehicleType](const auto &m) { return m.type == vehicleType; });
207 Q_REQUIRED_RESULT inline KLocalizedString subs(int a, int fieldWidth = 0, int base = 10, QChar fillChar = QLatin1Char(' ')) const
224 Q_REQUIRED_RESULT inline KLocalizedString subs(uint a, int fieldWidth = 0, int base = 10, QChar fillChar = QLatin1Char(' ')) const
241 Q_REQUIRED_RESULT inline KLocalizedString subs(long a, int fieldWidth = 0, int base = 10, QChar fillChar = QLatin1Char(' ')) const
258 Q_REQUIRED_RESULT inline KLocalizedString subs(ulong a, int fieldWidth = 0, int base = 10, QChar fillChar = QLatin1Char(' ')) const
275 Q_REQUIRED_RESULT inline KLocalizedString subs(qlonglong a, int fieldWidth = 0, int base = 10, QChar fillChar = QLatin1Char(' ')) const
292 Q_REQUIRED_RESULT inline KLocalizedString subs(qulonglong a, int fieldWidth = 0, int base = 10, QChar fillChar = QLatin1Char(' ')) const
308 Q_REQUIRED_RESULT inline KLocalizedString subs(double a, int fieldWidth = 0, char format = 'g', int precision = -1, QChar fillChar = QLatin1Char(' ')) const
323 Q_REQUIRED_RESULT inline KLocalizedString subs(QChar a, int fieldWidth = 0, QChar fillChar = QLatin1Char(' ')) const
338 Q_REQUIRED_RESULT inline KLocalizedString subs(const QString &a, int fieldWidth = 0, QChar fillChar = QLatin1Char(' ')) const
353 Q_REQUIRED_RESULT inline KLocalizedString subs(const KLocalizedString &a, int fieldWidth = 0, QChar fillChar = QLatin1Char(' ')) const
367 Q_REQUIRED_RESULT inline KLocalizedString inContext(const QString &key, const QString &value) const
413 friend constexpr inline KLazyLocalizedString kli18nc(const char (&context)[ContextSize], const char (&text)[TextSize]);
415 friend constexpr inline KLazyLocalizedString kli18np(const char (&singular)[SingularSize], const char (&plural)[PluralSize]);
418 kli18ncp(const char (&context)[ContextSize], const char (&singular)[SingularSize], const char (&plural)[PluralSize]);
422 friend constexpr inline KLazyLocalizedString klxi18nc(const char (&context)[ContextSize], const char (&text)[TextSize]);
424 friend constexpr inline KLazyLocalizedString klxi18np(const char (&singular)[SingularSize], const char (&plural)[PluralSize]);
427 klxi18ncp(const char (&context)[ContextSize], const char (&singular)[SingularSize], const char (&plural)[PluralSize]);
429 constexpr inline KLazyLocalizedString(const char *context, const char *text, const char *plural, bool markupAware)
465constexpr inline KLazyLocalizedString kli18nc(const char (&context)[ContextSize], const char (&text)[TextSize])
479constexpr inline KLazyLocalizedString kli18np(const char (&singular)[SingularSize], const char (&plural)[PluralSize])
494constexpr inline KLazyLocalizedString kli18ncp(const char (&context)[ContextSize], const char (&singular)[SingularSize], const char (&plural)[PluralSize])
521constexpr inline KLazyLocalizedString klxi18nc(const char (&context)[ContextSize], const char (&text)[TextSize])
535constexpr inline KLazyLocalizedString klxi18np(const char (&singular)[SingularSize], const char (&plural)[PluralSize])
550constexpr inline KLazyLocalizedString klxi18ncp(const char (&context)[ContextSize], const char (&singular)[SingularSize], const char (&plural)[PluralSize])
Lazy-initialized variant of KLocalizedString.
Definition klazylocalizedstring.h:51
friend constexpr KLazyLocalizedString kli18ncp(const char(&context)[ContextSize], const char(&singular)[SingularSize], const char(&plural)[PluralSize])
Mark the string singular and plural with context for extraction.
Definition klazylocalizedstring.h:494
KLocalizedString withLanguages(const QStringList &languages) const
Indicate to look for translation only in given languages.
Definition klazylocalizedstring.h:166
friend constexpr KLazyLocalizedString klxi18np(const char(&singular)[SingularSize], const char(&plural)[PluralSize])
Mark the markup-aware string singular and plural for extraction.
Definition klazylocalizedstring.h:535
constexpr const char * untranslatedText() const
Returns the raw untranslated text as passed to kli18n*.
Definition klazylocalizedstring.h:101
KLocalizedString subs(qulonglong a, int fieldWidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
Substitute an unsigned long long argument into the message.
Definition klazylocalizedstring.h:292
constexpr KLazyLocalizedString()=default
Construct an empty message.
KLocalizedString subs(int a, int fieldWidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
Substitute an int argument into the message.
Definition klazylocalizedstring.h:207
KLocalizedString subs(qlonglong a, int fieldWidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
Substitute a long long argument into the message.
Definition klazylocalizedstring.h:275
KLocalizedString subs(const KLocalizedString &a, int fieldWidth=0, QChar fillChar=QLatin1Char(' ')) const
Substitute another KLocalizedString into the message.
Definition klazylocalizedstring.h:353
KLocalizedString withFormat(Kuit::VisualFormat format) const
Indicate to resolve KUIT markup into given visual format.
Definition klazylocalizedstring.h:190
KLocalizedString subs(const QString &a, int fieldWidth=0, QChar fillChar=QLatin1Char(' ')) const
Substitute a QString argument into the message.
Definition klazylocalizedstring.h:338
friend constexpr KLazyLocalizedString klxi18n(const char(&text)[TextSize])
Mark the markup-aware string text for extraction.
Definition klazylocalizedstring.h:507
KLocalizedString subs(long a, int fieldWidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
Substitute a long argument into the message.
Definition klazylocalizedstring.h:241
KLocalizedString subs(uint a, int fieldWidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
Substitute an unsigned int argument into the message.
Definition klazylocalizedstring.h:224
friend constexpr KLazyLocalizedString kli18nc(const char(&context)[ContextSize], const char(&text)[TextSize])
Mark the string text with context for extraction.
Definition klazylocalizedstring.h:465
friend constexpr KLazyLocalizedString kli18np(const char(&singular)[SingularSize], const char(&plural)[PluralSize])
Mark the string singular and plural for extraction.
Definition klazylocalizedstring.h:479
QString toString(const char *domain) const
Like toString(), but look for translation in the given domain.
Definition klazylocalizedstring.h:141
QString toString(const QStringList &languages) const
Like toString(), but look for translation only in given languages.
Definition klazylocalizedstring.h:130
KLocalizedString subs(double a, int fieldWidth=0, char format='g', int precision=-1, QChar fillChar=QLatin1Char(' ')) const
Substitute a double argument into the message.
Definition klazylocalizedstring.h:308
friend constexpr KLazyLocalizedString klxi18ncp(const char(&context)[ContextSize], const char(&singular)[SingularSize], const char(&plural)[PluralSize])
Mark the markup-aware string singular and plural with context for extraction.
Definition klazylocalizedstring.h:550
friend constexpr KLazyLocalizedString kli18n(const char(&text)[TextSize])
Mark the string text for extraction.
Definition klazylocalizedstring.h:451
KLocalizedString subs(ulong a, int fieldWidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
Substitute an unsigned long argument into the message.
Definition klazylocalizedstring.h:258
constexpr bool isEmpty() const
Check whether the message is empty.
Definition klazylocalizedstring.h:95
friend constexpr KLazyLocalizedString klxi18nc(const char(&context)[ContextSize], const char(&text)[TextSize])
Mark the markup-aware string text with context for extraction.
Definition klazylocalizedstring.h:521
KLocalizedString inContext(const QString &key, const QString &value) const
Add dynamic context to the message.
Definition klazylocalizedstring.h:367
KLocalizedString relaxSubs() const
Relax matching between placeholders and arguments.
Definition klazylocalizedstring.h:389
KLocalizedString ignoreMarkup() const
Do not resolve KUIT markup.
Definition klazylocalizedstring.h:404
QString toString(Kuit::VisualFormat format) const
Like toString(), but resolve KUIT markup into given visual format.
Definition klazylocalizedstring.h:155
KLocalizedString subs(QChar a, int fieldWidth=0, QChar fillChar=QLatin1Char(' ')) const
Substitute a QChar argument into the message.
Definition klazylocalizedstring.h:323
KLocalizedString withDomain(const char *domain) const
Indicate to look for translation in the given domain.
Definition klazylocalizedstring.h:177
Class for producing and handling localized messages.
Definition klocalizedstring.h:45
KLocalizedString inContext(const QString &key, const QString &value) const
Add dynamic context to the message.
Definition klocalizedstring.cpp:1180
KLocalizedString withDomain(const char *domain) const
Indicate to look for translation in the given domain.
Definition klocalizedstring.cpp:1070
KLocalizedString withFormat(Kuit::VisualFormat format) const
Indicate to resolve KUIT markup into given visual format.
Definition klocalizedstring.cpp:1077
KLocalizedString withLanguages(const QStringList &languages) const
Indicate to look for translation only in given languages.
Definition klocalizedstring.cpp:1063
KLocalizedString ignoreMarkup() const
Do not resolve KUIT markup.
Definition klocalizedstring.cpp:1194
KLocalizedString subs(int a, int fieldWidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
Substitute an int argument into the message.
Definition klocalizedstring.cpp:1084
KLocalizedString relaxSubs() const
Relax matching between placeholders and arguments.
Definition klocalizedstring.cpp:1187
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:08:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:08:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.