Add proxy locales

This commit is contained in:
doteq 2023-05-08 16:18:22 +02:00
parent 447940cf36
commit ece8c139ed
2 changed files with 15 additions and 8 deletions

View file

@ -512,6 +512,13 @@
"SettingsTabAudio": "Audio", "SettingsTabAudio": "Audio",
"SettingsTabNetwork": "Network", "SettingsTabNetwork": "Network",
"SettingsTabNetworkConnection": "Network Connection", "SettingsTabNetworkConnection": "Network Connection",
"SettingsTabNetworkProxy": "Proxy",
"SettingsTabNetworkProxyEnabled": "Proxy enabled",
"SettingsTabNetworkProxyEnabledTooltip": "Sends all HTTP requests through the proxy server. Useful for intercepting network traffic and mocking responses.",
"SettingsTabNetworkProxyAddress": "Proxy address",
"SettingsTabNetworkProxyAddressTooltip": "IP address and port of your HTTP proxy server.",
"SettingsTabNetworkProxyIpAddress": "IP address",
"SettingsTabNetworkProxyPort": "Port",
"SettingsTabCpuCache": "CPU Cache", "SettingsTabCpuCache": "CPU Cache",
"SettingsTabCpuMemory": "CPU Mode", "SettingsTabCpuMemory": "CPU Mode",
"DialogUpdaterFlatpakNotSupportedMessage": "Please update Ryujinx via FlatHub.", "DialogUpdaterFlatpakNotSupportedMessage": "Please update Ryujinx via FlatHub.",

View file

@ -44,33 +44,33 @@
</StackPanel> </StackPanel>
<Separator Height="1" /> <Separator Height="1" />
<StackPanel Orientation="Vertical" Spacing="2"> <StackPanel Orientation="Vertical" Spacing="2">
<TextBlock Classes="h1" Text="Proxy" /> <TextBlock Classes="h1" Text="{locale:Locale SettingsTabNetworkProxy}" />
</StackPanel> </StackPanel>
<StackPanel <StackPanel
Margin="10,0,0,0" Margin="10,0,0,0"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
Orientation="Vertical"> Orientation="Vertical">
<CheckBox Margin="10,0,0,0" IsChecked="{Binding EnableProxy}"> <CheckBox Margin="10,0,0,0" IsChecked="{Binding EnableProxy}">
<TextBlock Text="Proxy enabled" <TextBlock Text="{locale:Locale SettingsTabNetworkProxyEnabled}"
ToolTip.Tip="Sends all HTTP requests through the proxy server. Useful for intercepting network traffic and mocking responses." /> ToolTip.Tip="{locale:Locale SettingsTabNetworkProxyEnabledTooltip}" />
</CheckBox> </CheckBox>
<StackPanel Margin="10,0,0,0" Orientation="Horizontal"> <StackPanel Margin="10,0,0,0" Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" <TextBlock VerticalAlignment="Center"
Text="Proxy address" Text="{locale:Locale SettingsTabNetworkProxyAddress}"
ToolTip.Tip="IP address and port of your HTTP proxy server" ToolTip.Tip="{locale:Locale SettingsTabNetworkProxyAddressTooltip}"
Width="200" /> Width="200" />
<TextBox Margin="0,0,5,0" <TextBox Margin="0,0,5,0"
Text="{Binding ProxyIpAddress}" Text="{Binding ProxyIpAddress}"
Width="250" Width="250"
Watermark="IP address" Watermark="{locale:Locale SettingsTabNetworkProxyIpAddress}"
ToolTip.Tip="IP address" ToolTip.Tip="{locale:Locale SettingsTabNetworkProxyIpAddress}"
IsEnabled="{Binding EnableProxy}"/> IsEnabled="{Binding EnableProxy}"/>
<NumericUpDown Width="50" <NumericUpDown Width="50"
Value="{Binding ProxyPort}" Value="{Binding ProxyPort}"
ShowButtonSpinner="False" ShowButtonSpinner="False"
Minimum="0" Minimum="0"
Maximum="65535" Maximum="65535"
ToolTip.Tip="Port" ToolTip.Tip="{locale:Locale SettingsTabNetworkProxyPort}"
IsEnabled="{Binding EnableProxy}"/> IsEnabled="{Binding EnableProxy}"/>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>