mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-19 00:51:30 -07:00
localise appearance menu page
This commit is contained in:
parent
667fa5c1db
commit
19c82c66d0
45
Bloxstrap/Resources/Strings.Designer.cs
generated
45
Bloxstrap/Resources/Strings.Designer.cs
generated
@ -486,6 +486,15 @@ namespace Bloxstrap.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Edit.
|
||||
/// </summary>
|
||||
public static string Common_Edit {
|
||||
get {
|
||||
return ResourceManager.GetString("Common.Edit", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Export.
|
||||
/// </summary>
|
||||
@ -648,6 +657,15 @@ namespace Bloxstrap.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Rename.
|
||||
/// </summary>
|
||||
public static string Common_Rename {
|
||||
get {
|
||||
return ResourceManager.GetString("Common.Rename", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reset.
|
||||
/// </summary>
|
||||
@ -2392,6 +2410,33 @@ namespace Bloxstrap.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Failed to delete custom theme {0}: {1}.
|
||||
/// </summary>
|
||||
public static string Menu_Appearance_CustomThemes_DeleteFailed {
|
||||
get {
|
||||
return ResourceManager.GetString("Menu.Appearance.CustomThemes.DeleteFailed", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to No custom theme selected..
|
||||
/// </summary>
|
||||
public static string Menu_Appearance_CustomThemes_NoneSelected {
|
||||
get {
|
||||
return ResourceManager.GetString("Menu.Appearance.CustomThemes.NoneSelected", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Failed to rename custom theme {0}: {1}.
|
||||
/// </summary>
|
||||
public static string Menu_Appearance_CustomThemes_RenameFailed {
|
||||
get {
|
||||
return ResourceManager.GetString("Menu.Appearance.CustomThemes.RenameFailed", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Configure how Bloxstrap should look..
|
||||
/// </summary>
|
||||
|
@ -1430,4 +1430,19 @@ Please close any applications that may be using Roblox's files, and relaunch.</v
|
||||
<value>Failed to setup custom bootstrapper: {0}.
|
||||
Defaulting to Fluent.</value>
|
||||
</data>
|
||||
<data name="Menu.Appearance.CustomThemes.NoneSelected" xml:space="preserve">
|
||||
<value>No custom theme selected.</value>
|
||||
</data>
|
||||
<data name="Common.Rename" xml:space="preserve">
|
||||
<value>Rename</value>
|
||||
</data>
|
||||
<data name="Common.Edit" xml:space="preserve">
|
||||
<value>Edit</value>
|
||||
</data>
|
||||
<data name="Menu.Appearance.CustomThemes.DeleteFailed" xml:space="preserve">
|
||||
<value>Failed to delete custom theme {0}: {1}</value>
|
||||
</data>
|
||||
<data name="Menu.Appearance.CustomThemes.RenameFailed" xml:space="preserve">
|
||||
<value>Failed to rename custom theme {0}: {1}</value>
|
||||
</data>
|
||||
</root>
|
@ -102,12 +102,12 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<ui:Button Grid.Column="0" Margin="0,0,2,0" Icon="Add28" Content="Rename" HorizontalAlignment="Stretch" Command="{Binding RenameCustomThemeCommand, Mode=OneTime}" />
|
||||
<ui:Button Grid.Column="1" Margin="2,0,2,0" Icon="Add28" Content="Edit" HorizontalAlignment="Stretch" Command="{Binding EditCustomThemeCommand, Mode=OneTime}" />
|
||||
<ui:Button Grid.Column="2" Margin="2,0,0,0" Icon="Add28" Content="Export" HorizontalAlignment="Stretch" Command="{Binding ExportCustomThemeCommand, Mode=OneTime}" />
|
||||
<ui:Button Grid.Column="0" Margin="0,0,2,0" Icon="Add28" Content="{x:Static resources:Strings.Common_Rename}" HorizontalAlignment="Stretch" Command="{Binding RenameCustomThemeCommand, Mode=OneTime}" />
|
||||
<ui:Button Grid.Column="1" Margin="2,0,2,0" Icon="Add28" Content="{x:Static resources:Strings.Common_Edit}" HorizontalAlignment="Stretch" Command="{Binding EditCustomThemeCommand, Mode=OneTime}" />
|
||||
<ui:Button Grid.Column="2" Margin="2,0,0,0" Icon="Add28" Content="{x:Static resources:Strings.Common_Export}" HorizontalAlignment="Stretch" Command="{Binding ExportCustomThemeCommand, Mode=OneTime}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
<TextBlock Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" Text="No custom theme selected." TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<TextBlock Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" Text="{x:Static resources:Strings.Menu_Appearance_CustomThemes_NoneSelected}" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<TextBlock.Style>
|
||||
<Style>
|
||||
<Style.Triggers>
|
||||
|
@ -177,7 +177,7 @@ namespace Bloxstrap.UI.ViewModels.Settings
|
||||
catch (Exception ex)
|
||||
{
|
||||
App.Logger.WriteException("AppearanceViewModel::DeleteCustomTheme", ex);
|
||||
Frontend.ShowMessageBox($"Failed to delete custom theme {SelectedCustomTheme}: {ex.Message}", MessageBoxImage.Error);
|
||||
Frontend.ShowMessageBox(string.Format(Strings.Menu_Appearance_CustomThemes_DeleteFailed, SelectedCustomTheme, ex.Message), MessageBoxImage.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -207,7 +207,7 @@ namespace Bloxstrap.UI.ViewModels.Settings
|
||||
catch (Exception ex)
|
||||
{
|
||||
App.Logger.WriteException("AppearanceViewModel::RenameCustomTheme", ex);
|
||||
Frontend.ShowMessageBox($"Failed to rename custom theme {SelectedCustomTheme}: {ex.Message}", MessageBoxImage.Error);
|
||||
Frontend.ShowMessageBox(string.Format(Strings.Menu_Appearance_CustomThemes_RenameFailed, SelectedCustomTheme, ex.Message), MessageBoxImage.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user