]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't mark "." and ".." for translation when they are used as a check that the user...
authorMart Raudsepp <leio@gentoo.org>
Thu, 27 Jul 2006 11:46:26 +0000 (11:46 +0000)
committerMart Raudsepp <leio@gentoo.org>
Thu, 27 Jul 2006 11:46:26 +0000 (11:46 +0000)
directory" or "parent directory" as a new directory name to use...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp
src/generic/filedlgg.cpp

index cf1e8c5e11e704b8d7e77798d79e471ecd5bd106..147b72074cea4be8eb2786bba69c90a5919459dd 100644 (file)
@@ -698,8 +698,8 @@ void wxGenericDirCtrl::OnEndEditItem(wxTreeEvent &event)
         return;
 
     if ((event.GetLabel().empty()) ||
-        (event.GetLabel() == _(".")) ||
-        (event.GetLabel() == _("..")) ||
+        (event.GetLabel() == wxT(".")) ||
+        (event.GetLabel() == wxT("..")) ||
         (event.GetLabel().Find(wxT('/')) != wxNOT_FOUND) ||
         (event.GetLabel().Find(wxT('\\')) != wxNOT_FOUND) ||
         (event.GetLabel().Find(wxT('|')) != wxNOT_FOUND))
index d513ec128137e984e5b772e612726dafccbc28ec..f159065ef9cdace8d1a4a9079ec320d0a0b440ff 100644 (file)
@@ -821,8 +821,8 @@ void wxFileCtrl::OnListEndLabelEdit( wxListEvent &event )
     wxASSERT( fd );
 
     if ((event.GetLabel().empty()) ||
-        (event.GetLabel() == _(".")) ||
-        (event.GetLabel() == _("..")) ||
+        (event.GetLabel() == wxT(".")) ||
+        (event.GetLabel() == wxT("..")) ||
         (event.GetLabel().First( wxFILE_SEP_PATH ) != wxNOT_FOUND))
     {
         wxMessageDialog dialog(this, _("Illegal directory name."), _("Error"), wxOK | wxICON_ERROR );