Exemplo n.º 1
0
        private string GetLocalePath(Locale location)
        {
            string result = Directory.GetDirectories(_repositoryPath).FirstOrDefault(x => string.Equals(new DirectoryInfo(x).Name, location.GetCode(), StringComparison.InvariantCultureIgnoreCase));

            if (string.IsNullOrWhiteSpace(result))
            {
                throw new DirectoryNotFoundException(_repositoryPath + "/" + location.GetCode());
            }

            return(result);
        }
Exemplo n.º 2
0
 public string GetLocaleString()
 {
     return(Locale.GetCode());
 }