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