public void Add(CldrLocale locale, string path, int valueId) { var treePath = CldrTreePath.Parse(path); var localeId = this.Locales.GetId(locale ?? CldrLocale.None); this.Root.Add(localeId, treePath, valueId); }
public string GetValue(CldrLocale locale) { var localeId = this.Tree.Locales.GetId(locale); var valueId = this.LocaleValues[localeId]; var value = this.Tree.Values[valueId]; return(value); }
/// <summary> /// Traverses the CLDR tree using a path and gets the value /// associated with the specified locale. /// </summary> public string GetValue(string path, CldrLocale locale) { return(this.Tree.SelectNode(path).GetValue(locale)); }
/// <summary> /// Traverses the CLDR tree using a path and gets the value /// associated with the specified locale. /// </summary> public string GetValue(string path, CldrLocale locale) { return this.Tree.SelectNode(path).GetValue(locale); }
public string GetValue(CldrLocale locale) { var localeId = this.Tree.Locales.GetId(locale); var valueId = this.LocaleValues[localeId]; var value = this.Tree.Values[valueId]; return value; }