示例#1
0
        private bool SetLanguage(string language)
        {
            switch (language)
            {
            case "ru":
                ErrorsCodeList.SetRU();
                break;

            case "ua":
                ErrorsCodeList.SetUA();
                break;

            case "en":
                ErrorsCodeList.SetEN();
                break;

            default:
                Console.WriteLine("Invalid language. Should be \"ru\", or \"ua\", or \"en\".");
                return(false);
            }

            return(true);
        }
示例#2
0
        internal static void Install(ProjectType projectType)
        {
            Project = new Project(projectType);
            Errors  = new List <Errore>();

            switch (Language.Type)
            {
            case LanguageType.RU:
                ErrorsCodeList.SetRU();
                break;

            case LanguageType.EN:
                ErrorsCodeList.SetEN();
                break;

            case LanguageType.UA:
                ErrorsCodeList.SetUA();
                break;

            default:
                ErrorsCodeList.SetEN();
                break;
            }
        }