applied patch that adds more i18n support to XRC handlers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2002-08-31 15:37:06 +00:00
parent 48d2ab90ee
commit 02df379910
10 changed files with 20 additions and 10 deletions

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_chckl.h"
#include "wx/checklst.h"
#include "wx/intl.h"
wxCheckListXmlHandler::wxCheckListXmlHandler()
: wxXmlResourceHandler(), m_insideBox(FALSE)
@ -90,7 +91,7 @@ wxObject *wxCheckListXmlHandler::DoCreateResource()
// handle <item checked="boolean">Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_choic.h"
#include "wx/choice.h"
#include "wx/intl.h"
wxChoiceXmlHandler::wxChoiceXmlHandler()
: wxXmlResourceHandler() , m_insideBox(FALSE)
@ -76,7 +77,7 @@ wxObject *wxChoiceXmlHandler::DoCreateResource()
// handle <item>Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_combo.h"
#include "wx/combobox.h"
#include "wx/intl.h"
#if wxUSE_COMBOBOX
@ -82,7 +83,7 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource()
// handle <item>Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_listb.h"
#include "wx/listbox.h"
#include "wx/intl.h"
wxListBoxXmlHandler::wxListBoxXmlHandler()
: wxXmlResourceHandler() , m_insideBox(FALSE)
@ -82,7 +83,7 @@ wxObject *wxListBoxXmlHandler::DoCreateResource()
// handle <item>Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_radbx.h"
#include "wx/radiobox.h"
#include "wx/intl.h"
#if wxUSE_RADIOBOX
@ -83,7 +84,7 @@ wxObject *wxRadioBoxXmlHandler::DoCreateResource()
// handle <item selected="boolean">Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_chckl.h"
#include "wx/checklst.h"
#include "wx/intl.h"
wxCheckListXmlHandler::wxCheckListXmlHandler()
: wxXmlResourceHandler(), m_insideBox(FALSE)
@ -90,7 +91,7 @@ wxObject *wxCheckListXmlHandler::DoCreateResource()
// handle <item checked="boolean">Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_choic.h"
#include "wx/choice.h"
#include "wx/intl.h"
wxChoiceXmlHandler::wxChoiceXmlHandler()
: wxXmlResourceHandler() , m_insideBox(FALSE)
@ -76,7 +77,7 @@ wxObject *wxChoiceXmlHandler::DoCreateResource()
// handle <item>Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_combo.h"
#include "wx/combobox.h"
#include "wx/intl.h"
#if wxUSE_COMBOBOX
@ -82,7 +83,7 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource()
// handle <item>Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_listb.h"
#include "wx/listbox.h"
#include "wx/intl.h"
wxListBoxXmlHandler::wxListBoxXmlHandler()
: wxXmlResourceHandler() , m_insideBox(FALSE)
@ -82,7 +83,7 @@ wxObject *wxListBoxXmlHandler::DoCreateResource()
// handle <item>Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_radbx.h"
#include "wx/radiobox.h"
#include "wx/intl.h"
#if wxUSE_RADIOBOX
@ -83,7 +84,7 @@ wxObject *wxRadioBoxXmlHandler::DoCreateResource()
// handle <item selected="boolean">Label</item>
// add to the list
strList.Add(GetNodeContent(m_node));
strList.Add(wxGetTranslation(GetNodeContent(m_node)));
return NULL;
}