Determine if a WinForms control resource file is localized
XPathDocument doc;
using (var stream = File.OpenRead(fileName))
{
doc = new XPathDocument(stream);
}
var nav = doc.CreateNavigator();
var itr = nav.Select("root/data[@name = '>>$this.Name']");
var localized = itr.Count > 0;
No comments:
Post a Comment