![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "translator.h"#include <QtCore/QByteArray>#include <QtCore/QDebug>#include <QtCore/QRegularExpression>#include <QtCore/QTextStream>#include <QtCore/QXmlStreamReader>#include <algorithm>Go to the source code of this file.
Classes | |
| class | TSReader |
Functions | |
| QT_BEGIN_NAMESPACE QDebug & | operator<< (QDebug &d, const QXmlStreamAttribute &attr) |
| static QString | byteValue (QString value) |
| static QString | tsNumericEntity (int ch) |
| static QString | tsProtect (const QString &str) |
| static void | writeExtras (QTextStream &t, const char *indent, const TranslatorMessage::ExtraData &extras, QRegularExpression drops) |
| static void | writeVariants (QTextStream &t, const char *indent, const QString &input) |
| bool | saveTS (const Translator &translator, QIODevice &dev, ConversionData &cd) |
| bool | loadTS (Translator &translator, QIODevice &dev, ConversionData &cd) |
| int | initTS () |
| int initTS | ( | ) |
Definition at line 665 of file ts.cpp.
References Translator::FileFormat::loader, loadTS(), Translator::FileFormat::priority, Translator::registerFileFormat(), Translator::FileFormat::saver, saveTS(), Translator::FileFormat::TranslationSource, and Translator::FileFormat::untranslatedDescription.
| bool loadTS | ( | Translator & | translator, |
| QIODevice & | dev, | ||
| ConversionData & | cd ) |
Definition at line 659 of file ts.cpp.
References TSReader::TSReader(), and TSReader::read().
Referenced by initTS().
| QT_BEGIN_NAMESPACE QDebug & operator<< | ( | QDebug & | d, |
| const QXmlStreamAttribute & | attr ) |
| bool saveTS | ( | const Translator & | translator, |
| QIODevice & | dev, | ||
| ConversionData & | cd ) |
Definition at line 488 of file ts.cpp.
References Translator::extras(), ConversionData::sortContexts(), and ConversionData::sortMessages().
Referenced by initTS().
|
static |
|
static |