Skip to content

Commit 3947cb9

Browse files
committed
translatable string
1 parent 8d25a06 commit 3947cb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void QgsEditorWidgetWrapper::updateConstraintWidgetStatus()
106106
void QgsEditorWidgetWrapper::updateConstraint( const QgsFeature &ft )
107107
{
108108
bool toEmit( false );
109-
QString errStr( "predicate is True" );
109+
QString errStr( tr( "predicate is True" ) );
110110
QString expression = layer()->editFormConfig()->expression( mFieldIdx );
111111
QVariant value = ft.attribute( mFieldIdx );
112112

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

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

147147
if ( value.isNull() )
148-
errStr = "predicate is False";
148+
errStr = tr( "predicate is False" );
149149

150150
toEmit = true;
151151
}

src/gui/qgsattributeform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ void QgsAttributeForm::onConstraintStatusChanged( const QString& constraint,
892892

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

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

0 commit comments

Comments
 (0)