Localise create/save dialog

This commit is contained in:
ansel
2023-01-15 01:49:54 +03:00
parent 78e562903d
commit 87650044bb
3 changed files with 64 additions and 12 deletions

View File

@ -1,11 +1,10 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using osu.Framework.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
using osu.Game.Localisation;
namespace osu.Game.Screens.Edit
{
@ -13,7 +12,7 @@ namespace osu.Game.Screens.Edit
{
public PromptForSaveDialog(Action exit, Action saveAndExit, Action cancel)
{
HeaderText = "Did you want to save your changes?";
HeaderText = EditorDialogsStrings.SaveDialogHeader;
Icon = FontAwesome.Regular.Save;
@ -21,17 +20,17 @@ namespace osu.Game.Screens.Edit
{
new PopupDialogOkButton
{
Text = @"Save my masterpiece!",
Text = EditorDialogsStrings.Save,
Action = saveAndExit
},
new PopupDialogDangerousButton
{
Text = @"Forget all changes",
Text = EditorDialogsStrings.ForgetAllChanges,
Action = exit
},
new PopupDialogCancelButton
{
Text = @"Oops, continue editing",
Text = EditorDialogsStrings.ContinueEditing,
Action = cancel
},
};