Example #1
0
        public static void ApplyLanguage(string langCode)
        {
            switch (langCode)
            {
            case "en-us": StringResources.Culture = new System.Globalization.CultureInfo("en-us"); break;

            case "nb-no": StringResources.Culture = new System.Globalization.CultureInfo("nb-no"); break;

            case "sv-se": StringResources.Culture = new System.Globalization.CultureInfo("sv-se"); break;

            case "vi-vn": StringResources.Culture = new System.Globalization.CultureInfo("vi-vn"); break;
            }
            LocalizedStrings resTranslation = (LocalizedStrings)System.Windows.Application.Current.FindResource("TranslatedStrings");

            resTranslation.RaisePropertyChanged("LocalizedResources");
        }