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

KDECore

Public Member Functions | List of all members
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.

Author
Chusslove Illich casla.nosp@m.v.il.nosp@m.ic@gm.nosp@m.x.ne.nosp@m.t

Definition at line 38 of file ktranscript_p.h.

Constructor & Destructor Documentation

virtual KTranscript::~KTranscript ( )
inlinevirtual

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
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

KDE's Doxygen guidelines are available online.

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 API Reference

Skip menu "kdelibs API Reference"
  • 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

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal