KNewStuff
ktranslatable.cpp
Go to the documentation of this file.
QMap< QString, QString > stringmap() const
Returns a map of all languages and their strings.
Definition: ktranslatable.cpp:106
String class with multiple localized representations.
Definition: ktranslatable.h:41
void addString(const QString &lang, const QString &string)
Adds a string to the contents of this object.
Definition: ktranslatable.cpp:59
QString language() const
Returns the language which most likely resembles the current language.
Definition: ktranslatable.cpp:77
QStringList languageList() const
KTranslatable & operator=(const KTranslatable &)
Definition: ktranslatable.cpp:39
QStringList strings() const
Returns the list of all strings stored for all languages.
Definition: ktranslatable.cpp:101
QString representation() const
Returns the string which matches most closely the current language.
Definition: ktranslatable.cpp:64
bool isTranslated() const
Returns whether the content provides alternative (translated) strings.
Definition: ktranslatable.cpp:111
KLocale * locale()
QString translated(const QString &lang) const
Returns the string which matches most closely the specified language.
Definition: ktranslatable.cpp:89
Definition: knewstuff2/core/author.h:26
QStringList languages() const
Returns the list of all languages for which strings are stored.
Definition: ktranslatable.cpp:96
This file is part of the KDE documentation.
Documentation copyright © 1996-2018 The KDE developers.
Generated on Sun Feb 11 2018 21:15:13 by doxygen 1.8.14 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2018 The KDE developers.
Generated on Sun Feb 11 2018 21:15:13 by doxygen 1.8.14 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.