Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
 /// <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));
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 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;
 }