Exemple #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);
        }
Exemple #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);
        }
        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);
        }
Exemple #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));
 }
Exemple #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);
 }
 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;
 }