Add common strings for missing localisable content

This commit is contained in:
Dean Herbert 2022-05-18 21:32:32 +09:00
parent d54e1503c7
commit 0cee90e156
2 changed files with 25 additions and 5 deletions

View File

@ -69,6 +69,26 @@ namespace osu.Game.Localisation
/// </summary> /// </summary>
public static LocalisableString SelectAll => new TranslatableString(getKey(@"select_all"), @"Select All"); public static LocalisableString SelectAll => new TranslatableString(getKey(@"select_all"), @"Select All");
/// <summary>
/// "Beatmaps"
/// </summary>
public static LocalisableString Beatmaps => new TranslatableString(getKey(@"beatmaps"), @"Beatmaps");
/// <summary>
/// "Scores"
/// </summary>
public static LocalisableString Scores => new TranslatableString(getKey(@"scores"), @"Scores");
/// <summary>
/// "Skins"
/// </summary>
public static LocalisableString Skins => new TranslatableString(getKey(@"skins"), @"Skins");
/// <summary>
/// "Collections"
/// </summary>
public static LocalisableString Collections => new TranslatableString(getKey(@"collections"), @"Collections");
private static string getKey(string key) => $@"{prefix}:{key}"; private static string getKey(string key) => $@"{prefix}:{key}";
} }
} }

View File

@ -60,10 +60,10 @@ namespace osu.Game.Overlays.FirstRunSetup
Label = FirstRunOverlayImportFromStableScreenStrings.LocateDirectoryLabel, Label = FirstRunOverlayImportFromStableScreenStrings.LocateDirectoryLabel,
PlaceholderText = FirstRunOverlayImportFromStableScreenStrings.LocateDirectoryPlaceholder PlaceholderText = FirstRunOverlayImportFromStableScreenStrings.LocateDirectoryPlaceholder
}, },
new ImportCheckbox("Beatmaps", StableContent.Beatmaps), new ImportCheckbox(CommonStrings.Beatmaps, StableContent.Beatmaps),
new ImportCheckbox("Scores", StableContent.Scores), new ImportCheckbox(CommonStrings.Scores, StableContent.Scores),
new ImportCheckbox("Skins", StableContent.Skins), new ImportCheckbox(CommonStrings.Skins, StableContent.Skins),
new ImportCheckbox("Collections", StableContent.Collections), new ImportCheckbox(CommonStrings.Collections, StableContent.Collections),
importButton = new ProgressRoundedButton importButton = new ProgressRoundedButton
{ {
Size = button_size, Size = button_size,