38 #ifndef METATRANSLATOR_H
39 #define METATRANSLATOR_H
46 #include <QtCore/QDir>
63 bool load(
const QString& filename );
64 bool save(
const QString& filename )
const;
65 bool release(
const QString& filename,
bool verbose =
false,
66 bool ignoreUnfinished =
false,
68 bool release( QIODevice *iod,
bool verbose =
false,
69 bool ignoreUnfinished =
false,
72 bool contains(
const QByteArray &context,
const QByteArray &sourceText,
73 const QByteArray &comment)
const;
76 const QByteArray &sourceText,
const QByteArray &comment)
const;
79 const QByteArray &comment,
const QString &fileName,
int lineNumber)
const;
93 QString
toUnicode(
const char *str,
bool utf8 )
const;
102 QLocale::Language lang, QLocale::Country country);
105 typedef QMap<TranslatorMessage, int>
TMM;
106 typedef QMap<int, TranslatorMessage>
TMMInv;
107 bool saveTS(
const QString& filename )
const;
108 bool saveXLIFF(
const QString& filename)
const;
132 #define ContextComment "QT_LINGUIST_INTERNAL_CONTEXT_COMMENT"