]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_choic.cpp
fixed loading of resource from ZIP files on MacOS
[wxWidgets.git] / contrib / src / xrc / xh_choic.cpp
index 2f91e382a8f204a5b9afc96343094dfb3d9d9b27..f2dd0bdb43b5f3ed90444be3996bca6da64f407d 100644 (file)
@@ -77,7 +77,10 @@ wxObject *wxChoiceXmlHandler::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;
     }