Skip to content

Commit 79dc991

Browse files
committedSep 13, 2018
fix strings in dialogs
1 parent f1358a4 commit 79dc991

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14098,12 +14098,12 @@ void QgisApp::populateProjectStorageMenu( QMenu *menu, bool saving )
1409814098
{
1409914099
QMessageBox msgbox;
1410014100

14101-
msgbox.setWindowTitle( tr( "Unable to save project %1" ).arg( uri ) );
14101+
msgbox.setWindowTitle( tr( "Save Project" ) );
1410214102
msgbox.setText( QgsProject::instance()->error() );
1410314103
msgbox.setIcon( QMessageBox::Icon::Critical );
1410414104
msgbox.addButton( QMessageBox::Cancel );
1410514105
msgbox.addButton( QMessageBox::Save );
14106-
msgbox.setButtonText( QMessageBox::Save, tr( "Save as local file" ) );
14106+
msgbox.setButtonText( QMessageBox::Save, tr( "Save as Local File" ) );
1410714107
msgbox.setDefaultButton( QMessageBox::Cancel );
1410814108
msgbox.exec();
1410914109

‎src/providers/postgres/qgspostgresprojectstorage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ bool QgsPostgresProjectStorage::writeProject( const QString &uri, QIODevice *dev
161161
QgsPostgresResult res( conn->PQexec( sql ) );
162162
if ( res.PQresultStatus() != PGRES_COMMAND_OK )
163163
{
164-
QString errCause = QObject::tr( "Unable to save project. It's not possible to create the destination table on the database. Maybe this is due to database permissions (user=%1). Please contact your database admin" ).arg( projectUri.connInfo.username() );
164+
QString errCause = QObject::tr( "Unable to save project. It's not possible to create the destination table on the database. Maybe this is due to database permissions (user=%1). Please contact your database admin." ).arg( projectUri.connInfo.username() );
165165
context.pushMessage( errCause, Qgis::Critical );
166166
QgsPostgresConnPool::instance()->releaseConnection( conn );
167167
return false;
@@ -189,7 +189,7 @@ bool QgsPostgresProjectStorage::writeProject( const QString &uri, QIODevice *dev
189189
QgsPostgresResult res( conn->PQexec( sql ) );
190190
if ( res.PQresultStatus() != PGRES_COMMAND_OK )
191191
{
192-
QString errCause = QObject::tr( "Unable to insert or update project (project=%1) in the destination table on the database. Maybe this is due to table permissions (user=%2). Please contact your database admin" ).arg( projectUri.projectName, projectUri.connInfo.username() );
192+
QString errCause = QObject::tr( "Unable to insert or update project (project=%1) in the destination table on the database. Maybe this is due to table permissions (user=%2). Please contact your database admin." ).arg( projectUri.projectName, projectUri.connInfo.username() );
193193
context.pushMessage( errCause, Qgis::Critical );
194194
QgsPostgresConnPool::instance()->releaseConnection( conn );
195195
return false;

0 commit comments

Comments
 (0)
Please sign in to comment.