Skip to content
Permalink
Browse files

make wms server field configuration translatable

  • Loading branch information
jef-n committed Apr 7, 2021
1 parent 700cee2 commit e6e78f07de96c691c478f5ae1c7979be8be15db8
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 e6e78f0

Please sign in to comment.