/// <summary>
        /// Set values of Language
        /// </summary>
        /// <param name="fileName">*.igLang path</param>
        public Language(string fileName)
        {
            _Items = new LanguageItem <string, string>();
            InitDefaultLanguageDictionary();

            _fileName = fileName;
            ReadLanguageFile();
        }
Exemple #2
0
        /// <summary>
        /// Set values of Language
        /// </summary>
        /// <param name="fileName">*.igLang path</param>
        /// <param name="dirPath">The directory path contains language file (for relative filename)</param>
        public Language(string fileName, string dirPath = "")
        {
            _Items = new LanguageItem <string, string>();
            InitDefaultLanguageDictionary();

            _fileName = Path.Combine(dirPath, fileName);

            if (File.Exists(_fileName))
            {
                ReadLanguageFile();
            }
        }
        /// <summary>
        /// Set default values of Language
        /// </summary>
        public Language()
        {
            _langCode            = "en-US";
            _langName            = "Local name of the language";
            _author              = "ImageGlass community";
            _description         = "English name of language";
            _minVersion          = "4.1.0.0";
            _fileName            = "";
            _isRightToLeftLayout = RightToLeft.No;

            _Items = new LanguageItem <string, string>();
            InitDefaultLanguageDictionary();
        }
Exemple #4
0
        /// <summary>
        /// Set default values of Language
        /// </summary>
        public Language()
        {
            _langCode            = "en";
            _langName            = "English";
            _author              = "Dương Diệu Pháp";
            _description         = "English";
            _minVersion          = "3.5.0.0";
            _fileName            = "";
            _isRightToLeftLayout = RightToLeft.No;

            _Items = new LanguageItem <string, string>();
            InitDefaultLanguageDictionary();
        }
Exemple #5
0
        /// <summary>
        /// Set default values of Language
        /// </summary>
        public Language()
        {
            LangCode            = "en-US";
            LangName            = "Local name of the language";
            Author              = "ImageGlass community";
            Description         = "English name of language";
            MinVersion          = "8.3.0.0";
            FileName            = "";
            IsRightToLeftLayout = RightToLeft.No;

            Items = new LanguageItem <string, string>();
            InitDefaultLanguageDictionary();
        }