X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9993189cc61b29d68dfa255d4f23d58e16cadc2..4a745e76b15b375c5600aefdb005f39c3f0d73b6:/src/generic/aboutdlgg.cpp diff --git a/src/generic/aboutdlgg.cpp b/src/generic/aboutdlgg.cpp index 33cd027719..b7a9fcf977 100644 --- a/src/generic/aboutdlgg.cpp +++ b/src/generic/aboutdlgg.cpp @@ -96,14 +96,24 @@ wxIcon wxAboutDialogInfo::GetIcon() const return icon; } +wxString wxAboutDialogInfo::GetCopyrightToDisplay() const +{ + wxString ret = m_copyright; + + ret.Replace("(c)", "\u00A9"); + ret.Replace("(C)", "\u00A9"); + + return ret; +} + // ---------------------------------------------------------------------------- // wxGenericAboutDialog // ---------------------------------------------------------------------------- bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info) { - // TODO: should we use main frame as parent by default here? - if ( !wxDialog::Create(NULL, wxID_ANY, _("About ") + info.GetName(), + // this is a modal dialog thus we'll use GetParentForModalDialog: + if ( !wxDialog::Create(GetParentForModalDialog(), wxID_ANY, _("About ") + info.GetName(), wxDefaultPosition, wxDefaultSize, wxRESIZE_BORDER|wxDEFAULT_DIALOG_STYLE) ) return false; @@ -120,7 +130,7 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info) m_sizerText->Add(label, wxSizerFlags().Centre().Border()); m_sizerText->AddSpacer(5); - AddText(info.GetCopyright()); + AddText(info.GetCopyrightToDisplay()); AddText(info.GetDescription()); if ( info.HasWebSite() ) @@ -136,22 +146,22 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info) #if wxUSE_COLLPANE if ( info.HasLicence() ) - AddCollapsiblePane(wxT("License"), info.GetLicence()); + AddCollapsiblePane(_("License"), info.GetLicence()); if ( info.HasDevelopers() ) - AddCollapsiblePane(wxT("Developers"), + AddCollapsiblePane(_("Developers"), AllAsString(info.GetDevelopers())); if ( info.HasDocWriters() ) - AddCollapsiblePane(wxT("Documentation writers"), + AddCollapsiblePane(_("Documentation writers"), AllAsString(info.GetDocWriters())); if ( info.HasArtists() ) - AddCollapsiblePane(wxT("Artists"), + AddCollapsiblePane(_("Artists"), AllAsString(info.GetArtists())); if ( info.HasTranslators() ) - AddCollapsiblePane(wxT("Translators"), + AddCollapsiblePane(_("Translators"), AllAsString(info.GetTranslators())); #endif // wxUSE_COLLPANE