lokalize
gettextstorage.cpp
Go to the documentation of this file.
59 //GettextImportPlugin importer=GettextImportPlugin(readonly?(new ExtraDataSaver()):(new ExtraDataListSaver()));
107 //GettextExportPlugin exporter(m_maxLineLength>70?m_maxLineLength:-1, m_trailingNewLines);// this is kinda hackish...
238 result<<AltTrans(CatalogString(*cur), i18n("Previous source value, saved by Gettext during transition to a newer POT template"));
268 QVector<Note> GettextStorage::notes(const DocPosition& docPosition, const QRegExp& re, int preLen) const
bool save(QIODevice *device, bool belongsToProject=false)
Definition: gettextstorage.cpp:89
bool isApproved(const DocPosition &pos) const
Definition: gettextstorage.cpp:368
static const QChar altSep(156)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void targetInsert(const DocPosition &pos, const QString &arg)
Definition: gettextstorage.cpp:173
QVector< Note > notes(const DocPosition &pos) const
Definition: gettextstorage.cpp:295
void append(const T &value)
CatalogString sourceWithTags(DocPosition pos) const
Definition: gettextstorage.cpp:151
QVector< Note > developerNotes(const DocPosition &pos) const
Definition: gettextstorage.cpp:301
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString & prepend(QChar ch)
This class represents an entry in a catalog.
Definition: catalogitem.h:55
The class for exporting GNU gettext PO files.
Definition: gettextexport.h:53
int size() const
QString id(const DocPosition &pos) const
entry id unique for this file
Definition: gettextstorage.cpp:349
iterator erase(iterator pos)
T & first()
QString join(const QString &separator) const
QVector< AltTrans > altTrans(const DocPosition &pos) const
Definition: gettextstorage.cpp:205
QString & remove(int position, int n)
void chop(int n)
CatalogString targetWithTags(DocPosition pos) const
Definition: gettextstorage.cpp:155
bool isEmpty(const DocPosition &pos) const
Definition: gettextstorage.cpp:380
QStringList sourceAllForms(const DocPosition &pos, bool stripNewLines=false) const
all plural forms. pos.form doesn't matter
Definition: gettextstorage.cpp:195
QString number(int n, int base)
void append(const T &value)
QStringList matchData(const DocPosition &pos) const
user-invisible data for matching, e.g.
Definition: gettextstorage.cpp:334
static QString content(QDomElement elem, ContentEditingData *data=0)
walks through XLIFF XML and performs actions depending on ContentEditingData:
Definition: tsstorage.cpp:170
bool isEmpty() const
bool isEmpty() const
QStringList context(const DocPosition &pos) const
Definition: gettextstorage.cpp:329
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QString source(const DocPosition &pos) const
flat-model interface (ignores XLIFF grouping)
Definition: gettextstorage.cpp:160
Note setNote(DocPosition pos, const Note ¬e)
Definition: gettextstorage.cpp:243
QStringList sourceFiles(const DocPosition &pos) const
Definition: gettextstorage.cpp:307
iterator end()
void targetDelete(const DocPosition &pos, int count)
edit operations used by undo/redo system and sync-mode
Definition: gettextstorage.cpp:169
QStringRef midRef(int position, int n) const
const QVector< QString > & msgstrPlural() const
Definition: catalogitem.cpp:96
QString & replace(int position, int n, QChar after)
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:128
QString mid(int position, int n) const
void setApproved(const DocPosition &pos, bool approved)
Definition: gettextstorage.cpp:372
void setComment(const QString &com)
Definition: catalogitem.cpp:187
const QString & msgstr(const int form=0) const
Definition: catalogitem.cpp:78
static CatalogString makeCatalogString(const QString &string)
Definition: gettextstorage.cpp:134
QStringList targetAllForms(const DocPosition &pos, bool stripNewLines=false) const
Definition: gettextstorage.cpp:200
InlineTag targetDeleteTag(const DocPosition &)
Definition: gettextstorage.cpp:189
void updateHeader(QString &header, QString &comment, QString &langCode, int &numberOfPluralForms, const QString &CatalogProjectId, bool generatedFromDocbook, bool belongsToProject, bool forSaving, QTextCodec *codec)
Definition: gettextheader.cpp:245
int count(const T &value) const
Definition: catalogstring.h:61
void setTarget(const DocPosition &pos, const QString &arg)
Definition: gettextstorage.cpp:177
void setMsgstr(const QString &msg, const int form=0)
Definition: catalogitem.cpp:163
ConversionStatus save(QIODevice *device, const GettextStorage *catalog, QTextCodec *codec)
Definition: gettextexport.cpp:63
QString target(const DocPosition &pos) const
Definition: gettextstorage.cpp:164
void prepend(const T &value)
void targetInsertTag(const DocPosition &, const InlineTag &)
Definition: gettextstorage.cpp:183
QStringList filter(const QString &str, Qt::CaseSensitivity cs) const
The class for importing GNU gettext PO files.
Definition: gettextimport.h:70
int size() const
bool isPlural(const DocPosition &pos) const
Definition: gettextstorage.cpp:363
iterator begin()
Definition: alttrans.h:30
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:44
ConversionStatus open(QIODevice *, GettextStorage *catalog, int *errorLine)
Load the file and fill the corresponding catalog.
Definition: importplugin.cpp:101
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.