KDECore
klocalizedstring.cpp
Go to the documentation of this file.
233 kDebug(173) << QString::fromLatin1("Plural argument to message {%1} not supplied before conversion.")
282 kDebug(173) << QString::fromLatin1("Scripted message {%1} before transcript engine can be loaded.")
295 kDebug(173) << QString::fromLatin1("Scripted message {%1} without ordinary translation, discarded.")
456 kDebug(173) << QString::fromLatin1("%1 instead of %2 arguments to message {%3} supplied before conversion.")
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString & append(QChar ch)
static void notifyCatalogsUpdated(const QStringList &languages, const QList< KCatalogName > &catalogs)
Definition: klocalizedstring.cpp:974
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
static QString escape(const QString &text)
Convert &, ", ', <, > characters into XML entities &, <, >, ', ", respectively.
Definition: kuitsemantics.cpp:1633
KLocalizedString ki18n(const char *msg)
Creates localized string from a given message.
Definition: klocalizedstring.cpp:924
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is just for convenience.
Definition: kstandarddirs.cpp:2085
const T & at(int i) const
Definition: kcatalogname_p.h:25
QString join(const QString &separator) const
KLocalizedString inContext(const QString &key, const QString &text) const
Adds dynamic context to the message.
Definition: klocalizedstring.cpp:916
bool useTranscript() const
Reports whether evaluation of translation scripts is enabled.
Definition: klocale.cpp:630
KLocalizedString ki18np(const char *singular, const char *plural)
Creates localized string from a given plural and singular form.
Definition: klocalizedstring.cpp:934
int size() const
void clear()
QString number(int n, int base)
void append(const T &value)
QString fromUtf8(const char *str, int size)
void resize(int size)
int toInt(bool *ok, int base) const
bool isEmpty() const
Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level...
Definition: klibrary.h:38
QString country() const
Returns the country code of the country where the user lives.
Definition: klocale.cpp:116
void translateRawFrom(const char *catname, const char *msg, QString *lang, QString *trans) const
Definition: klocale.cpp:158
bool load()
KLocalizedString ki18ncp(const char *ctxt, const char *singular, const char *plural)
Creates localized string from a given plural and singular form, with added context.
Definition: klocalizedstring.cpp:939
const T & at(int i) const
void_function_ptr resolveFunction(const char *name)
Looks up a symbol from the library.
Definition: klibrary.cpp:181
QString mid(int position, int n) const
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
T & last()
int length() const
KLocalizedString & operator=(const KLocalizedString &rhs)
Assignment operator.
Definition: klocalizedstring.cpp:173
QString left(int n) const
KLocalizedString subs(int a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
Substitutes an int argument into the message.
Definition: klocalizedstring.cpp:792
QString fromLatin1(const char *str, int size)
bool isValid() const
KLocalizedString()
Constructs an empty message, which is not valid for finalization.
Definition: klocalizedstring.cpp:148
int size() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Class for producing and handling localized messages.
Definition: klocalizedstring.h:299
static QString defaultLanguage()
Returns the name of the internal language.
Definition: klocale.cpp:615
static QString wrapNum(const QString &tag, const QString &numstr, int fieldWidth, const QChar &fillChar)
Definition: klocalizedstring.cpp:777
QString errorString() const
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.