2019-01-02 06:11:07 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QTranslator>
|
|
|
|
|
|
|
|
struct POTranslatorPrivate;
|
|
|
|
|
|
|
|
class POTranslator : public QTranslator
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit POTranslator(const QString& filename, QObject * parent = nullptr);
|
2022-06-17 20:04:32 +05:30
|
|
|
virtual ~POTranslator();
|
2019-01-02 06:11:07 +05:30
|
|
|
QString translate(const char * context, const char * sourceText, const char * disambiguation, int n) const override;
|
|
|
|
bool isEmpty() const override;
|
|
|
|
private:
|
|
|
|
POTranslatorPrivate * d;
|
|
|
|
};
|