Skip to content
Permalink
Browse files

translatable string

  • Loading branch information
pblottiere committed May 19, 2016
1 parent 8d25a06 commit 3947cb93f8c4e07a830e9b779510b297bb1dc32a
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp
  2. +1 −1 src/gui/qgsattributeform.cpp
@@ -106,7 +106,7 @@ void QgsEditorWidgetWrapper::updateConstraintWidgetStatus()
void QgsEditorWidgetWrapper::updateConstraint( const QgsFeature &ft )
{
bool toEmit( false );
QString errStr( "predicate is True" );
QString errStr( tr( "predicate is True" ) );
QString expression = layer()->editFormConfig()->expression( mFieldIdx );
QVariant value = ft.attribute( mFieldIdx );

@@ -125,7 +125,7 @@ void QgsEditorWidgetWrapper::updateConstraint( const QgsFeature &ft )
else if ( expr.hasEvalError() )
errStr = expr.evalErrorString();
else if ( ! mValidConstraint )
errStr = "predicate is False";
errStr = tr( "predicate is False" );

toEmit = true;
}
@@ -145,7 +145,7 @@ void QgsEditorWidgetWrapper::updateConstraint( const QgsFeature &ft )
mValidConstraint = mValidConstraint && !value.isNull();

if ( value.isNull() )
errStr = "predicate is False";
errStr = tr( "predicate is False" );

toEmit = true;
}
@@ -892,7 +892,7 @@ void QgsAttributeForm::onConstraintStatusChanged( const QString& constraint,

if ( buddy )
{
QString tooltip = "Expression: " + constraint + "\n" + "Constraint: " + err;
QString tooltip = tr( "Expression: " ) + constraint + "\n" + tr( "Constraint: " ) + err;
buddy->setToolTip( tooltip );

if ( !buddy->property( "originalText" ).isValid() )

0 comments on commit 3947cb9

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