KDECore
KTranscript Class Referenceabstract
#include <ktranscript_p.h>
Inherited by KTranscriptImp.
Public Member Functions | |
virtual | ~KTranscript () |
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 |
virtual QStringList | postCalls (const QString &lang)=0 |
Detailed Description
class for supporting programmable translations
(used by KLocalizedString)
KTranscript provides support for programmable translations. The class is abstract in order to facilitate dynamic loading.
Definition at line 38 of file ktranscript_p.h.
Constructor & Destructor Documentation
|
inlinevirtual |
Destructor.
Definition at line 87 of file ktranscript_p.h.
Member Function Documentation
|
pure virtual |
Evaluates interpolation.
- Parameters
-
argv list of interpolation tokens lang language of the translation ctry locale country msgctxt message context dynctxt dynamic context msgid original message subs substitutions for message placeholders vals values that were formatted to substitutions final finalized ordinary translation mods scripting modules to load; the list is cleared after loading error set to the message detailing the problem, if the script failed; set to empty otherwise fallback set to true if the script requested fallback to ordinary translation; set to false otherwise
- Returns
- resolved interpolation if evaluation succeeded, empty string otherwise
|
pure virtual |
Returns the list of calls to execute an all messages after the interpolations are done, as evaluations with no parameters.
- Parameters
-
lang language of the translation
- Returns
- list of post calls
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 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:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.