• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

Public Member Functions
KTranscript Class Reference

#include <ktranscript_p.h>

Inherited by KTranscriptImp.

List of all members.

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.

Author:
Chusslove Illich <caslav.ilic@gmx.net>

Constructor & Destructor Documentation

virtual KTranscript::~KTranscript ( ) [inline, virtual]

Destructor.

Definition at line 87 of file ktranscript_p.h.


Member Function Documentation

virtual QString KTranscript::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 
) [pure virtual]

Evaluates interpolation.

Parameters:
argvlist of interpolation tokens
langlanguage of the translation
ctrylocale country
msgctxtmessage context
dynctxtdynamic context
msgidoriginal message
subssubstitutions for message placeholders
valsvalues that were formatted to substitutions
finalfinalized ordinary translation
modsscripting modules to load; the list is cleared after loading
errorset to the message detailing the problem, if the script failed; set to empty otherwise
fallbackset to true if the script requested fallback to ordinary translation; set to false otherwise
Returns:
resolved interpolation if evaluation succeeded, empty string otherwise
virtual QStringList KTranscript::postCalls ( const QString &  lang) [pure virtual]

Returns the list of calls to execute an all messages after the interpolations are done, as evaluations with no parameters.

Parameters:
langlanguage of the translation
Returns:
list of post calls

The documentation for this class was generated from the following file:
  • ktranscript_p.h

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal