Skip to content

Commit 64e8c24

Browse files
authored
Merge pull request #311 from taulazer/localisation-missing-strings
2 parents ff0c719 + 88ca7dd commit 64e8c24

File tree

131 files changed

+5204
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+5204
-3
lines changed

osu.Game.Rulesets.Tau/Beatmaps/TauBeatmap.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Linq;
33
using osu.Framework.Graphics.Sprites;
44
using osu.Game.Beatmaps;
5+
using osu.Game.Rulesets.Tau.Localisation;
56
using osu.Game.Rulesets.Tau.Objects;
67
using osuTK;
78

@@ -19,7 +20,7 @@ public override IEnumerable<BeatmapStatistic> GetStatistics()
1920
{
2021
new BeatmapStatistic
2122
{
22-
Name = "Beat count",
23+
Name = BeatmapStrings.BeatCount,
2324
Content = beats.ToString(),
2425
CreateIcon = () => new SpriteIcon
2526
{
@@ -29,13 +30,13 @@ public override IEnumerable<BeatmapStatistic> GetStatistics()
2930
},
3031
new BeatmapStatistic
3132
{
32-
Name = "Slider count",
33+
Name = BeatmapStrings.SliderCount,
3334
Content = sliders.ToString(),
3435
CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders)
3536
},
3637
new BeatmapStatistic
3738
{
38-
Name = "Hard Beat count",
39+
Name = BeatmapStrings.HardBeatCount,
3940
Content = hardBeats.ToString(),
4041
CreateIcon = () => new SpriteIcon
4142
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using osu.Framework.Localisation;
2+
3+
namespace osu.Game.Rulesets.Tau.Localisation
4+
{
5+
public class BeatmapStrings
6+
{
7+
private const string prefix = @"osu.Game.Rulesets.Tau.Localisation.Translations.Beatmap";
8+
9+
/// <summary>
10+
/// "Beat count"
11+
/// </summary>
12+
public static LocalisableString BeatCount => new TranslatableString(getKey(@"beat_count"), @"Beat count");
13+
14+
/// <summary>
15+
/// "Slider count"
16+
/// </summary>
17+
public static LocalisableString SliderCount => new TranslatableString(getKey(@"slider_count"), @"Slider count");
18+
19+
/// <summary>
20+
/// "Hard Beat count"
21+
/// </summary>
22+
public static LocalisableString HardBeatCount => new TranslatableString(getKey(@"hard_beat_count"), @"Hard Beat count");
23+
24+
private static string getKey(string key) => $@"{prefix}:{key}";
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using osu.Framework.Localisation;
2+
3+
namespace osu.Game.Rulesets.Tau.Localisation
4+
{
5+
public class InputStrings
6+
{
7+
private const string prefix = @"osu.Game.Rulesets.Tau.Localisation.Translations.Inputs";
8+
9+
/// <summary>
10+
/// "Left Button"
11+
/// </summary>
12+
public static LocalisableString LeftButton => new TranslatableString(getKey(@"left_button"), @"Left Button");
13+
14+
/// <summary>
15+
/// "Right Button"
16+
/// </summary>
17+
public static LocalisableString RightButton => new TranslatableString(getKey(@"right_button"), @"Right Button");
18+
19+
/// <summary>
20+
/// "Hard Button 1"
21+
/// </summary>
22+
public static LocalisableString HardButton1 => new TranslatableString(getKey(@"hard_button_1"), @"Hard Button 1");
23+
24+
/// <summary>
25+
/// "Hard Button 2"
26+
/// </summary>
27+
public static LocalisableString HardButton2 => new TranslatableString(getKey(@"hard_button_2"), @"Hard Button 2");
28+
29+
private static string getKey(string key) => $@"{prefix}:{key}";
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
4+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:element name="root" msdata:IsDataSet="true">
6+
<xsd:complexType>
7+
<xsd:choice maxOccurs="unbounded">
8+
<xsd:element name="metadata">
9+
<xsd:complexType>
10+
<xsd:sequence>
11+
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
</xsd:sequence>
13+
<xsd:attribute name="name" use="required" type="xsd:string"/>
14+
<xsd:attribute name="type" type="xsd:string"/>
15+
<xsd:attribute name="mimetype" type="xsd:string"/>
16+
<xsd:attribute ref="xml:space"/>
17+
</xsd:complexType>
18+
</xsd:element>
19+
<xsd:element name="assembly">
20+
<xsd:complexType>
21+
<xsd:attribute name="alias" type="xsd:string"/>
22+
<xsd:attribute name="name" type="xsd:string"/>
23+
</xsd:complexType>
24+
</xsd:element>
25+
<xsd:element name="data">
26+
<xsd:complexType>
27+
<xsd:sequence>
28+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
29+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
30+
</xsd:sequence>
31+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
32+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
33+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
34+
<xsd:attribute ref="xml:space"/>
35+
</xsd:complexType>
36+
</xsd:element>
37+
<xsd:element name="resheader">
38+
<xsd:complexType>
39+
<xsd:sequence>
40+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
</xsd:sequence>
42+
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
</xsd:complexType>
44+
</xsd:element>
45+
</xsd:choice>
46+
</xsd:complexType>
47+
</xsd:element>
48+
</xsd:schema>
49+
<data name="beat_count" xml:space="preserve">
50+
<value>Beat count</value>
51+
</data>
52+
<data name="slider_count" xml:space="preserve">
53+
<value>Slider count</value>
54+
</data>
55+
<data name="hard_beat_count" xml:space="preserve">
56+
<value>Hard Beat count</value>
57+
</data>
58+
</root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
4+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:element name="root" msdata:IsDataSet="true">
6+
<xsd:complexType>
7+
<xsd:choice maxOccurs="unbounded">
8+
<xsd:element name="metadata">
9+
<xsd:complexType>
10+
<xsd:sequence>
11+
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
</xsd:sequence>
13+
<xsd:attribute name="name" use="required" type="xsd:string"/>
14+
<xsd:attribute name="type" type="xsd:string"/>
15+
<xsd:attribute name="mimetype" type="xsd:string"/>
16+
<xsd:attribute ref="xml:space"/>
17+
</xsd:complexType>
18+
</xsd:element>
19+
<xsd:element name="assembly">
20+
<xsd:complexType>
21+
<xsd:attribute name="alias" type="xsd:string"/>
22+
<xsd:attribute name="name" type="xsd:string"/>
23+
</xsd:complexType>
24+
</xsd:element>
25+
<xsd:element name="data">
26+
<xsd:complexType>
27+
<xsd:sequence>
28+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
29+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
30+
</xsd:sequence>
31+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
32+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
33+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
34+
<xsd:attribute ref="xml:space"/>
35+
</xsd:complexType>
36+
</xsd:element>
37+
<xsd:element name="resheader">
38+
<xsd:complexType>
39+
<xsd:sequence>
40+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
</xsd:sequence>
42+
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
</xsd:complexType>
44+
</xsd:element>
45+
</xsd:choice>
46+
</xsd:complexType>
47+
</xsd:element>
48+
</xsd:schema>
49+
<data name="beat_count" xml:space="preserve">
50+
<value>Beat count</value>
51+
</data>
52+
<data name="slider_count" xml:space="preserve">
53+
<value>Slider count</value>
54+
</data>
55+
<data name="hard_beat_count" xml:space="preserve">
56+
<value>Hard Beat count</value>
57+
</data>
58+
</root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
4+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:element name="root" msdata:IsDataSet="true">
6+
<xsd:complexType>
7+
<xsd:choice maxOccurs="unbounded">
8+
<xsd:element name="metadata">
9+
<xsd:complexType>
10+
<xsd:sequence>
11+
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
</xsd:sequence>
13+
<xsd:attribute name="name" use="required" type="xsd:string"/>
14+
<xsd:attribute name="type" type="xsd:string"/>
15+
<xsd:attribute name="mimetype" type="xsd:string"/>
16+
<xsd:attribute ref="xml:space"/>
17+
</xsd:complexType>
18+
</xsd:element>
19+
<xsd:element name="assembly">
20+
<xsd:complexType>
21+
<xsd:attribute name="alias" type="xsd:string"/>
22+
<xsd:attribute name="name" type="xsd:string"/>
23+
</xsd:complexType>
24+
</xsd:element>
25+
<xsd:element name="data">
26+
<xsd:complexType>
27+
<xsd:sequence>
28+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
29+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
30+
</xsd:sequence>
31+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
32+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
33+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
34+
<xsd:attribute ref="xml:space"/>
35+
</xsd:complexType>
36+
</xsd:element>
37+
<xsd:element name="resheader">
38+
<xsd:complexType>
39+
<xsd:sequence>
40+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
</xsd:sequence>
42+
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
</xsd:complexType>
44+
</xsd:element>
45+
</xsd:choice>
46+
</xsd:complexType>
47+
</xsd:element>
48+
</xsd:schema>
49+
<data name="beat_count" xml:space="preserve">
50+
<value>Beat count</value>
51+
</data>
52+
<data name="slider_count" xml:space="preserve">
53+
<value>Slider count</value>
54+
</data>
55+
<data name="hard_beat_count" xml:space="preserve">
56+
<value>Hard Beat count</value>
57+
</data>
58+
</root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
4+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:element name="root" msdata:IsDataSet="true">
6+
<xsd:complexType>
7+
<xsd:choice maxOccurs="unbounded">
8+
<xsd:element name="metadata">
9+
<xsd:complexType>
10+
<xsd:sequence>
11+
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
</xsd:sequence>
13+
<xsd:attribute name="name" use="required" type="xsd:string"/>
14+
<xsd:attribute name="type" type="xsd:string"/>
15+
<xsd:attribute name="mimetype" type="xsd:string"/>
16+
<xsd:attribute ref="xml:space"/>
17+
</xsd:complexType>
18+
</xsd:element>
19+
<xsd:element name="assembly">
20+
<xsd:complexType>
21+
<xsd:attribute name="alias" type="xsd:string"/>
22+
<xsd:attribute name="name" type="xsd:string"/>
23+
</xsd:complexType>
24+
</xsd:element>
25+
<xsd:element name="data">
26+
<xsd:complexType>
27+
<xsd:sequence>
28+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
29+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
30+
</xsd:sequence>
31+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
32+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
33+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
34+
<xsd:attribute ref="xml:space"/>
35+
</xsd:complexType>
36+
</xsd:element>
37+
<xsd:element name="resheader">
38+
<xsd:complexType>
39+
<xsd:sequence>
40+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
</xsd:sequence>
42+
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
</xsd:complexType>
44+
</xsd:element>
45+
</xsd:choice>
46+
</xsd:complexType>
47+
</xsd:element>
48+
</xsd:schema>
49+
<data name="beat_count" xml:space="preserve">
50+
<value>Beat count</value>
51+
</data>
52+
<data name="slider_count" xml:space="preserve">
53+
<value>Slider count</value>
54+
</data>
55+
<data name="hard_beat_count" xml:space="preserve">
56+
<value>Hard Beat count</value>
57+
</data>
58+
</root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
4+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:element name="root" msdata:IsDataSet="true">
6+
<xsd:complexType>
7+
<xsd:choice maxOccurs="unbounded">
8+
<xsd:element name="metadata">
9+
<xsd:complexType>
10+
<xsd:sequence>
11+
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
</xsd:sequence>
13+
<xsd:attribute name="name" use="required" type="xsd:string"/>
14+
<xsd:attribute name="type" type="xsd:string"/>
15+
<xsd:attribute name="mimetype" type="xsd:string"/>
16+
<xsd:attribute ref="xml:space"/>
17+
</xsd:complexType>
18+
</xsd:element>
19+
<xsd:element name="assembly">
20+
<xsd:complexType>
21+
<xsd:attribute name="alias" type="xsd:string"/>
22+
<xsd:attribute name="name" type="xsd:string"/>
23+
</xsd:complexType>
24+
</xsd:element>
25+
<xsd:element name="data">
26+
<xsd:complexType>
27+
<xsd:sequence>
28+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
29+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
30+
</xsd:sequence>
31+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
32+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
33+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
34+
<xsd:attribute ref="xml:space"/>
35+
</xsd:complexType>
36+
</xsd:element>
37+
<xsd:element name="resheader">
38+
<xsd:complexType>
39+
<xsd:sequence>
40+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
</xsd:sequence>
42+
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
</xsd:complexType>
44+
</xsd:element>
45+
</xsd:choice>
46+
</xsd:complexType>
47+
</xsd:element>
48+
</xsd:schema>
49+
<data name="beat_count" xml:space="preserve">
50+
<value>Beat count</value>
51+
</data>
52+
<data name="slider_count" xml:space="preserve">
53+
<value>Slider count</value>
54+
</data>
55+
<data name="hard_beat_count" xml:space="preserve">
56+
<value>Hard Beat count</value>
57+
</data>
58+
</root>

0 commit comments

Comments
 (0)