public StringTable(string locale) { string stringTable = new ResourceStore(typeof(StringTable)).ReadAssemblyFileText("Languages/" + locale + "/strings.txt"); foreach (string line in stringTable.Split('\n')) { string trimmedLine = line.Trim(); if (trimmedLine.Length > 0) { string[] parts = StringUtil.SplitOnce(line, ":"); string key = parts[0].Trim(); string value = parts[1].Trim(); lookup[key] = value; } } }