mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Localise create/save dialog
This commit is contained in:
@ -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
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user