mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-22 06:58:24 +00:00
25 lines
527 B
C++
25 lines
527 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 // DEFAULT_TRANSLATOR_H_
|