Exemple #1
0
 public string GetString(string key, string default_)
 {
     if (!items.ContainsKey(key))
     {
         return(default_);
     }
     return(items.Get(key));
 }
 // GetValue returns the value associated with the key-phrase provided in the
 // dictionary for the currently selected language
 public string GetValue(string keyPhrase)
 {
     if (langCollection.ContainsKey(currentLang))
     {
         DictionaryStringString dict = langCollection[currentLang];
         if (dict.ContainsKey(keyPhrase))
         {
             return(dict[keyPhrase]);
         }
     }
     return("");
 }