Esempio n. 1
0
 /// <summary>
 /// Change language
 /// </summary>
 /// <param name="language"></param>
 private void ChangeLanguage(Language language)
 {
     MovieService.ChangeTmdbLanguage(language);
     ShowService.ChangeTmdbLanguage(language);
     LocalizeDictionary.Instance.Culture = new CultureInfo(language.Culture);
     Messenger.Default.Send(new ChangeLanguageMessage());
 }
Esempio n. 2
0
 /// <summary>
 /// Set the current language of the application
 /// </summary>
 /// <param name="language">Language</param>
 public void SetCurrentLanguage(Language language)
 {
     User.Language.Culture = language.Culture;
     MovieService.ChangeTmdbLanguage(language);
     ShowService.ChangeTmdbLanguage(language);
     LocalizeDictionary.Instance.Culture = new CultureInfo(language.Culture);
     Messenger.Default.Send(new ChangeLanguageMessage());
 }
Esempio n. 3
0
        /// <summary>
        /// Set the current language of the application
        /// </summary>
        /// <param name="language">Language</param>
        public void SetCurrentLanguage(Language language)
        {
            User.Language.Culture = language.Culture;
            MovieService.ChangeTmdbLanguage(language);
            ShowService.ChangeTmdbLanguage(language);
            try
            {
                LocalizeDictionary.Instance.Culture = new CultureInfo(language.Culture);
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
            }

            Messenger.Default.Send(new ChangeLanguageMessage());
        }