Skip to content

Commit

Permalink
Fix some untranslatable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 2, 2016
1 parent cb94b68 commit 3a59674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down

0 comments on commit 3a59674

Please sign in to comment.