Kross
#include <translation.h>
Public Slots | |
QString | i18n (const QString &text, const QVariantList &arguments=QVariantList()) const |
QString | i18nc (const QString &context, const QString &text, const QVariantList &arguments=QVariantList()) const |
QString | i18ncp (const QString &context, const QString &singular, const QString &plural, int number, const QVariantList &arguments=QVariantList()) const |
QString | i18np (const QString &singular, const QString &plural, int number, const QVariantList &arguments=QVariantList()) const |
Public Member Functions | |
TranslationModule () | |
virtual | ~TranslationModule () |
Protected Member Functions | |
KLocalizedString | substituteArguments (const KLocalizedString &kls, const QVariantList &arguments, int max=99) const |
Detailed Description
The TranslationModule provides access to KDE translation and internationalization facilities.
Example (in Python) :
Definition at line 43 of file translation.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 51 of file translation.cpp.
|
virtual |
Definition at line 57 of file translation.cpp.
Member Function Documentation
|
slot |
Creates localized string from a given text
. Substitute arguments
(may be empty)
Definition at line 80 of file translation.cpp.
|
slot |
Creates localized string from a given text
, with added context. Substitute arguments
(may be empty)
Definition at line 86 of file translation.cpp.
|
slot |
Creates localized string from a given plural
and singular
form dependent on number
, with added context. Substitute arguments
(may be empty)
Definition at line 98 of file translation.cpp.
|
slot |
Creates localized string from a given plural
and singular
form dependent on number
. Substitute arguments
(may be empty)
Definition at line 92 of file translation.cpp.
|
protected |
Definition at line 62 of file translation.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.