Move strings together

This commit is contained in:
kj415j45
2021-07-18 02:23:12 +08:00
parent 224c37bdc3
commit 93e79d122f
4 changed files with 12 additions and 24 deletions

View File

@ -5,14 +5,19 @@ using osu.Framework.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>
/// "track recent dev updates in the osu! ecosystem"
/// </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}";
}

View File

@ -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}";
}
}