]> git.saurik.com Git - wxWidgets.git/commitdiff
translate tips which appear inside _() in wxFileTipProvider
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Mar 2006 00:57:06 +0000 (00:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Mar 2006 00:57:06 +0000 (00:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/tipdlg.cpp

index 3c4b67f69538e22bae80c90ea88cfdf5a3e5b59f..f8b008b5f48f1ab18bc7883a445efdf05d9a99d8 100644 (file)
@@ -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;