Skip to content

Commit

Permalink
fix strings in dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 13, 2018
1 parent f1358a4 commit 79dc991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprojectstorage.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 79dc991

Please sign in to comment.