From 321fe98cfe4fe7572922ba35c334cdcfdf13b027 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Mar 2006 00:57:06 +0000 Subject: [PATCH] translate tips which appear inside _() in wxFileTipProvider git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/tipdlg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/generic/tipdlg.cpp b/src/generic/tipdlg.cpp index 3c4b67f695..f8b008b5f4 100644 --- a/src/generic/tipdlg.cpp +++ b/src/generic/tipdlg.cpp @@ -196,6 +196,9 @@ wxString wxFileTipProvider::GetTip() tip = tip.BeforeLast(wxT('\"')); // ...and replace escaped quotes tip.Replace(wxT("\\\""), wxT("\"")); + + // and translate it as requested + tip = wxGetTranslation(tip); } return tip; @@ -218,7 +221,7 @@ wxTipDialog::wxTipDialog(wxWindow *parent, wxDEFAULT_DIALOG_STYLE #if !defined(__SMARTPHONE__) && !defined(__POCKETPC__) | wxRESIZE_BORDER -#endif +#endif ) { m_tipProvider = tipProvider; -- 2.45.2