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.")
Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level...
Definition klibrary.h:39
void_function_ptr resolveFunction(const char *name)
Looks up a symbol from the library.
Definition klibrary.cpp:181
KLocale provides support for country specific stuff like the national language.
Definition klocale.h:70
void translateRawFrom(const char *catname, const char *msg, QString *lang, QString *trans) const
Definition klocale.cpp:158
static QString defaultLanguage()
Returns the name of the internal language.
Definition klocale.cpp:615
QString country() const
Returns the country code of the country where the user lives.
Definition klocale.cpp:116
bool useTranscript() const
Reports whether evaluation of translation scripts is enabled.
Definition klocale.cpp:630
Class for producing and handling localized messages.
Definition klocalizedstring.h:300
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
KLocalizedString()
Constructs an empty message, which is not valid for finalization.
Definition klocalizedstring.cpp:148
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition klocalizedstring.cpp:192
KLocalizedString & operator=(const KLocalizedString &rhs)
Assignment operator.
Definition klocalizedstring.cpp:173
KLocalizedString inContext(const QString &key, const QString &text) const
Adds dynamic context to the message.
Definition klocalizedstring.cpp:916
static void notifyCatalogsUpdated(const QStringList &languages, const QList< KCatalogName > &catalogs)
Definition klocalizedstring.cpp:974
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is just for convenience.
Definition kstandarddirs.cpp:2091
virtual QStringList postCalls(const QString &lang)=0
Returns the list of calls to execute an all messages after the interpolations are done,...
virtual QString eval(const QList< QVariant > &argv, const QString &lang, const QString &ctry, const QString &msgctxt, const QHash< QString, QString > &dynctxt, const QString &msgid, const QStringList &subs, const QList< QVariant > &vals, const QString &final, QList< QStringList > &mods, QString &error, bool &fallback)=0
Evaluates interpolation.
static QString escape(const QString &text)
Convert &, ", ', <, > characters into XML entities &, <, >, ', ", respectively.
Definition kuitsemantics.cpp:1633
Definition ksycocafactory.h:28
Definition kaboutdata.h:33
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition kglobal.h:221
KLocalizedString ki18n(const char *msg)
Creates localized string from a given message.
Definition klocalizedstring.cpp:924
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
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition klocalizedstring.cpp:929
KLocalizedString ki18np(const char *singular, const char *plural)
Creates localized string from a given plural and singular form.
Definition klocalizedstring.cpp:934
static QString wrapNum(const QString &tag, const QString &numstr, int fieldWidth, const QChar &fillChar)
Definition klocalizedstring.cpp:777
Definition kcatalogname_p.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.