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()); } }
public void AddLanguageValue(CoordinateServiceLanguageKey key, string value) { translations.Add(key.ToString(), value); }