lokalize
#include <catalogitem.h>
Public Types | |
enum | Part { Source, Target } |
Public Member Functions | |
CatalogItem () | |
CatalogItem (const CatalogItem &) | |
~CatalogItem () | |
QStringList | allPluralForms (CatalogItem::Part, bool stripNewLines=false) const |
void | clear () |
QString | comment () const |
bool | isCformat () const |
bool | isFuzzy () const |
bool | isNoCformat () const |
bool | isNoQtformat () const |
bool | isPlural () const |
bool | isQtformat () const |
bool | isUntranslated () const |
bool | isUntranslated (uint form) const |
bool | isValid () const |
bool | keepEmptyMsgCtxt () const |
const QString & | msgctxt (const bool noNewlines=false) const |
const QString & | msgid (const int form=0) const |
const QString & | msgstr (const int form=0) const |
QStringList | msgstrAsList () const |
const QVector< QString > & | msgstrPlural () const |
void | operator= (const CatalogItem &rhs) |
bool | prependEmptyForMsgid (const int form=0) const |
bool | prependEmptyForMsgstr (const int form=0) const |
void | setComment (const QString &com) |
void | setMsgctxt (const QString &msg) |
void | setMsgid (const QString &msg, const int form=0) |
void | setMsgid (const QStringList &msg) |
void | setMsgid (const QStringList &msg, bool prependEmptyLine) |
void | setMsgid (const QVector< QString > &msg) |
void | setMsgstr (const QString &msg, const int form=0) |
void | setMsgstr (const QStringList &msg) |
void | setMsgstr (const QStringList &msg, bool prependEmptyLine) |
void | setMsgstr (const QVector< QString > &msg) |
void | setPlural (bool plural=true) |
void | setSyntaxError (bool) |
void | setValid (bool) |
int | totalLines () const |
Detailed Description
This class represents an entry in a catalog.
It contains the comment, the Msgid and the Msgstr. It defines some functions to query the state of the entry (fuzzy, untranslated, cformat).
Represents an entry in a Gettext catalog
Definition at line 55 of file catalogitem.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Source | |
Target |
Definition at line 88 of file catalogitem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 44 of file catalogitem.cpp.
CatalogItem::CatalogItem | ( | const CatalogItem & | item | ) |
Definition at line 49 of file catalogitem.cpp.
CatalogItem::~CatalogItem | ( | ) |
Definition at line 55 of file catalogitem.cpp.
Member Function Documentation
QStringList CatalogItem::allPluralForms | ( | CatalogItem::Part | part, |
bool | stripNewLines = false |
||
) | const |
Definition at line 101 of file catalogitem.cpp.
void CatalogItem::clear | ( | ) |
cleares the item
Definition at line 302 of file catalogitem.cpp.
QString CatalogItem::comment | ( | ) | const |
Definition at line 62 of file catalogitem.cpp.
bool GettextCatalog::CatalogItem::isCformat | ( | ) | const |
bool CatalogItem::isFuzzy | ( | ) | const |
Definition at line 207 of file catalogitem.cpp.
bool GettextCatalog::CatalogItem::isNoCformat | ( | ) | const |
bool GettextCatalog::CatalogItem::isNoQtformat | ( | ) | const |
bool CatalogItem::isPlural | ( | ) | const |
Definition at line 202 of file catalogitem.cpp.
bool GettextCatalog::CatalogItem::isQtformat | ( | ) | const |
bool CatalogItem::isUntranslated | ( | ) | const |
Definition at line 212 of file catalogitem.cpp.
bool CatalogItem::isUntranslated | ( | uint | form | ) | const |
Definition at line 217 of file catalogitem.cpp.
bool CatalogItem::isValid | ( | ) | const |
Definition at line 112 of file catalogitem.cpp.
bool CatalogItem::keepEmptyMsgCtxt | ( | ) | const |
Definition at line 129 of file catalogitem.cpp.
const QString & CatalogItem::msgctxt | ( | const bool | noNewlines = false | ) | const |
Definition at line 67 of file catalogitem.cpp.
const QString & CatalogItem::msgid | ( | const int | form = 0 | ) | const |
Definition at line 73 of file catalogitem.cpp.
const QString & CatalogItem::msgstr | ( | const int | form = 0 | ) | const |
Definition at line 78 of file catalogitem.cpp.
QStringList CatalogItem::msgstrAsList | ( | ) | const |
Definition at line 313 of file catalogitem.cpp.
Definition at line 96 of file catalogitem.cpp.
void CatalogItem::operator= | ( | const CatalogItem & | rhs | ) |
Definition at line 307 of file catalogitem.cpp.
bool CatalogItem::prependEmptyForMsgid | ( | const int | form = 0 | ) | const |
Definition at line 86 of file catalogitem.cpp.
bool CatalogItem::prependEmptyForMsgstr | ( | const int | form = 0 | ) | const |
Definition at line 91 of file catalogitem.cpp.
void CatalogItem::setComment | ( | const QString & | com | ) |
Definition at line 187 of file catalogitem.cpp.
void CatalogItem::setMsgctxt | ( | const QString & | msg | ) |
Definition at line 122 of file catalogitem.cpp.
void CatalogItem::setMsgid | ( | const QString & | msg, |
const int | form = 0 |
||
) |
Definition at line 134 of file catalogitem.cpp.
void CatalogItem::setMsgid | ( | const QStringList & | msg | ) |
Definition at line 141 of file catalogitem.cpp.
void CatalogItem::setMsgid | ( | const QStringList & | msg, |
bool | prependEmptyLine | ||
) |
Definition at line 148 of file catalogitem.cpp.
Definition at line 156 of file catalogitem.cpp.
void CatalogItem::setMsgstr | ( | const QString & | msg, |
const int | form = 0 |
||
) |
Definition at line 163 of file catalogitem.cpp.
void CatalogItem::setMsgstr | ( | const QStringList & | msg | ) |
Definition at line 170 of file catalogitem.cpp.
void CatalogItem::setMsgstr | ( | const QStringList & | msg, |
bool | prependEmptyLine | ||
) |
Definition at line 176 of file catalogitem.cpp.
Definition at line 182 of file catalogitem.cpp.
void CatalogItem::setPlural | ( | bool | plural = true | ) |
Definition at line 197 of file catalogitem.cpp.
void GettextCatalog::CatalogItem::setSyntaxError | ( | bool | ) |
void CatalogItem::setValid | ( | bool | a | ) |
Definition at line 117 of file catalogitem.cpp.
int GettextCatalog::CatalogItem::totalLines | ( | ) | const |
returns the number of lines, the entry will need in a file
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.