src/TF2HUD.Editor/MainWindow.xaml.cs
/// <summary>
///     Updates localization to the selected language.
/// </summary>
Updates localization to the selected language.
Updates localization to the selected language .
private void BtnLocalize_OnClick(object sender, RoutedEventArgs e)
        {
            if (btnLocalizeFR.IsChecked == true)
                LocalizeDictionary.Instance.Culture = new CultureInfo("fr-FR");
            else if (btnLocalizeRU.IsChecked == true)
                LocalizeDictionary.Instance.Culture = new CultureInfo("ru-RU");
            else
                LocalizeDictionary.Instance.Culture = new CultureInfo("en-US");
            Settings.Default.user_language = LocalizeDictionary.Instance.Culture.ToString();
            Settings.Default.Save();
        }
private void BtnLocalize_OnClick ( object sender , RoutedEventArgs e ) { if ( btnLocalizeFR . IsChecked == true ) LocalizeDictionary . Instance . Culture = new CultureInfo ( " " ) ; else if ( btnLocalizeRU . IsChecked == true ) LocalizeDictionary . Instance . Culture = new CultureInfo ( " " ) ; else LocalizeDictionary . Instance . Culture = new CultureInfo ( " " ) ; Settings . Default . user_language = LocalizeDictionary . Instance . Culture . ToString ( ) ; Settings . Default . Save ( ) ; }
Updates localization to the selected language.
Updates localization to the selected language .
// Save language preference to user settings.
sender
object
e
RoutedEventArgs