Ejemplo n.º 1
0
 /// <summary>
 /// Returns true if given identifier exists for this language
 /// </summary>
 /// <param name="id">Identifier</param>
 public bool Contains(string id)
 {
     if (_containers[CurrentLanguage].Contains(id))
     {
         return(true);
     }
     return(_fallbackLanguage.Contains(id));
 }
        public bool Contains_ReturnsCorrect(string id)
        {
            var container = new LanguageContainer(SystemLanguage.English, GetLanguageFile());

            return(container.Contains(id));
        }