summaryrefslogtreecommitdiffstats
path: root/api/logic/translations/POTranslator.h
blob: 6d5185601e4a68230441baa71456cd8532da4b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
};