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
This commit is contained in:
parent
75575b6020
commit
47b8afadea
@ -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))
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user