QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgsprojecttranslator.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprojecttranslator.h
3
4 ---------------------
5 begin : 24.7.2018
6 copyright : (C) 2018 by david signer
7 email : david at opengis dot ch
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSPROJECTTRANSLATOR_H
17#define QGSPROJECTTRANSLATOR_H
18
19#include "qgis_core.h"
20#include "qgis_sip.h"
21#include <QString>
22
29class CORE_EXPORT QgsProjectTranslator
30{
31 public:
32
33 virtual ~QgsProjectTranslator() = default;
34
49 virtual QString translate( const QString &context, const QString &sourceText, const char *disambiguation = nullptr, int n = -1 ) const = 0;
50
51};
52
53#endif // QGSPROJECTTRANSLATOR_H
An interface for objects which can translate project strings.
virtual QString translate(const QString &context, const QString &sourceText, const char *disambiguation=nullptr, int n=-1) const =0
Translates a string using the Qt QTranslator mechanism.
virtual ~QgsProjectTranslator()=default