Esempio n. 1
0
        public ProjectLocalizer(string projectFolder, ProjectLocalizerOptions options)
        {
            ProjectFolder = projectFolder;
            Options       = options;

            try
            {
                // ReSharper disable once ObjectCreationAsStatement - Instantiating only to see if it is possible
                new CultureInfo(Options.Locale);
                LocaleIsSupported = true;
            }
            catch
            {
                Console.WriteLine("Warning: Culture name {0} is not supported.", Options.Locale);
                LocaleIsSupported = false;
            }
        }
Esempio n. 2
0
 protected virtual ProjectLocalizer CreateProjectLocalizer(string folder, ProjectLocalizerOptions options)
 {
     return(new ProjectLocalizer(folder, options));
 }