Skip to content
Permalink
Browse files

make wms server field configuration translatable

(cherry picked from commit e6e78f0)
  • Loading branch information
jef-n committed Apr 7, 2021
1 parent c1a9088 commit 1277b17e9c31fab769479b62ff6ef19c8356dae8
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/qgsfield.cpp
  2. +1 −1 src/gui/vector/qgssourcefieldsproperties.cpp
@@ -355,9 +355,9 @@ QString QgsField::readableConfigurationFlag( QgsField::ConfigurationFlag flag )
case ConfigurationFlag::NotSearchable:
return QObject::tr( "Not searchable" );
case ConfigurationFlag::HideFromWms:
return QStringLiteral( "Do not expose via WMS" );
return QObject::tr( "Do not expose via WMS" );
case ConfigurationFlag::HideFromWfs:
return QStringLiteral( "Do not expose via WFS" );
return QObject::tr( "Do not expose via WFS" );
}
return QString();
}
@@ -64,7 +64,7 @@ QgsSourceFieldsProperties::QgsSourceFieldsProperties( QgsVectorLayer *layer, QWi
mFieldsList->setHorizontalHeaderItem( AttrLengthCol, new QTableWidgetItem( tr( "Length" ) ) );
mFieldsList->setHorizontalHeaderItem( AttrPrecCol, new QTableWidgetItem( tr( "Precision" ) ) );
mFieldsList->setHorizontalHeaderItem( AttrCommentCol, new QTableWidgetItem( tr( "Comment" ) ) );
const auto configurationFlagsWi = new QTableWidgetItem( QStringLiteral( "Configuration" ) );
const auto configurationFlagsWi = new QTableWidgetItem( tr( "Configuration" ) );
configurationFlagsWi->setToolTip( tr( "Configures the field" ) );
mFieldsList->setHorizontalHeaderItem( AttrConfigurationFlagsCol, configurationFlagsWi );
mFieldsList->setHorizontalHeaderItem( AttrAliasCol, new QTableWidgetItem( tr( "Alias" ) ) );

0 comments on commit 1277b17

Please sign in to comment.