Skip to content
Permalink
Browse files

Fix some untranslatable strings

  • Loading branch information
nyalldawson committed Nov 2, 2016
1 parent cb94b68 commit 3a596749012a6f8b0c7e00fe9b860d85d3f71349
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp
@@ -123,10 +123,10 @@ void QgsEditorWidgetWrapper::updateConstraint( const QgsFeature &ft, QgsFieldCon

if ( field.constraints().constraints() & QgsFieldConstraints::ConstraintNotNull )
{
descriptions << QStringLiteral( "Not NULL" );
descriptions << tr( "Not NULL" );
if ( !expression.isEmpty() )
{
expressions << field.name() + " IS NOT NULL";
expressions << field.name() + QStringLiteral( " IS NOT NULL" );
}
else
{
@@ -137,10 +137,10 @@ void QgsEditorWidgetWrapper::updateConstraint( const QgsFeature &ft, QgsFieldCon

if ( field.constraints().constraints() & QgsFieldConstraints::ConstraintUnique )
{
descriptions << QStringLiteral( "Unique" );
descriptions << tr( "Unique" );
if ( !expression.isEmpty() )
{
expressions << field.name() + " IS UNIQUE";
expressions << field.name() + QStringLiteral( " IS UNIQUE" );
}
else
{

0 comments on commit 3a59674

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