]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_chckl.cpp
Committing in .
[wxWidgets.git] / src / xrc / xh_chckl.cpp
index 24e191e830dec1dfac86157c27ed0eaec279c7a0..408c02570dd950022cbc7dd36b17b2e1f0c5bd5f 100644 (file)
@@ -91,7 +91,10 @@ wxObject *wxCheckListXmlHandler::DoCreateResource()
         // handle <item checked="boolean">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;
     }
 }