Skip to content

Commit 5d4cc6a

Browse files
committed
translation string fixes
1 parent 43536f3 commit 5d4cc6a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/core/auth/qgsauthconfigurationstoragedb.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ bool QgsAuthConfigurationStorageDb::authDbQuery( QSqlQuery *query, const QString
176176
const QStringList keys = query->boundValueNames();
177177
const QVariantList values = query->boundValues();
178178
QMap<QString, QVariant> boundValues;
179-
for ( int i=0; i<keys.count(); i++)
179+
for ( int i = 0; i < keys.count(); i++ )
180180
{
181181
boundValues.insert( keys.at( i ), values.at( i ).toString() );
182182
}
@@ -267,7 +267,7 @@ QList<QgsAuthConfigurationStorage::SettingParameter> QgsAuthConfigurationStorage
267267
{
268268
return
269269
{
270-
{ QStringLiteral( "driver" ), tr( "SQL Driver (see https://doc.qt.io/qt-6/sql-driver.html)" ), QVariant::String },
270+
{ QStringLiteral( "driver" ), tr( "SQL Driver (see https://doc.qt.io/qt/sql-driver.html)" ), QVariant::String },
271271
{ QStringLiteral( "database" ), tr( "Database" ), QVariant::String },
272272
{ QStringLiteral( "schema" ), tr( "Schema for all tables" ), QVariant::String },
273273
{ QStringLiteral( "host" ), tr( "Host" ), QVariant::String },
@@ -448,7 +448,7 @@ const QPair<QSslCertificate, QString> QgsAuthConfigurationStorageDb::loadCertIde
448448
}
449449
if ( query.next() )
450450
{
451-
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Select contains more than one certificate identity for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
451+
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Retrieved more than one certificate identity for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
452452
return bundle;
453453
}
454454
bundle = qMakePair( cert, key );
@@ -715,7 +715,7 @@ const QgsAuthConfigSslServer QgsAuthConfigurationStorageDb::loadSslCertCustomCon
715715
}
716716
if ( query.next() )
717717
{
718-
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Select contains more than one SSL cert custom config for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
718+
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Retrieved more than one SSL cert custom config for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
719719
return QgsAuthConfigSslServer();
720720
}
721721
}
@@ -838,7 +838,7 @@ bool QgsAuthConfigurationStorageDb::sslCertCustomConfigExists( const QString &id
838838
}
839839
if ( query.next() )
840840
{
841-
QgsDebugError( QStringLiteral( "Select contains more than one SSL cert custom config for host:port, id: %1, %2" ).arg( hostport, id ) );
841+
QgsDebugError( QStringLiteral( "Retrieved more than one SSL cert custom config for host:port, id: %1, %2" ).arg( hostport, id ) );
842842
emit messageLog( tr( "Authentication database contains more than one SSL cert custom configs for host:port, id: %1, %2" )
843843
.arg( hostport, id ), loggerTag(), Qgis::MessageLevel::Warning );
844844
return false;
@@ -1003,7 +1003,7 @@ const QSslCertificate QgsAuthConfigurationStorageDb::loadCertAuthority( const QS
10031003
}
10041004
if ( query.next() )
10051005
{
1006-
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Select contains more than one certificate authority for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
1006+
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Retrieved more than one certificate authority for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
10071007
return emptycert;
10081008
}
10091009
}
@@ -1048,7 +1048,7 @@ bool QgsAuthConfigurationStorageDb::certAuthorityExists( const QSslCertificate &
10481048
}
10491049
if ( query.next() )
10501050
{
1051-
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Select contains more than one certificate authority for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
1051+
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Retrieved more than one certificate authority for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
10521052
// TODO: check whether it makes sense to return false here (and in other similar cases)
10531053
return false;
10541054
}
@@ -1286,7 +1286,7 @@ QgsAuthCertUtils::CertTrustPolicy QgsAuthConfigurationStorageDb::loadCertTrustPo
12861286
}
12871287
if ( query.next() )
12881288
{
1289-
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Select contains more than one certificate trust policy for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
1289+
const_cast< QgsAuthConfigurationStorageDb * >( this )->setError( tr( "Retrieved more than one certificate trust policy for id: %1" ).arg( id ), Qgis::MessageLevel::Warning );
12901290
return QgsAuthCertUtils::DefaultTrust;
12911291
}
12921292
}

0 commit comments

Comments
 (0)