示例#1
0
        public static void SetLanguage(AppLanguage language)
        {
            var log = Mvx.IoCProvider.Resolve <IMvxLog>();

            log.Debug("App: Setting language.");
            Language = language;
            if (language == AppLanguage.multi)
            {
                ShowEnglishHint = true;
                log.Debug("App: language is multi.Set culture as arabic.");
                // Set arabic culture when english hint is on
                SetCulture(new CultureInfo(AppLanguage.ar.ToString()));
            }
            else
            {
                ShowEnglishHint = false;
                SetCulture(new CultureInfo(language.ToString()));
            }
        }