Skip to content

Commit

Permalink
Add Russian Translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Dec 24, 2021
1 parent 9fe52a1 commit 4f86cb9
Show file tree
Hide file tree
Showing 4 changed files with 664 additions and 180 deletions.
1 change: 1 addition & 0 deletions NotEnoughAV1Encodes/Views/ProgramSettings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<ComboBoxItem Content="English"/>
<ComboBoxItem Content="Deutsch (German)"/>
<ComboBoxItem Content="中国人 (Chinese Simplified)"/>
<ComboBoxItem Content="Русский (Russian)"/>
</ComboBox>

</Grid>
Expand Down
2 changes: 2 additions & 0 deletions NotEnoughAV1Encodes/Views/ProgramSettings.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public ProgramSettings(SettingsDB settingsDB)
"en" => 0,
"de" => 1,
"zh-CN" => 2,
"ru-RU" => 3,
_ => 0,
};
}
Expand Down Expand Up @@ -103,6 +104,7 @@ private void ComboBoxLanguage_SelectionChanged(object sender, System.Windows.Con
0 => new CultureInfo("en"),
1 => new CultureInfo("de"),
2 => new CultureInfo("zh-CN"),
3 => new CultureInfo("ru-RU"),
_ => new CultureInfo("en"),
};
LocalizeDictionary.Instance.Culture = settingsDBTemp.CultureInfo;
Expand Down

0 comments on commit 4f86cb9

Please sign in to comment.