mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 23:33:23 +08:00
Use more Localisations
This commit is contained in:
parent
2e5db5e259
commit
95e2521ca4
@ -184,7 +184,7 @@ namespace osu.Game.Skinning.Components
|
|||||||
{
|
{
|
||||||
string title = bm.NewValue.BeatmapInfo.Metadata.Title;
|
string title = bm.NewValue.BeatmapInfo.Metadata.Title;
|
||||||
//todo: no Song Title localisation?
|
//todo: no Song Title localisation?
|
||||||
labelText = TooltipText = "Song Title";
|
labelText = TooltipText = EditorSetupStrings.Title;
|
||||||
value = title;
|
value = title;
|
||||||
updateLabel();
|
updateLabel();
|
||||||
}, true);
|
}, true);
|
||||||
@ -194,8 +194,7 @@ namespace osu.Game.Skinning.Components
|
|||||||
beatmap.BindValueChanged(bm =>
|
beatmap.BindValueChanged(bm =>
|
||||||
{
|
{
|
||||||
string artist = bm.NewValue.BeatmapInfo.Metadata.Artist;
|
string artist = bm.NewValue.BeatmapInfo.Metadata.Artist;
|
||||||
//todo: Localize Artist
|
labelText = EditorSetupStrings.Artist;
|
||||||
labelText = "Artist";
|
|
||||||
TooltipText = BeatmapsetsStrings.ShowDetailsByArtist(artist);
|
TooltipText = BeatmapsetsStrings.ShowDetailsByArtist(artist);
|
||||||
value = artist;
|
value = artist;
|
||||||
updateLabel();
|
updateLabel();
|
||||||
@ -206,8 +205,7 @@ namespace osu.Game.Skinning.Components
|
|||||||
beatmap.BindValueChanged(bm =>
|
beatmap.BindValueChanged(bm =>
|
||||||
{
|
{
|
||||||
string diff = bm.NewValue.BeatmapInfo.DifficultyName;
|
string diff = bm.NewValue.BeatmapInfo.DifficultyName;
|
||||||
//todo: no Difficulty name localisation?
|
labelText = TooltipText = EditorSetupStrings.DifficultyHeader;
|
||||||
labelText = TooltipText = "Difficulty";
|
|
||||||
text.Current.Value = diff;
|
text.Current.Value = diff;
|
||||||
updateLabel();
|
updateLabel();
|
||||||
}, true);
|
}, true);
|
||||||
@ -218,7 +216,7 @@ namespace osu.Game.Skinning.Components
|
|||||||
{
|
{
|
||||||
string mapper = bm.NewValue.BeatmapInfo.Metadata.Author.Username;
|
string mapper = bm.NewValue.BeatmapInfo.Metadata.Author.Username;
|
||||||
//todo: is there a good alternative, to ShowDetailsMappedBy?
|
//todo: is there a good alternative, to ShowDetailsMappedBy?
|
||||||
labelText = "Mapper";
|
labelText = AccountsStrings.NotificationsOptionsMapping;
|
||||||
TooltipText = BeatmapsetsStrings.ShowDetailsMappedBy(mapper);
|
TooltipText = BeatmapsetsStrings.ShowDetailsMappedBy(mapper);
|
||||||
value = mapper;
|
value = mapper;
|
||||||
updateLabel();
|
updateLabel();
|
||||||
@ -228,7 +226,7 @@ namespace osu.Game.Skinning.Components
|
|||||||
case BeatmapInfo.Length:
|
case BeatmapInfo.Length:
|
||||||
beatmap.BindValueChanged(bm =>
|
beatmap.BindValueChanged(bm =>
|
||||||
{
|
{
|
||||||
labelText = TooltipText = BeatmapsetsStrings.ShowStatsTotalLength(TimeSpan.FromMilliseconds(bm.NewValue.BeatmapInfo.Length).ToFormattedDuration());
|
labelText = TooltipText = ArtistStrings.TracklistLength;
|
||||||
value = TimeSpan.FromMilliseconds(bm.NewValue.BeatmapInfo.Length).ToFormattedDuration();
|
value = TimeSpan.FromMilliseconds(bm.NewValue.BeatmapInfo.Length).ToFormattedDuration();
|
||||||
updateLabel();
|
updateLabel();
|
||||||
}, true);
|
}, true);
|
||||||
@ -239,8 +237,7 @@ namespace osu.Game.Skinning.Components
|
|||||||
{
|
{
|
||||||
BeatmapOnlineStatus status = bm.NewValue.BeatmapInfo.Status;
|
BeatmapOnlineStatus status = bm.NewValue.BeatmapInfo.Status;
|
||||||
//todo: no Localizasion for None Beatmap Online Status
|
//todo: no Localizasion for None Beatmap Online Status
|
||||||
//todo: no Localization for Status?
|
labelText = BeatmapDiscussionsStrings.IndexFormBeatmapsetStatusDefault;
|
||||||
labelText = "Status";
|
|
||||||
|
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user