public string LocalizedStringForKeyValueTable(string key, string value, string table) { if (String.IsNullOrEmpty(table)) { table = "Localizable"; } Dictionary<string, string> stringsTable; if (stringsCache.TryGetValue(table, out stringsTable)) { string outValue; if (stringsTable.TryGetValue(key, out outValue)) { value = outValue; } } return (value == null ? key : value); ; }
public static string KNLocalizedStringWithDefaultValue(string key, string tableName, KNBundle bundle, string value, string comment) { return bundle.LocalizedStringForKeyValueTable(key, value, tableName); }