mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 16:00:17 +00:00
Update LocaleKeys
This commit is contained in:
parent
47c5490dd7
commit
f25c27c5f5
2 changed files with 13 additions and 13 deletions
|
@ -30,7 +30,7 @@ public class AboutWindowViewModel : BaseModel
|
||||||
OnPropertyChanged();
|
OnPropertyChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Bitmap DiscordLogo
|
public Bitmap DiscordLogo
|
||||||
{
|
{
|
||||||
get => _discordLogo;
|
get => _discordLogo;
|
||||||
|
@ -40,7 +40,7 @@ public class AboutWindowViewModel : BaseModel
|
||||||
OnPropertyChanged();
|
OnPropertyChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Bitmap PatreonLogo
|
public Bitmap PatreonLogo
|
||||||
{
|
{
|
||||||
get => _patreonLogo;
|
get => _patreonLogo;
|
||||||
|
@ -50,7 +50,7 @@ public class AboutWindowViewModel : BaseModel
|
||||||
OnPropertyChanged();
|
OnPropertyChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Bitmap TwitterLogo
|
public Bitmap TwitterLogo
|
||||||
{
|
{
|
||||||
get => _twitterLogo;
|
get => _twitterLogo;
|
||||||
|
@ -83,15 +83,15 @@ public class AboutWindowViewModel : BaseModel
|
||||||
|
|
||||||
public string Developers
|
public string Developers
|
||||||
{
|
{
|
||||||
get => string.Format(LocaleManager.Instance["AboutPageDeveloperListMore"], "gdkchan, Ac_K, Thog, rip in peri peri, LDj3SNuD, emmaus, Thealexbarney, Xpl0itR, GoffyDude, »jD«");
|
get => string.Format(LocaleManager.Instance[LocaleKeys.AboutPageDeveloperListMore], "gdkchan, Ac_K, Thog, rip in peri peri, LDj3SNuD, emmaus, Thealexbarney, Xpl0itR, GoffyDude, »jD«");
|
||||||
}
|
}
|
||||||
|
|
||||||
public AboutWindowViewModel()
|
public AboutWindowViewModel()
|
||||||
{
|
{
|
||||||
Version = Program.Version;
|
Version = Program.Version;
|
||||||
|
|
||||||
var assets = AvaloniaLocator.Current.GetService<Avalonia.Platform.IAssetLoader>();
|
var assets = AvaloniaLocator.Current.GetService<Avalonia.Platform.IAssetLoader>();
|
||||||
|
|
||||||
if (ConfigurationState.Instance.Ui.BaseStyle.Value == "Light")
|
if (ConfigurationState.Instance.Ui.BaseStyle.Value == "Light")
|
||||||
{
|
{
|
||||||
GithubLogo = new Bitmap(assets.Open(new Uri("resm:Ryujinx.Ui.Common.Resources.Logo_GitHub_Light.png?assembly=Ryujinx.Ui.Common")));
|
GithubLogo = new Bitmap(assets.Open(new Uri("resm:Ryujinx.Ui.Common.Resources.Logo_GitHub_Light.png?assembly=Ryujinx.Ui.Common")));
|
||||||
|
@ -108,12 +108,12 @@ public class AboutWindowViewModel : BaseModel
|
||||||
|
|
||||||
Dispatcher.UIThread.InvokeAsync(DownloadPatronsJson);
|
Dispatcher.UIThread.InvokeAsync(DownloadPatronsJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task DownloadPatronsJson()
|
private async Task DownloadPatronsJson()
|
||||||
{
|
{
|
||||||
if (!NetworkInterface.GetIsNetworkAvailable())
|
if (!NetworkInterface.GetIsNetworkAvailable())
|
||||||
{
|
{
|
||||||
Supporters = LocaleManager.Instance["ConnectionError"];
|
Supporters = LocaleManager.Instance[LocaleKeys.ConnectionError];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ public class AboutWindowViewModel : BaseModel
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
Supporters = LocaleManager.Instance["ApiError"];
|
Supporters = LocaleManager.Instance[LocaleKeys.ApiError];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -23,15 +23,15 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
public static async Task Show()
|
public static async Task Show()
|
||||||
{
|
{
|
||||||
var content = new AboutWindow();
|
var content = new AboutWindow();
|
||||||
|
|
||||||
ContentDialog contentDialog = new()
|
ContentDialog contentDialog = new()
|
||||||
{
|
{
|
||||||
PrimaryButtonText = "",
|
PrimaryButtonText = "",
|
||||||
SecondaryButtonText = "",
|
SecondaryButtonText = "",
|
||||||
CloseButtonText = LocaleManager.Instance["UserProfilesClose"],
|
CloseButtonText = LocaleManager.Instance[LocaleKeys.UserProfilesClose],
|
||||||
Content = content
|
Content = content
|
||||||
};
|
};
|
||||||
|
|
||||||
Style closeButton = new(x => x.Name("CloseButton"));
|
Style closeButton = new(x => x.Name("CloseButton"));
|
||||||
closeButton.Setters.Add(new Setter(WidthProperty, 70d));
|
closeButton.Setters.Add(new Setter(WidthProperty, 70d));
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
|
|
||||||
contentDialog.Styles.Add(closeButton);
|
contentDialog.Styles.Add(closeButton);
|
||||||
contentDialog.Styles.Add(closeButtonParent);
|
contentDialog.Styles.Add(closeButtonParent);
|
||||||
|
|
||||||
await contentDialog.ShowAsync();
|
await contentDialog.ShowAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue