diff options
author | gdkchan <gab.dark.100@gmail.com> | 2024-03-23 16:31:54 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 16:31:54 -0300 |
commit | dbfe859ed717c82d87d6d497fe1d647278f19284 (patch) | |
tree | bff22d7f698de881610a8bc482edc2403810a9a4 | |
parent | c94a73ec60f3f75b36179cbc93d046701ed96253 (diff) |
Add a few missing locale strings on Avalonia (#6556)1.1.1243
* Add a few missing locale strings on Avalonia
* Rename LDN MitM to ldn_mitm
4 files changed, 17 insertions, 11 deletions
diff --git a/src/Ryujinx/Assets/Locales/en_US.json b/src/Ryujinx/Assets/Locales/en_US.json index efc4525c..3a3cb301 100644 --- a/src/Ryujinx/Assets/Locales/en_US.json +++ b/src/Ryujinx/Assets/Locales/en_US.json @@ -648,6 +648,9 @@ "GraphicsAALabel": "Anti-Aliasing:", "GraphicsScalingFilterLabel": "Scaling Filter:", "GraphicsScalingFilterTooltip": "Choose the scaling filter that will be applied when using resolution scale.\n\nBilinear works well for 3D games and is a safe default option.\n\nNearest is recommended for pixel art games.\n\nFSR 1.0 is merely a sharpening filter, not recommended for use with FXAA or SMAA.\n\nThis option can be changed while a game is running by clicking \"Apply\" below; you can simply move the settings window aside and experiment until you find your preferred look for a game.\n\nLeave on BILINEAR if unsure.", + "GraphicsScalingFilterBilinear": "Bilinear", + "GraphicsScalingFilterNearest": "Nearest", + "GraphicsScalingFilterFsr": "FSR", "GraphicsScalingFilterLevelLabel": "Level", "GraphicsScalingFilterLevelTooltip": "Set FSR 1.0 sharpening level. Higher is sharper.", "SmaaLow": "SMAA Low", @@ -664,5 +667,7 @@ "AboutChangelogButtonTooltipMessage": "Click to open the changelog for this version in your default browser.", "SettingsTabNetworkMultiplayer": "Multiplayer", "MultiplayerMode": "Mode:", - "MultiplayerModeTooltip": "Change LDN multiplayer mode.\n\nLdnMitm will modify local wireless/local play functionality in games to function as if it were LAN, allowing for local, same-network connections with other Ryujinx instances and hacked Nintendo Switch consoles that have the ldn_mitm module installed.\n\nMultiplayer requires all players to be on the same game version (i.e. Super Smash Bros. Ultimate v13.0.1 can't connect to v13.0.0).\n\nLeave DISABLED if unsure." + "MultiplayerModeTooltip": "Change LDN multiplayer mode.\n\nLdnMitm will modify local wireless/local play functionality in games to function as if it were LAN, allowing for local, same-network connections with other Ryujinx instances and hacked Nintendo Switch consoles that have the ldn_mitm module installed.\n\nMultiplayer requires all players to be on the same game version (i.e. Super Smash Bros. Ultimate v13.0.1 can't connect to v13.0.0).\n\nLeave DISABLED if unsure.", + "MultiplayerModeDisabled": "Disabled", + "MultiplayerModeLdnMitm": "ldn_mitm" } diff --git a/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs b/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs index bcaa0860..fde8f74a 100644 --- a/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs @@ -237,11 +237,6 @@ namespace Ryujinx.Ava.UI.ViewModels get => new(_networkInterfaces.Keys); } - public AvaloniaList<string> MultiplayerModes - { - get => new(Enum.GetNames<MultiplayerMode>()); - } - public KeyboardHotkeys KeyboardHotkeys { get => _keyboardHotkeys; diff --git a/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml b/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml index 22449478..5cffc684 100644 --- a/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml +++ b/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml @@ -165,13 +165,13 @@ ToolTip.Tip="{locale:Locale GraphicsScalingFilterTooltip}" SelectedIndex="{Binding ScalingFilter}"> <ComboBoxItem> - <TextBlock Text="Bilinear" /> + <TextBlock Text="{locale:Locale GraphicsScalingFilterBilinear}" /> </ComboBoxItem> <ComboBoxItem> - <TextBlock Text="Nearest" /> + <TextBlock Text="{locale:Locale GraphicsScalingFilterNearest}" /> </ComboBoxItem> <ComboBoxItem> - <TextBlock Text="FSR" /> + <TextBlock Text="{locale:Locale GraphicsScalingFilterFsr}" /> </ComboBoxItem> </ComboBox> <controls:SliderScroll Value="{Binding ScalingFilterLevel}" diff --git a/src/Ryujinx/UI/Views/Settings/SettingsNetworkView.axaml b/src/Ryujinx/UI/Views/Settings/SettingsNetworkView.axaml index 9bb81463..67fac192 100644 --- a/src/Ryujinx/UI/Views/Settings/SettingsNetworkView.axaml +++ b/src/Ryujinx/UI/Views/Settings/SettingsNetworkView.axaml @@ -32,8 +32,14 @@ <ComboBox SelectedIndex="{Binding MultiplayerModeIndex}" ToolTip.Tip="{locale:Locale MultiplayerModeTooltip}" HorizontalContentAlignment="Left" - ItemsSource="{Binding MultiplayerModes}" - Width="250" /> + Width="250"> + <ComboBoxItem> + <TextBlock Text="{locale:Locale MultiplayerModeDisabled}" /> + </ComboBoxItem> + <ComboBoxItem> + <TextBlock Text="{locale:Locale MultiplayerModeLdnMitm}" /> + </ComboBoxItem> + </ComboBox> </StackPanel> <Separator Height="1" /> <TextBlock Classes="h1" Text="{locale:Locale SettingsTabNetworkConnection}" /> |