(37a4d711555f1876a5d861da556160e90d5f4e33)
#include "translator.h"
#include "xmlparser.h"
#include <QtCore/QDebug>
#include <QtCore/QMap>
#include <QtCore/QRegularExpression>
#include <QtCore/QStack>
#include <QtCore/QString>
#include <QtCore/QTextStream>
Go to the source code of this file.
|
static QString | dataType (const TranslatorMessage &m) |
|
static void | writeIndent (QTextStream &ts, int indent) |
|
static char | charFromEscape (char escape) |
|
static QString | xlNumericEntity (int ch, bool makePhs) |
|
static QString | xlProtect (const QString &str, bool makePhs=true) |
|
static void | writeExtras (QTextStream &ts, int indent, const TranslatorMessage::ExtraData &extras, QRegularExpression drops) |
|
static void | writeLineNumber (QTextStream &ts, const TranslatorMessage &msg, int indent) |
|
static void | writeComment (QTextStream &ts, const TranslatorMessage &msg, const QRegularExpression &drops, int indent) |
|
static void | writeTransUnits (QTextStream &ts, const TranslatorMessage &msg, const QRegularExpression &drops, int indent) |
|
static void | writeMessage (QTextStream &ts, const TranslatorMessage &msg, const QRegularExpression &drops, int indent) |
|
bool | loadXLIFF (Translator &translator, QIODevice &dev, ConversionData &cd) |
|
bool | saveXLIFF (const Translator &translator, QIODevice &dev, ConversionData &cd) |
|
int | initXLIFF () |
|
◆ COMBINE4CHARS
#define COMBINE4CHARS |
( |
| c1, |
|
|
| c2, |
|
|
| c3, |
|
|
| c4 ) |
Value: (int(c1) << 24 | int(
c2) << 16 | int(c3) << 8 | int(c4) )
Definition at line 38 of file xliff.cpp.
◆ MAGIC_OBSOLETE_REFERENCE
#define MAGIC_OBSOLETE_REFERENCE "Obsolete_PO_entries" |
◆ charFromEscape()
static char charFromEscape |
( |
char | escape | ) |
|
|
static |
◆ dataType()
◆ initXLIFF()
◆ loadXLIFF()
◆ saveXLIFF()
◆ writeComment()
◆ writeExtras()
◆ writeIndent()
◆ writeLineNumber()
◆ writeMessage()
◆ writeTransUnits()
◆ xlNumericEntity()
static QString xlNumericEntity |
( |
int | ch, |
|
|
bool | makePhs ) |
|
static |
◆ xlProtect()
◆ attribPlural
static const char * attribPlural = "trolltech:plural" |
|
static |
◆ charCodeMnemonics
Initial value:= {
{0x07, 'a', "bel"},
{0x08, 'b', "bs"},
{0x09, 't', "tab"},
{0x0a, 'n', "lf"},
{0x0b, 'v', "vt"},
{0x0c, 'f', "ff"},
{0x0d, 'r', "cr"}
}
Definition at line 85 of file xliff.cpp.
Referenced by charFromEscape(), and xlNumericEntity().
◆ contextMsgctxt
static const char * contextMsgctxt = "x-gettext-msgctxt" |
|
static |
◆ contextOldMsgctxt
static const char * contextOldMsgctxt = "x-gettext-previous-msgctxt" |
|
static |
◆ dataTypeUIFile
static const char * dataTypeUIFile = "x-trolltech-designer-ui" |
|
static |
◆ restypeContext
static const char * restypeContext = "x-trolltech-linguist-context" |
|
static |
Implementation of XLIFF file format for Linguist
Definition at line 27 of file xliff.cpp.
◆ restypeDummy
static const char * restypeDummy = "x-dummy" |
|
static |
◆ restypePlurals
static const char * restypePlurals = "x-gettext-plurals" |
|
static |
◆ TrollTsNamespaceURI
static const char * TrollTsNamespaceURI = "urn:trolltech:names:ts:document:1.0" |
|
static |
◆ XLIFF11namespaceURI
static const char * XLIFF11namespaceURI = "urn:oasis:names:tc:xliff:document:1.1" |
|
static |
◆ XLIFF12namespaceURI
static const char * XLIFF12namespaceURI = "urn:oasis:names:tc:xliff:document:1.2" |
|
static |