Kate
katescripthelpers.cpp
Go to the documentation of this file.
70 const QString fullName = KGlobal::dirs()->findResource ("data", "katepart/script/files/" + name);
105 const QString fullName = KGlobal::dirs()->findResource ("data", "katepart/script/libraries/" + name);
167 KLocalizedString substituteArguments( const KLocalizedString &kls, const QVariantList &arguments, int max = 99 )
307 KLocalizedString ls = ki18ncp(trContext.toUtf8(), trSingular.toUtf8(), trPlural.toUtf8()).subs( number );
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
QScriptValue debug(QScriptContext *context, QScriptEngine *engine)
Definition: katescripthelpers.cpp:154
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
QString toString() const
QScriptValue i18np(QScriptContext *context, QScriptEngine *engine)
i18np("singular", "plural", number, arguments [optional])
Definition: katescripthelpers.cpp:239
QScriptValue i18nc(QScriptContext *context, QScriptEngine *engine)
i18nc("context", "text", arguments [optional])
Definition: katescripthelpers.cpp:210
KLocalizedString ki18n(const char *msg)
KStandardDirs * dirs()
const char * name(StandardAction id)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KLocalizedString ki18np(const char *singular, const char *plural)
QScriptValue i18ncp(QScriptContext *context, QScriptEngine *engine)
i18ncp("context", "singular", "plural", number, arguments [optional])
Definition: katescripthelpers.cpp:273
bool readFile(const QString &sourceUrl, QString &sourceCode)
read complete file contents, helper
Definition: katescripthelpers.cpp:41
QScriptValue require(QScriptContext *context, QScriptEngine *engine)
Definition: katescripthelpers.cpp:94
QScriptValue read(QScriptContext *context, QScriptEngine *)
Definition: katescripthelpers.cpp:58
KLocalizedString ki18ncp(const char *ctxt, const char *singular, const char *plural)
KLocalizedString substituteArguments(const KLocalizedString &kls, const QVariantList &arguments, int max=99)
helper function to do the substitution from QtScript > QVariant > real values
Definition: katescripthelpers.cpp:167
KLocalizedString ki18nc(const char *ctxt, const char *msg)
QString findResource(const char *type, const QString &filename) const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KLocalizedString subs(int a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
QString number(KIO::filesize_t size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.