mirror of
https://github.com/ppy/osu
synced 2025-02-02 03:11:58 +00:00
Prefix common strings for context
This commit is contained in:
parent
9f043e725f
commit
abca3d1b2a
@ -10,13 +10,13 @@ namespace osu.Game.Configuration
|
||||
{
|
||||
public enum DiscordRichPresenceMode
|
||||
{
|
||||
[LocalisableDescription(typeof(OnlineSettingsStrings), nameof(OnlineSettingsStrings.Off))]
|
||||
[LocalisableDescription(typeof(OnlineSettingsStrings), nameof(OnlineSettingsStrings.DiscordPresenceOff))]
|
||||
Off,
|
||||
|
||||
[LocalisableDescription(typeof(OnlineSettingsStrings), nameof(OnlineSettingsStrings.HideIdentifiableInformation))]
|
||||
Limited,
|
||||
|
||||
[LocalisableDescription(typeof(OnlineSettingsStrings), nameof(OnlineSettingsStrings.Full))]
|
||||
[LocalisableDescription(typeof(OnlineSettingsStrings), nameof(OnlineSettingsStrings.DiscordPresenceFull))]
|
||||
Full
|
||||
}
|
||||
}
|
||||
|
@ -10,13 +10,13 @@ namespace osu.Game.Configuration
|
||||
{
|
||||
public enum HUDVisibilityMode
|
||||
{
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.Never))]
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.NeverShowHUD))]
|
||||
Never,
|
||||
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.HideDuringGameplay))]
|
||||
HideDuringGameplay,
|
||||
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.Always))]
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.AlwaysShowHUD))]
|
||||
Always
|
||||
}
|
||||
}
|
||||
|
@ -10,16 +10,16 @@ namespace osu.Game.Configuration
|
||||
{
|
||||
public enum ScalingMode
|
||||
{
|
||||
[LocalisableDescription(typeof(LayoutSettingsStrings), nameof(LayoutSettingsStrings.Off))]
|
||||
[LocalisableDescription(typeof(LayoutSettingsStrings), nameof(LayoutSettingsStrings.ScalingOff))]
|
||||
Off,
|
||||
|
||||
[LocalisableDescription(typeof(LayoutSettingsStrings), nameof(LayoutSettingsStrings.Everything))]
|
||||
[LocalisableDescription(typeof(LayoutSettingsStrings), nameof(LayoutSettingsStrings.ScaleEverything))]
|
||||
Everything,
|
||||
|
||||
[LocalisableDescription(typeof(LayoutSettingsStrings), nameof(LayoutSettingsStrings.ExcludingOverlays))]
|
||||
ExcludeOverlays,
|
||||
|
||||
[LocalisableDescription(typeof(LayoutSettingsStrings), nameof(LayoutSettingsStrings.Gameplay))]
|
||||
[LocalisableDescription(typeof(LayoutSettingsStrings), nameof(LayoutSettingsStrings.ScaleGameplay))]
|
||||
Gameplay,
|
||||
}
|
||||
}
|
||||
|
@ -13,19 +13,19 @@ namespace osu.Game.Configuration
|
||||
/// <summary>
|
||||
/// Seasonal backgrounds are shown regardless of season, if at all available.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.Always))]
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.AlwaysSeasonalBackground))]
|
||||
Always,
|
||||
|
||||
/// <summary>
|
||||
/// Seasonal backgrounds are shown only during their corresponding season.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.Sometimes))]
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.SometimesSeasonalBackground))]
|
||||
Sometimes,
|
||||
|
||||
/// <summary>
|
||||
/// Seasonal backgrounds are never shown.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.Never))]
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.NeverSeasonalBackground))]
|
||||
Never
|
||||
}
|
||||
}
|
||||
|
@ -18,20 +18,20 @@ namespace osu.Game.Input
|
||||
/// <summary>
|
||||
/// The mouse cursor will be free to move outside the game window.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.Never))]
|
||||
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.NeverConfine))]
|
||||
Never,
|
||||
|
||||
/// <summary>
|
||||
/// The mouse cursor will be locked to the window bounds during gameplay,
|
||||
/// but may otherwise move freely.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.DuringGameplay))]
|
||||
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.ConfineDuringGameplay))]
|
||||
DuringGameplay,
|
||||
|
||||
/// <summary>
|
||||
/// The mouse cursor will always be locked to the window bounds while the game has focus.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.Always))]
|
||||
[LocalisableDescription(typeof(MouseSettingsStrings), nameof(MouseSettingsStrings.AlwaysConfine))]
|
||||
Always
|
||||
}
|
||||
}
|
||||
|
@ -112,22 +112,22 @@ namespace osu.Game.Localisation
|
||||
/// <summary>
|
||||
/// "Always"
|
||||
/// </summary>
|
||||
public static LocalisableString Always => new TranslatableString(getKey(@"always"), @"Always");
|
||||
public static LocalisableString AlwaysShowHUD => new TranslatableString(getKey(@"always_show_hud"), @"Always");
|
||||
|
||||
/// <summary>
|
||||
/// "Never"
|
||||
/// </summary>
|
||||
public static LocalisableString Never => new TranslatableString(getKey(@"never"), @"Never");
|
||||
public static LocalisableString NeverShowHUD => new TranslatableString(getKey(@"never"), @"Never");
|
||||
|
||||
/// <summary>
|
||||
/// "Standardised"
|
||||
/// </summary>
|
||||
public static LocalisableString Standardised => new TranslatableString(getKey(@"standardised"), @"Standardised");
|
||||
public static LocalisableString StandardisedScoreDisplay => new TranslatableString(getKey(@"standardised_score_display"), @"Standardised");
|
||||
|
||||
/// <summary>
|
||||
/// "Classic"
|
||||
/// </summary>
|
||||
public static LocalisableString Classic => new TranslatableString(getKey(@"classic"), @"Classic");
|
||||
public static LocalisableString ClassicScoreDisplay => new TranslatableString(getKey(@"classic_score_display"), @"Classic");
|
||||
|
||||
private static string getKey(string key) => $"{prefix}:{key}";
|
||||
}
|
||||
|
@ -37,17 +37,17 @@ namespace osu.Game.Localisation
|
||||
/// <summary>
|
||||
/// "Everything"
|
||||
/// </summary>
|
||||
public static LocalisableString Everything => new TranslatableString(getKey(@"everything"), @"Everything");
|
||||
public static LocalisableString ScaleEverything => new TranslatableString(getKey(@"everything"), @"Everything");
|
||||
|
||||
/// <summary>
|
||||
/// "Gameplay"
|
||||
/// </summary>
|
||||
public static LocalisableString Gameplay => new TranslatableString(getKey(@"gameplay"), @"Gameplay");
|
||||
public static LocalisableString ScaleGameplay => new TranslatableString(getKey(@"gameplay"), @"Gameplay");
|
||||
|
||||
/// <summary>
|
||||
/// "Off"
|
||||
/// </summary>
|
||||
public static LocalisableString Off => new TranslatableString(getKey(@"scaling_mode.off"), @"Off");
|
||||
public static LocalisableString ScalingOff => new TranslatableString(getKey(@"off"), @"Off");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
|
@ -67,17 +67,17 @@ namespace osu.Game.Localisation
|
||||
/// <summary>
|
||||
/// "Always"
|
||||
/// </summary>
|
||||
public static LocalisableString Always => new TranslatableString(getKey(@"always"), @"Always");
|
||||
public static LocalisableString AlwaysConfine => new TranslatableString(getKey(@"always"), @"Always");
|
||||
|
||||
/// <summary>
|
||||
/// "During Gameplay"
|
||||
/// </summary>
|
||||
public static LocalisableString DuringGameplay => new TranslatableString(getKey(@"during_gameplay"), @"During Gameplay");
|
||||
public static LocalisableString ConfineDuringGameplay => new TranslatableString(getKey(@"during_gameplay"), @"During Gameplay");
|
||||
|
||||
/// <summary>
|
||||
/// "Never"
|
||||
/// </summary>
|
||||
public static LocalisableString Never => new TranslatableString(getKey(@"never"), @"Never");
|
||||
public static LocalisableString NeverConfine => new TranslatableString(getKey(@"never"), @"Never");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
|
@ -72,12 +72,12 @@ namespace osu.Game.Localisation
|
||||
/// <summary>
|
||||
/// "Full"
|
||||
/// </summary>
|
||||
public static LocalisableString Full => new TranslatableString(getKey(@"full"), @"Full");
|
||||
public static LocalisableString DiscordPresenceFull => new TranslatableString(getKey(@"full"), @"Full");
|
||||
|
||||
/// <summary>
|
||||
/// "Off"
|
||||
/// </summary>
|
||||
public static LocalisableString Off => new TranslatableString(getKey(@"off"), @"Off");
|
||||
public static LocalisableString DiscordPresenceOff => new TranslatableString(getKey(@"off"), @"Off");
|
||||
|
||||
private static string getKey(string key) => $"{prefix}:{key}";
|
||||
}
|
||||
|
@ -17,17 +17,17 @@ namespace osu.Game.Localisation
|
||||
/// <summary>
|
||||
/// "None"
|
||||
/// </summary>
|
||||
public static LocalisableString None => new TranslatableString(getKey(@"none"), @"None");
|
||||
public static LocalisableString BorderNone => new TranslatableString(getKey(@"none"), @"None");
|
||||
|
||||
/// <summary>
|
||||
/// "Corners"
|
||||
/// </summary>
|
||||
public static LocalisableString Corners => new TranslatableString(getKey(@"corners"), @"Corners");
|
||||
public static LocalisableString BorderCorners => new TranslatableString(getKey(@"corners"), @"Corners");
|
||||
|
||||
/// <summary>
|
||||
/// "Full"
|
||||
/// </summary>
|
||||
public static LocalisableString Full => new TranslatableString(getKey(@"full"), @"Full");
|
||||
public static LocalisableString BorderFull => new TranslatableString(getKey(@"full"), @"Full");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
|
@ -122,27 +122,27 @@ namespace osu.Game.Localisation
|
||||
/// <summary>
|
||||
/// "Always"
|
||||
/// </summary>
|
||||
public static LocalisableString Always => new TranslatableString(getKey(@"always"), @"Always");
|
||||
public static LocalisableString AlwaysSeasonalBackground => new TranslatableString(getKey(@"always"), @"Always");
|
||||
|
||||
/// <summary>
|
||||
/// "Never"
|
||||
/// </summary>
|
||||
public static LocalisableString Never => new TranslatableString(getKey(@"never"), @"Never");
|
||||
public static LocalisableString NeverSeasonalBackground => new TranslatableString(getKey(@"never"), @"Never");
|
||||
|
||||
/// <summary>
|
||||
/// "Sometimes"
|
||||
/// </summary>
|
||||
public static LocalisableString Sometimes => new TranslatableString(getKey(@"sometimes"), @"Sometimes");
|
||||
public static LocalisableString SometimesSeasonalBackground => new TranslatableString(getKey(@"sometimes"), @"Sometimes");
|
||||
|
||||
/// <summary>
|
||||
/// "Sequential"
|
||||
/// </summary>
|
||||
public static LocalisableString Sequential => new TranslatableString(getKey(@"sequential"), @"Sequential");
|
||||
public static LocalisableString SequentialHotkeyStyle => new TranslatableString(getKey(@"sequential"), @"Sequential");
|
||||
|
||||
/// <summary>
|
||||
/// "Classic"
|
||||
/// </summary>
|
||||
public static LocalisableString Classic => new TranslatableString(getKey(@"classic"), @"Classic");
|
||||
public static LocalisableString ClassicHotkeyStyle => new TranslatableString(getKey(@"classic"), @"Classic");
|
||||
|
||||
/// <summary>
|
||||
/// "Never repeat"
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Overlays.Mods.Input
|
||||
/// Individual letters in a row trigger the mods in a sequential fashion.
|
||||
/// Uses <see cref="SequentialModHotkeyHandler"/>.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.Sequential))]
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.SequentialHotkeyStyle))]
|
||||
Sequential,
|
||||
|
||||
/// <summary>
|
||||
@ -25,7 +25,7 @@ namespace osu.Game.Overlays.Mods.Input
|
||||
/// One keybinding can toggle between what used to be <see cref="MultiMod"/>s on stable,
|
||||
/// and some mods in a column may not have any hotkeys at all.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.Classic))]
|
||||
[LocalisableDescription(typeof(UserInterfaceStrings), nameof(UserInterfaceStrings.ClassicHotkeyStyle))]
|
||||
Classic
|
||||
}
|
||||
}
|
||||
|
@ -638,10 +638,10 @@ namespace osu.Game.Rulesets.Scoring
|
||||
|
||||
public enum ScoringMode
|
||||
{
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.Standardised))]
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.StandardisedScoreDisplay))]
|
||||
Standardised,
|
||||
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.Classic))]
|
||||
[LocalisableDescription(typeof(GameplaySettingsStrings), nameof(GameplaySettingsStrings.ClassicScoreDisplay))]
|
||||
Classic
|
||||
}
|
||||
}
|
||||
|
@ -10,13 +10,13 @@ namespace osu.Game.Rulesets.UI
|
||||
{
|
||||
public enum PlayfieldBorderStyle
|
||||
{
|
||||
[LocalisableDescription(typeof(RulesetSettingsStrings), nameof(RulesetSettingsStrings.None))]
|
||||
[LocalisableDescription(typeof(RulesetSettingsStrings), nameof(RulesetSettingsStrings.BorderNone))]
|
||||
None,
|
||||
|
||||
[LocalisableDescription(typeof(RulesetSettingsStrings), nameof(RulesetSettingsStrings.Corners))]
|
||||
[LocalisableDescription(typeof(RulesetSettingsStrings), nameof(RulesetSettingsStrings.BorderCorners))]
|
||||
Corners,
|
||||
|
||||
[LocalisableDescription(typeof(RulesetSettingsStrings), nameof(RulesetSettingsStrings.Full))]
|
||||
[LocalisableDescription(typeof(RulesetSettingsStrings), nameof(RulesetSettingsStrings.BorderFull))]
|
||||
Full
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user