From 7e99eddf643ae67d880de7a4dedf98b98c58dafe Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 14 Dec 2002 21:26:22 +0000 Subject: [PATCH] don't translate strings when it doesn't make any sense git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/prntbase.cpp | 4 ++-- src/mac/carbon/scrolbar.cpp | 2 +- src/mac/scrolbar.cpp | 2 +- src/msw/toplevel.cpp | 4 ++-- src/os2/toplevel.cpp | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 921ae318ad..c1c3a939d0 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -370,9 +370,9 @@ void wxPreviewControlBar::OnGoto(void) wxString strPrompt; wxString strPage; - strPrompt.Printf( _("%d...%d"), + strPrompt.Printf( wxT("%d...%d"), preview->GetMinPage(), preview->GetMaxPage()); - strPage.Printf( _("%d"), preview->GetCurrentPage() ); + strPage.Printf( wxT("%d"), preview->GetCurrentPage() ); strPage = wxGetTextFromUser( strPrompt, _("Goto Page"), strPage); diff --git a/src/mac/carbon/scrolbar.cpp b/src/mac/carbon/scrolbar.cpp index 9073f70995..68d403ae26 100644 --- a/src/mac/carbon/scrolbar.cpp +++ b/src/mac/carbon/scrolbar.cpp @@ -140,7 +140,7 @@ void wxScrollBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart scrollEvent = wxEVT_SCROLL_THUMBTRACK; break ; default : - wxLogError(_("illegal scrollbar selector %d"), controlpart); + wxFAIL_MSG(wxT("illegal scrollbar selector")); break ; } diff --git a/src/mac/scrolbar.cpp b/src/mac/scrolbar.cpp index 9073f70995..68d403ae26 100644 --- a/src/mac/scrolbar.cpp +++ b/src/mac/scrolbar.cpp @@ -140,7 +140,7 @@ void wxScrollBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart scrollEvent = wxEVT_SCROLL_THUMBTRACK; break ; default : - wxLogError(_("illegal scrollbar selector %d"), controlpart); + wxFAIL_MSG(wxT("illegal scrollbar selector")); break ; } diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 9cc4f1d2ff..3af50fc082 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -310,9 +310,9 @@ bool wxTopLevelWindowMSW::CreateDialog(const void *dlgTemplate, if ( !m_hWnd ) { - wxFAIL_MSG(_("Failed to create dialog. Incorrect DLGTEMPLATE?")); + wxFAIL_MSG(wxT("Failed to create dialog. Incorrect DLGTEMPLATE?")); - wxLogSysError(_("Can't create dialog using memory template")); + wxLogSysError(wxT("Can't create dialog using memory template")); return FALSE; } diff --git a/src/os2/toplevel.cpp b/src/os2/toplevel.cpp index 252b601bd0..f30cb9c990 100644 --- a/src/os2/toplevel.cpp +++ b/src/os2/toplevel.cpp @@ -364,9 +364,9 @@ bool wxTopLevelWindowOS2::CreateDialog( if ( !m_hWnd ) { - wxFAIL_MSG(_("Did you forget to include wx/os2/wx.rc in your resources?")); + wxFAIL_MSG(wxT("Did you forget to include wx/os2/wx.rc in your resources?")); - wxLogSysError(_("Can't create dialog using template '%ul'"), ulDlgTemplate); + wxLogSysError(wxT("Can't create dialog using template '%ul'"), ulDlgTemplate); return FALSE; } -- 2.45.2