Fractured locales minor cleanup

This commit is contained in:
_Neo_
2026-01-06 11:47:32 +02:00
parent 925ae1652b
commit 2941951f4d
6 changed files with 13 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ namespace Ryujinx.Ava.UI.ViewModels
private readonly AccountManager _accountManager;
public string UserProfiles_SaveManagerHeading => LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.UserProfiles_SaveManagerHeading, _accountManager.LastOpenedUser.Name, _accountManager.LastOpenedUser.UserId);
public string SaveManagerTitle => LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.UserProfiles_SaveManagerTitle, _accountManager.LastOpenedUser.Name);
public UserSaveManagerViewModel(AccountManager accountManager)
{

View File

@@ -101,10 +101,10 @@
Margin="0,30,0,0"
Spacing="10">
<Button Name="DeleteButton" Click="DeleteButton_Click">
<TextBlock Text="{ext:Locale UserProfiles_Delete}" />
<TextBlock Text="{ext:Locale UserProfiles_ButtonDelete}" />
</Button>
<Button Name="SaveButton" Click="SaveButton_Click">
<TextBlock Text="{ext:Locale UserProfiles_Save}" />
<TextBlock Text="{ext:Locale UserProfiles_ButtonSave}" />
</Button>
</StackPanel>
</Grid>

View File

@@ -99,10 +99,9 @@
</ui:ColorPickerButton.Styles>
</ui:ColorPickerButton>
<Button
Content="{ext:Locale UserProfiles_AvatarChoose}"
Height="37"
Click="ChooseButton_OnClick">
<TextBlock Text="{ext:Locale UserProfiles_AvatarChoose}" />
<TextBlock Text="{ext:Locale UserProfiles_ButtonChooseAvatar}" />
</Button>
</StackPanel>
</Grid>

View File

@@ -49,7 +49,7 @@ namespace Ryujinx.Ava.UI.Views.User
((ContentDialog)_parent.Parent).Title =
$"{LocaleManager.Instance[LocaleKeys.UserProfiles_WindowTitle]} - " +
$"{LocaleManager.Instance[LocaleKeys.UserProfiles_AvatarSelectionTitle]}";
$"{LocaleManager.Instance[LocaleKeys.UserProfiles_SelectAvatarTitle]}";
_ = Task.Run(() =>
{

View File

@@ -55,7 +55,7 @@ namespace Ryujinx.Ava.UI.Views.User
}
DataContext = ViewModel = new UserSaveManagerViewModel(_accountManager);
((ContentDialog)_parent.Parent).Title = $"{LocaleManager.Instance[LocaleKeys.UserProfiles_WindowTitle]} - {ViewModel.UserProfiles_SaveManagerHeading}";
((ContentDialog)_parent.Parent).Title = $"{LocaleManager.Instance[LocaleKeys.UserProfiles_WindowTitle]} - {ViewModel.SaveManagerTitle}";
Task.Run(LoadSaves);
}
@@ -127,7 +127,7 @@ namespace Ryujinx.Ava.UI.Views.User
{
if (button.DataContext is SaveModel saveModel)
{
UserResult result = await ContentDialogHelper.CreateConfirmationDialog(LocaleManager.Instance[LocaleKeys.UserProfiles_DeleteUserSave],
UserResult result = await ContentDialogHelper.CreateConfirmationDialog(LocaleManager.Instance[LocaleKeys.UserProfiles_DeleteSaveNote],
LocaleManager.Instance[LocaleKeys.UserProfiles_IrreversibleActionNote],
LocaleManager.Instance[LocaleKeys.InputDialogYes],
LocaleManager.Instance[LocaleKeys.InputDialogNo],