PrismLauncher/api/logic/translations/POTranslator.h
Petr Mrázek 4b7971f60f NOISSUE hotloading of translations and use of local PO files
The hotloading is still inefficient
2019-01-02 01:41:07 +01:00

17 lines
407 B
C++

#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;
};