From: Mart Raudsepp Date: Thu, 27 Jul 2006 11:46:26 +0000 (+0000) Subject: Don't mark "." and ".." for translation when they are used as a check that the user... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/47b8afadeaa5fd88c6baf88673699c36781353ba Don't mark "." and ".." for translation when they are used as a check that the user didn't enter "current 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 --- diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index cf1e8c5e11..147b72074c 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -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)) diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index d513ec1281..f159065ef9 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -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 );