KI18n
klocalizedtranslator.cpp
45QString KLocalizedTranslator::translate(const char *context, const char *sourceText, const char *disambiguation, int n) const
47 if (d->translationDomain.isEmpty() || !d->monitoredContexts.contains(QString::fromUtf8(context))) {
53 return ki18ndc(d->translationDomain.toUtf8().constData(), disambiguation, sourceText).toString();
void addContextToMonitor(const QString &context)
Adds a context for which this Translator should be active.
Definition klocalizedtranslator.cpp:35
void setTranslationDomain(const QString &translationDomain)
Sets the translationDomain to be used.
Definition klocalizedtranslator.cpp:30
void removeContextToMonitor(const QString &context)
Stop translating for the given context.
Definition klocalizedtranslator.cpp:40
QString fromUtf8(QByteArrayView str)
virtual QString translate(const char *context, const char *sourceText, const char *disambiguation, int n) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.