NOISSUE hotloading of translations and use of local PO files
The hotloading is still inefficient
This commit is contained in:
16
api/logic/translations/POTranslator.h
Normal file
16
api/logic/translations/POTranslator.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <QTranslator>
|
||||
|
||||
struct POTranslatorPrivate;
|
||||
|
||||
class POTranslator : public QTranslator
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit POTranslator(const QString& filename, QObject * parent = nullptr);
|
||||
QString translate(const char * context, const char * sourceText, const char * disambiguation, int n) const override;
|
||||
bool isEmpty() const override;
|
||||
private:
|
||||
POTranslatorPrivate * d;
|
||||
};
|
Reference in New Issue
Block a user