Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ngltranslator_export.h"
|
||||
#include <QByteArray>
|
||||
#include <QString>
|
||||
#include <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();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user