public static void SetStringsSource(XML source)
{
_stringsSource = new Dictionary<string, Dictionary<string, string>>();
XMLList.Enumerator et = source.GetEnumerator("string");
while (et.MoveNext())
{
XML cxml = et.Current;
string key = cxml.GetAttribute("name");
string text = cxml.text;
int i = key.IndexOf("-");
if (i == -1)
continue;
string key2 = key.Substring(0, i);
string key3 = key.Substring(i + 1);
Dictionary<string, string> col;
if (!_stringsSource.TryGetValue(key2, out col))
{
col = new Dictionary<string, string>();
_stringsSource[key2] = col;
}
col[key3] = text;
}
}