Skip to content
Permalink
Browse files

fix strings in dialogs

  • Loading branch information
PeterPetrik committed Sep 13, 2018
1 parent f1358a4 commit 79dc991806a366c92ecbd3caa6899867a798b57e
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/app/qgisapp.cpp
  2. +2 −2 src/providers/postgres/qgspostgresprojectstorage.cpp
@@ -14098,12 +14098,12 @@ void QgisApp::populateProjectStorageMenu( QMenu *menu, bool saving )
{
QMessageBox msgbox;

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

@@ -161,7 +161,7 @@ bool QgsPostgresProjectStorage::writeProject( const QString &uri, QIODevice *dev
QgsPostgresResult res( conn->PQexec( sql ) );
if ( res.PQresultStatus() != PGRES_COMMAND_OK )
{
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() );
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() );
context.pushMessage( errCause, Qgis::Critical );
QgsPostgresConnPool::instance()->releaseConnection( conn );
return false;
@@ -189,7 +189,7 @@ bool QgsPostgresProjectStorage::writeProject( const QString &uri, QIODevice *dev
QgsPostgresResult res( conn->PQexec( sql ) );
if ( res.PQresultStatus() != PGRES_COMMAND_OK )
{
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() );
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() );
context.pushMessage( errCause, Qgis::Critical );
QgsPostgresConnPool::instance()->releaseConnection( conn );
return false;

0 comments on commit 79dc991

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