]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_listb.cpp
forgot to commit project file for CW before
[wxWidgets.git] / contrib / src / xrc / xh_listb.cpp
index 50790fbb34fe89717984b3b8bce3f4c96d1d8005..c3c9004d3f2f45a2020fce4aa84526eff33b0ca0 100644 (file)
@@ -83,7 +83,10 @@ wxObject *wxListBoxXmlHandler::DoCreateResource()
         // handle <item>Label</item>
         
         // add to the list
-        strList.Add(wxGetTranslation(GetNodeContent(m_node)));
+        wxString str = GetNodeContent(m_node);
+        if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
+            str = wxGetTranslation(str);
+        strList.Add(str);
 
         return NULL;
     }