Browse Source

i18n

pull/629/head
JT 8 months ago
parent
commit
ec4c7343da
  1. 18
      StabilityMatrix.Avalonia/Languages/Resources.Designer.cs
  2. 6
      StabilityMatrix.Avalonia/Languages/Resources.resx
  3. 7
      StabilityMatrix.Avalonia/ViewModels/MainWindowViewModel.cs

18
StabilityMatrix.Avalonia/Languages/Resources.Designer.cs generated

@ -734,6 +734,15 @@ namespace StabilityMatrix.Avalonia.Languages {
} }
} }
/// <summary>
/// Looks up a localized string similar to Another instance of Stability Matrix is already running. Please close it before starting a new one..
/// </summary>
public static string Label_AnotherInstanceAlreadyRunning {
get {
return ResourceManager.GetString("Label_AnotherInstanceAlreadyRunning", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to API Key. /// Looks up a localized string similar to API Key.
/// </summary> /// </summary>
@ -2273,6 +2282,15 @@ namespace StabilityMatrix.Avalonia.Languages {
} }
} }
/// <summary>
/// Looks up a localized string similar to Stability Matrix is already running.
/// </summary>
public static string Label_StabilityMatrixAlreadyRunning {
get {
return ResourceManager.GetString("Label_StabilityMatrixAlreadyRunning", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Steps. /// Looks up a localized string similar to Steps.
/// </summary> /// </summary>

6
StabilityMatrix.Avalonia/Languages/Resources.resx

@ -1020,4 +1020,10 @@
<data name="TeachingTip_WebUiButtonMoved" xml:space="preserve"> <data name="TeachingTip_WebUiButtonMoved" xml:space="preserve">
<value>The 'Open Web UI' button has moved to the command bar</value> <value>The 'Open Web UI' button has moved to the command bar</value>
</data> </data>
<data name="Label_AnotherInstanceAlreadyRunning" xml:space="preserve">
<value>Another instance of Stability Matrix is already running. Please close it before starting a new one.</value>
</data>
<data name="Label_StabilityMatrixAlreadyRunning" xml:space="preserve">
<value>Stability Matrix is already running</value>
</data>
</root> </root>

7
StabilityMatrix.Avalonia/ViewModels/MainWindowViewModel.cs

@ -119,11 +119,10 @@ public partial class MainWindowViewModel : ViewModelBase
{ {
var dialog = new BetterContentDialog var dialog = new BetterContentDialog
{ {
Title = "Stability Matrix is already running", Title = Resources.Label_StabilityMatrixAlreadyRunning,
Content = Content = Resources.Label_AnotherInstanceAlreadyRunning,
"Another instance of Stability Matrix is already running. Please close it before starting a new one.",
IsPrimaryButtonEnabled = true, IsPrimaryButtonEnabled = true,
PrimaryButtonText = "Close", PrimaryButtonText = Resources.Action_Close,
DefaultButton = ContentDialogButton.Primary DefaultButton = ContentDialogButton.Primary
}; };
await dialog.ShowAsync(); await dialog.ShowAsync();

Loading…
Cancel
Save