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