mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
25 lines
492 B
C++
25 lines
492 B
C++
#ifndef DEFAULT_TRANSLATOR_H_
|
|
#define DEFAULT_TRANSLATOR_H_
|
|
|
|
#include <QSet>
|
|
#include <QTranslator>
|
|
|
|
// ===================================================================
|
|
|
|
class DefaultTranslator : public QTranslator {
|
|
public:
|
|
DefaultTranslator ();
|
|
~DefaultTranslator () = default;
|
|
|
|
QString translate (
|
|
const char *context,
|
|
const char *source_text,
|
|
const char *disambiguation = Q_NULLPTR,
|
|
int n = -1
|
|
) const override;
|
|
|
|
private:
|
|
QSet<QString> m_contexts;
|
|
};
|
|
|
|
#endif
|