37 lines
767 B
C++
37 lines
767 B
C++
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "ngltranslator_export.h"
|
|
#include <QtCore/QByteArray>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QVector>
|
|
|
|
namespace NGL
|
|
{
|
|
|
|
struct TranslationEntry
|
|
{
|
|
QByteArray isoCode;
|
|
QByteArray context;
|
|
QByteArray key;
|
|
QByteArray disambiguation;
|
|
QString translation;
|
|
};
|
|
using TranslationCatalog = QVector<TranslationEntry>;
|
|
|
|
|
|
NGLTRANSLATOR_EXPORT void setTranslationCatalog(const TranslationCatalog &catalog);
|
|
|
|
|
|
NGLTRANSLATOR_EXPORT bool setTranslationDataJson(const QByteArray &jsonData, const QByteArray &md5Sum, bool bCompressed);
|
|
|
|
|
|
NGLTRANSLATOR_EXPORT bool setTranslationLocale(const QByteArray &isoCode, const QString &qmPrefix = QStringLiteral("tds"));
|
|
|
|
|
|
NGLTRANSLATOR_EXPORT QByteArray translationLocale();
|
|
|
|
}
|