]> git.saurik.com Git - wxWidgets.git/commitdiff
don't translate strings when it doesn't make any sense
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 14 Dec 2002 21:26:22 +0000 (21:26 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 14 Dec 2002 21:26:22 +0000 (21:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/prntbase.cpp
src/mac/carbon/scrolbar.cpp
src/mac/scrolbar.cpp
src/msw/toplevel.cpp
src/os2/toplevel.cpp

index 921ae318ad35e948554a77d114b7c3fd04f9d4fe..c1c3a939d064d53b1290ef870e1c751c1c33dad1 100644 (file)
@@ -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);
index 9073f709950fc0ee6524d7426ee36369a7bdba67..68d403ae2624b1197ea23ce70a156cc96b7d5677 100644 (file)
@@ -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 ;
        }
 
index 9073f709950fc0ee6524d7426ee36369a7bdba67..68d403ae2624b1197ea23ce70a156cc96b7d5677 100644 (file)
@@ -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 ;
        }
 
index 9cc4f1d2ffcd008a219ae3e032954386897fefb7..3af50fc0826962f2f1c9c8aae2ff45832462d838 100644 (file)
@@ -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;
     }
index 252b601bd082514f8b83ccd20ecbb67bac074197..f30cb9c9908d9e1d23fcd195fa4ae57650108a52 100644 (file)
@@ -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;
     }