mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Move strings together
This commit is contained in:
@ -5,14 +5,19 @@ using osu.Framework.Localisation;
|
|||||||
|
|
||||||
namespace osu.Game.Localisation
|
namespace osu.Game.Localisation
|
||||||
{
|
{
|
||||||
public static class ChangelogStrings
|
public static class HeaderDescriptionStrings
|
||||||
{
|
{
|
||||||
private const string prefix = @"osu.Game.Resources.Localisation.Changelog";
|
private const string prefix = @"osu.Game.Resources.Localisation.HeaderDescription";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "track recent dev updates in the osu! ecosystem"
|
/// "track recent dev updates in the osu! ecosystem"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"track recent dev updates in the osu! ecosystem");
|
public static LocalisableString Changelog => new TranslatableString(getKey(@"changelog"), @"track recent dev updates in the osu! ecosystem");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "get up-to-date on community happenings"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString News => new TranslatableString(getKey(@"news"), @"get up-to-date on community happenings");
|
||||||
|
|
||||||
private static string getKey(string key) => $"{prefix}:{key}";
|
private static string getKey(string key) => $"{prefix}:{key}";
|
||||||
}
|
}
|
@ -1,19 +0,0 @@
|
|||||||
// 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.
|
|
||||||
|
|
||||||
using osu.Framework.Localisation;
|
|
||||||
|
|
||||||
namespace osu.Game.Localisation
|
|
||||||
{
|
|
||||||
public static class NewsStrings
|
|
||||||
{
|
|
||||||
private const string prefix = @"osu.Game.Resources.Localisation.News";
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// "join the real-time discussion"
|
|
||||||
/// </summary>
|
|
||||||
public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"get up-to-date on community happenings");
|
|
||||||
|
|
||||||
private static string getKey(string key) => $"{prefix}:{key}";
|
|
||||||
}
|
|
||||||
}
|
|
@ -10,6 +10,7 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
|
using osu.Game.Localisation;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
using osu.Game.Resources.Localisation.Web;
|
using osu.Game.Resources.Localisation.Web;
|
||||||
|
|
||||||
@ -117,7 +118,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
public ChangelogHeaderTitle()
|
public ChangelogHeaderTitle()
|
||||||
{
|
{
|
||||||
Title = LayoutStrings.MenuHomeChangelogIndex;
|
Title = LayoutStrings.MenuHomeChangelogIndex;
|
||||||
Description = osu.Game.Localisation.ChangelogStrings.HeaderDescription;
|
Description = HeaderDescriptionStrings.Changelog;
|
||||||
IconTexture = "Icons/Hexacons/devtools";
|
IconTexture = "Icons/Hexacons/devtools";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ using System;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
|
using osu.Game.Localisation;
|
||||||
using osu.Game.Resources.Localisation.Web;
|
using osu.Game.Resources.Localisation.Web;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.News
|
namespace osu.Game.Overlays.News
|
||||||
@ -63,7 +64,7 @@ namespace osu.Game.Overlays.News
|
|||||||
public NewsHeaderTitle()
|
public NewsHeaderTitle()
|
||||||
{
|
{
|
||||||
Title = LayoutStrings.MenuHomeNewsIndex;
|
Title = LayoutStrings.MenuHomeNewsIndex;
|
||||||
Description = osu.Game.Localisation.NewsStrings.HeaderDescription;
|
Description = HeaderDescriptionStrings.News;
|
||||||
IconTexture = "Icons/Hexacons/news";
|
IconTexture = "Icons/Hexacons/news";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user