Skip to content
Permalink
Browse files

Make 'WMS/WMTS' untranslatable in QgsWmsSourceSelectProvider::text()

  • Loading branch information
rouault committed May 25, 2018
1 parent 3e43609 commit 83b0bd7c626cfae129219a50c1ab631bd21adf63
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsprovider.cpp
@@ -4240,7 +4240,7 @@ class QgsWmsSourceSelectProvider : public QgsSourceSelectProvider
public:

QString providerKey() const override { return QStringLiteral( "wms" ); }
QString text() const override { return QObject::tr( "WMS/WMTS" ); }
QString text() const override { return QStringLiteral( "WMS/WMTS" ); } // untranslatable string as acronym for this particular case. Use QObject::tr() otherwise
int ordering() const override { return QgsSourceSelectProvider::OrderRemoteProvider + 10; }
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddWmsLayer.svg" ) ); }
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override

0 comments on commit 83b0bd7

Please sign in to comment.
You can’t perform that action at this time.