mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Rename string properties to give more hinting to localisers
This commit is contained in:
parent
61b8d035fe
commit
d7a06059f2
@ -72,17 +72,17 @@ namespace osu.Game.Localisation
|
||||
/// <summary>
|
||||
/// "Keep existing"
|
||||
/// </summary>
|
||||
public static LocalisableString KeepExisting => new TranslatableString(getKey(@"keep_existing"), @"Keep existing");
|
||||
public static LocalisableString KeepExistingBinding => new TranslatableString(getKey(@"keep_existing"), @"Keep existing");
|
||||
|
||||
/// <summary>
|
||||
/// "Apply new"
|
||||
/// </summary>
|
||||
public static LocalisableString ApplyNew => new TranslatableString(getKey(@"apply_new"), @"Apply new");
|
||||
public static LocalisableString ApplyNewBinding => new TranslatableString(getKey(@"apply_new"), @"Apply new");
|
||||
|
||||
/// <summary>
|
||||
/// "(none)"
|
||||
/// </summary>
|
||||
public static LocalisableString EmptyBinding => new TranslatableString(getKey(@"none"), @"(none)");
|
||||
public static LocalisableString ActionHasNoKeyBinding => new TranslatableString(getKey(@"none"), @"(none)");
|
||||
|
||||
private static string getKey(string key) => $"{prefix}:{key}";
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
{
|
||||
keepExistingButton = new HoverableRoundedButton
|
||||
{
|
||||
Text = InputSettingsStrings.KeepExisting,
|
||||
Text = InputSettingsStrings.KeepExistingBinding,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Width = 0.48f,
|
||||
Anchor = Anchor.CentreLeft,
|
||||
@ -86,7 +86,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
},
|
||||
applyNewButton = new HoverableRoundedButton
|
||||
{
|
||||
Text = InputSettingsStrings.ApplyNew,
|
||||
Text = InputSettingsStrings.ApplyNewBinding,
|
||||
BackgroundColour = colours.Pink3,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Width = 0.48f,
|
||||
@ -270,7 +270,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
}
|
||||
|
||||
if (LocalisableString.IsNullOrEmpty(keyCombinationText))
|
||||
keyCombinationText = InputSettingsStrings.EmptyBinding;
|
||||
keyCombinationText = InputSettingsStrings.ActionHasNoKeyBinding;
|
||||
|
||||
newBindingText.Text = keyCombinationText;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user