コード例 #1
0
        private string GetLanguageString(CoordinateServiceLanguageKey key)
        {
            if (translations != null)
            {
                string languageString = "";

                bool result = translations.TryGetValue(key.ToString(), out languageString);
                if (result == true)
                {
                    return(languageString);
                }
                else
                {
                    Debug.WriteLine("ERROR: Unknown language string for key " + key);
                    return("");
                }
            }
            else
            {
                return(key.ToString());
            }
        }
コード例 #2
0
 public void AddLanguageValue(CoordinateServiceLanguageKey key, string value)
 {
     translations.Add(key.ToString(), value);
 }