From 02df379910a86bdde7e81b7f62d890cc314b4554 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 31 Aug 2002 15:37:06 +0000 Subject: [PATCH] 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 --- contrib/src/xrc/xh_chckl.cpp | 3 ++- contrib/src/xrc/xh_choic.cpp | 3 ++- contrib/src/xrc/xh_combo.cpp | 3 ++- contrib/src/xrc/xh_listb.cpp | 3 ++- contrib/src/xrc/xh_radbx.cpp | 3 ++- src/xrc/xh_chckl.cpp | 3 ++- src/xrc/xh_choic.cpp | 3 ++- src/xrc/xh_combo.cpp | 3 ++- src/xrc/xh_listb.cpp | 3 ++- src/xrc/xh_radbx.cpp | 3 ++- 10 files changed, 20 insertions(+), 10 deletions(-) diff --git a/contrib/src/xrc/xh_chckl.cpp b/contrib/src/xrc/xh_chckl.cpp index 72edfaaad7..24e191e830 100644 --- a/contrib/src/xrc/xh_chckl.cpp +++ b/contrib/src/xrc/xh_chckl.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } } diff --git a/contrib/src/xrc/xh_choic.cpp b/contrib/src/xrc/xh_choic.cpp index e9ff297b64..2f91e382a8 100644 --- a/contrib/src/xrc/xh_choic.cpp +++ b/contrib/src/xrc/xh_choic.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } diff --git a/contrib/src/xrc/xh_combo.cpp b/contrib/src/xrc/xh_combo.cpp index daeb0d70f7..3d708c3a49 100644 --- a/contrib/src/xrc/xh_combo.cpp +++ b/contrib/src/xrc/xh_combo.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } diff --git a/contrib/src/xrc/xh_listb.cpp b/contrib/src/xrc/xh_listb.cpp index f77a5b5d81..50790fbb34 100644 --- a/contrib/src/xrc/xh_listb.cpp +++ b/contrib/src/xrc/xh_listb.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } diff --git a/contrib/src/xrc/xh_radbx.cpp b/contrib/src/xrc/xh_radbx.cpp index 244960bd13..6ba0e86182 100644 --- a/contrib/src/xrc/xh_radbx.cpp +++ b/contrib/src/xrc/xh_radbx.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } diff --git a/src/xrc/xh_chckl.cpp b/src/xrc/xh_chckl.cpp index 72edfaaad7..24e191e830 100644 --- a/src/xrc/xh_chckl.cpp +++ b/src/xrc/xh_chckl.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } } diff --git a/src/xrc/xh_choic.cpp b/src/xrc/xh_choic.cpp index e9ff297b64..2f91e382a8 100644 --- a/src/xrc/xh_choic.cpp +++ b/src/xrc/xh_choic.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } diff --git a/src/xrc/xh_combo.cpp b/src/xrc/xh_combo.cpp index daeb0d70f7..3d708c3a49 100644 --- a/src/xrc/xh_combo.cpp +++ b/src/xrc/xh_combo.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } diff --git a/src/xrc/xh_listb.cpp b/src/xrc/xh_listb.cpp index f77a5b5d81..50790fbb34 100644 --- a/src/xrc/xh_listb.cpp +++ b/src/xrc/xh_listb.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } diff --git a/src/xrc/xh_radbx.cpp b/src/xrc/xh_radbx.cpp index 244960bd13..6ba0e86182 100644 --- a/src/xrc/xh_radbx.cpp +++ b/src/xrc/xh_radbx.cpp @@ -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 Label // add to the list - strList.Add(GetNodeContent(m_node)); + strList.Add(wxGetTranslation(GetNodeContent(m_node))); return NULL; } -- 2.47.2