Permalink
Browse files

Add a title to the backup and restore windows

We previously add one but when I commited my patch on a better
internationlisation, the BACKUPTITLE and RESTORETITLE were never
initialized... which bringed an untitled window.

No backpatch right now, because it would be work for translators.

Per request from Bastiaan Olij.
  • Loading branch information...
1 parent 8512cc0 commit 38f50978bde31a7f0b061fe340554bc5e4fd7545 @gleu gleu committed Feb 23, 2013
Showing with 34 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +8 −0 pgadmin/schema/pgDatabase.cpp
  3. +8 −0 pgadmin/schema/pgObject.cpp
  4. +8 −0 pgadmin/schema/pgSchema.cpp
  5. +8 −0 pgadmin/schema/pgTable.cpp
View
@@ -37,6 +37,8 @@ Changes
Date Dev Ver Change details
---------- --- ------ --------------
+2013-02-23 GL 1.18.0 Add a title to the backup and restore windows. Per
+ request from Bastiaan Olij.
2013-02-22 DP 1.16.2 Fix a bug that could cause a NOTICE to be displayed
when rendering FTS Configurations in the tree.
2013-02-07 DP 1.16.2 Don't try to display dependents or dependencies for
@@ -110,6 +110,14 @@ wxString pgDatabase::GetTranslatedMessage(int kindOfMessage) const
case DEPENDENTS:
message = _("Database dependents");
break;
+ case BACKUPTITLE:
+ message = wxString::Format(_("Backup database \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
+ case RESTORETITLE:
+ message = wxString::Format(_("Restore database \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
}
return message;
@@ -120,6 +120,14 @@ wxString pgObject::GetTranslatedMessage(int kindOfMessage) const
case DROPTITLE:
message = _("Drop object?");
break;
+ case BACKUPTITLE:
+ message = wxString::Format(_("Backup \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
+ case RESTORETITLE:
+ message = wxString::Format(_("Restore \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
}
//message += wxT(" ") + factory->GetTypeName();
@@ -109,6 +109,14 @@ wxString pgSchema::GetTranslatedMessage(int kindOfMessage) const
case DEPENDENTS:
message = _("Schema dependents");
break;
+ case BACKUPTITLE:
+ message = wxString::Format(_("Backup schema \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
+ case RESTORETITLE:
+ message = wxString::Format(_("Restore schema \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
}
return message;
@@ -141,6 +141,14 @@ wxString pgTable::GetTranslatedMessage(int kindOfMessage) const
case DEPENDENTS:
message = _("Table dependents");
break;
+ case BACKUPTITLE:
+ message = wxString::Format(_("Backup table \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
+ case RESTORETITLE:
+ message = wxString::Format(_("Restore table \"%s\""),
+ GetFullIdentifier().c_str());
+ break;
}
return message;

0 comments on commit 38f5097

Please sign in to comment.