lokalize
gettextexport.cpp
Go to the documentation of this file.
86 kWarning() << "Non-empty msgid for the header, assuming empty msgid!" << endl << headerMsgid << "---";
89 // ### FIXME: if it is the header, then the msgid should be empty! (Even if KBabel has made something out of a non-header first entry!)
113 writeKeyword( stream, "msgid_plural", catalogItem.msgid(1), true, catalogItem.prependEmptyForMsgid() );
116 writeKeyword( stream, "msgstr", catalogItem.msgstr(), true, catalogItem.prependEmptyForMsgstr() );
125 writeKeyword( stream, keyword, catalogItem.msgstr(i), true, catalogItem.prependEmptyForMsgstr() );
187 // Not leading white space and not a # character. so consider that the # character was missing at first position.
202 void GettextExportPlugin::writeKeyword( QTextStream& stream, const QString& keyword, QString text, bool containsHtml, bool startedWithEmptyLine ) const
void setCodec(QTextCodec *codec)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
const QString & msgid(const int form=0) const
Definition: catalogitem.cpp:73
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
This class represents an entry in a catalog.
Definition: catalogitem.h:55
short m_trailingNewLines
Definition: gettextexport.h:88
bool prependEmptyForMsgid(const int form=0) const
Definition: catalogitem.cpp:86
GettextExportPlugin(short wrapWidth=-1, short trailingNewLines=1)
Definition: gettextexport.cpp:57
bool keepEmptyMsgCtxt() const
Definition: catalogitem.cpp:129
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
bool prependEmptyForMsgstr(const int form=0) const
Definition: catalogitem.cpp:91
bool isEmpty() const
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
iterator end()
const QVector< QString > & msgstrPlural() const
Definition: catalogitem.cpp:96
QString & replace(int position, int n, QChar after)
const T & at(int i) const
QString mid(int position, int n) const
const QString & msgstr(const int form=0) const
Definition: catalogitem.cpp:78
void insert(int i, const T &value)
bool isEmpty() const
const QChar at(int position) const
int length() const
const QString & msgctxt(const bool noNewlines=false) const
Definition: catalogitem.cpp:67
ConversionStatus save(QIODevice *device, const GettextStorage *catalog, QTextCodec *codec)
Definition: gettextexport.cpp:63
void prepend(const T &value)
const_iterator constEnd() const
const_iterator constBegin() const
Implementation of storage for Gettext PO.
Definition: gettextstorage.h:39
iterator begin()
Definition: catalogfileplugin.h:54
This file is part of the KDE documentation.
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
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.