some small i18n fixes
This commit is contained in:
parent
2a8133798b
commit
e829ae5b8a
File diff suppressed because it is too large
Load Diff
|
@ -97,23 +97,23 @@ class ClearData{
|
||||||
Map<String, List<ClearData>> clearsExisting = {
|
Map<String, List<ClearData>> clearsExisting = {
|
||||||
t.calcDestination.noSpinClears: [
|
t.calcDestination.noSpinClears: [
|
||||||
ClearData(t.calcDestination.noLineclear, Lineclears.ZERO, 0, false, false),
|
ClearData(t.calcDestination.noLineclear, Lineclears.ZERO, 0, false, false),
|
||||||
ClearData(t.stats.lineClears.single, Lineclears.SINGLE, 1, false, false),
|
ClearData(t.stats.lineClear.single, Lineclears.SINGLE, 1, false, false),
|
||||||
ClearData(t.stats.lineClears.double, Lineclears.DOUBLE, 2, false, false),
|
ClearData(t.stats.lineClear.double, Lineclears.DOUBLE, 2, false, false),
|
||||||
ClearData(t.stats.lineClears.triple, Lineclears.TRIPLE, 3, false, false),
|
ClearData(t.stats.lineClear.triple, Lineclears.TRIPLE, 3, false, false),
|
||||||
ClearData(t.stats.lineClears.quad, Lineclears.QUAD, 4, false, false)
|
ClearData(t.stats.lineClear.quad, Lineclears.QUAD, 4, false, false)
|
||||||
],
|
],
|
||||||
t.stats.spins: [
|
t.stats.spins: [
|
||||||
ClearData("${t.stats.spin} ${t.stats.lineClears.zero}", Lineclears.TSPIN, 0, false, true),
|
ClearData("${t.stats.spin} ${t.stats.lineClears.zero}", Lineclears.TSPIN, 0, false, true),
|
||||||
ClearData("${t.stats.spin} ${t.stats.lineClears.single}", Lineclears.TSPIN_SINGLE, 1, false, true),
|
ClearData("${t.stats.spin} ${t.stats.lineClear.single}", Lineclears.TSPIN_SINGLE, 1, false, true),
|
||||||
ClearData("${t.stats.spin} ${t.stats.lineClears.double}", Lineclears.TSPIN_DOUBLE, 2, false, true),
|
ClearData("${t.stats.spin} ${t.stats.lineClear.double}", Lineclears.TSPIN_DOUBLE, 2, false, true),
|
||||||
ClearData("${t.stats.spin} ${t.stats.lineClears.triple}", Lineclears.TSPIN_TRIPLE, 3, false, true),
|
ClearData("${t.stats.spin} ${t.stats.lineClear.triple}", Lineclears.TSPIN_TRIPLE, 3, false, true),
|
||||||
ClearData("${t.stats.spin} ${t.stats.lineClears.quad}", Lineclears.TSPIN_QUAD, 4, false, true),
|
ClearData("${t.stats.spin} ${t.stats.lineClear.quad}", Lineclears.TSPIN_QUAD, 4, false, true),
|
||||||
],
|
],
|
||||||
"${t.stats.mini} ${t.stats.spins}": [
|
"${t.stats.mini} ${t.stats.spins}": [
|
||||||
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClears.zero}", Lineclears.TSPIN_MINI, 0, true, false),
|
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClears.zero}", Lineclears.TSPIN_MINI, 0, true, false),
|
||||||
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClears.single}", Lineclears.TSPIN_MINI_SINGLE, 1, true, false),
|
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClear.single}", Lineclears.TSPIN_MINI_SINGLE, 1, true, false),
|
||||||
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClears.double}", Lineclears.TSPIN_MINI_DOUBLE, 2, true, false),
|
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClear.double}", Lineclears.TSPIN_MINI_DOUBLE, 2, true, false),
|
||||||
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClears.triple}", Lineclears.TSPIN_MINI_TRIPLE, 3, true, false),
|
ClearData("${t.stats.mini} ${t.stats.spin} ${t.stats.lineClear.triple}", Lineclears.TSPIN_MINI_TRIPLE, 3, true, false),
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ class _DestinationCalculatorState extends State<DestinationCalculator> {
|
||||||
onChanged: (value) {setState(() {});},
|
onChanged: (value) {setState(() {});},
|
||||||
controller: apmController,
|
controller: apmController,
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
decoration: InputDecoration(suffix: apmController.value.text.isNotEmpty ? Text("APM") : null, alignLabelWithHint: true, hintText: widget.constraints.maxWidth > 768.0 ? "Enter your APM" : "APM"),
|
decoration: InputDecoration(suffix: apmController.value.text.isNotEmpty ? Text("APM") : null, alignLabelWithHint: true, hintText: widget.constraints.maxWidth > 768.0 ? t.calcDestination.placeholders(stat: t.stats.apm.short) : t.stats.apm.short),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -235,7 +235,7 @@ class _DestinationCalculatorState extends State<DestinationCalculator> {
|
||||||
onChanged: (value) {setState(() {});},
|
onChanged: (value) {setState(() {});},
|
||||||
controller: ppsController,
|
controller: ppsController,
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
decoration: InputDecoration(suffix: ppsController.value.text.isNotEmpty ? Text("PPS") : null, alignLabelWithHint: true, hintText: widget.constraints.maxWidth > 768.0 ? "Enter your PPS" : "PPS"),
|
decoration: InputDecoration(suffix: ppsController.value.text.isNotEmpty ? Text("PPS") : null, alignLabelWithHint: true, hintText: widget.constraints.maxWidth > 768.0 ? t.calcDestination.placeholders(stat: t.stats.pps.short) : t.stats.pps.short),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -247,7 +247,7 @@ class _DestinationCalculatorState extends State<DestinationCalculator> {
|
||||||
onChanged: (value) {setState(() {});},
|
onChanged: (value) {setState(() {});},
|
||||||
controller: vsController,
|
controller: vsController,
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
decoration: InputDecoration(suffix: vsController.value.text.isNotEmpty ? Text("VS") : null, alignLabelWithHint: true, hintText: widget.constraints.maxWidth > 768.0 ? "Enter your VS" : "VS"),
|
decoration: InputDecoration(suffix: vsController.value.text.isNotEmpty ? Text("VS") : null, alignLabelWithHint: true, hintText: widget.constraints.maxWidth > 768.0 ? t.calcDestination.placeholders(stat: t.stats.vs.short) : t.stats.vs.short),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
|
@ -149,16 +149,19 @@ class _UserThingyState extends State<UserThingy> with SingleTickerProviderStateM
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(right: 4.0),
|
padding: const EdgeInsets.only(right: 4.0),
|
||||||
child: Chip(label: Text(widget.player.role.toUpperCase(), style: const TextStyle(shadows: textShadow),), padding: const EdgeInsets.all(0.0), color: WidgetStatePropertyAll(roleColor(widget.player.role))),
|
child: Tooltip(
|
||||||
|
message: t.playerRole[widget.player.role]??"Unknown role ${widget.player.role}",
|
||||||
|
child: Chip(label: Text(widget.player.role.toUpperCase(), style: const TextStyle(shadows: textShadow),), padding: const EdgeInsets.all(0.0), color: WidgetStatePropertyAll(roleColor(widget.player.role)))
|
||||||
|
),
|
||||||
),
|
),
|
||||||
RichText(
|
RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
style: const TextStyle(fontFamily: "Eurostile Round"),
|
style: const TextStyle(fontFamily: "Eurostile Round"),
|
||||||
children:
|
children:
|
||||||
[
|
[
|
||||||
if (widget.player.friendCount > 0) const WidgetSpan(child: Icon(Icons.person), alignment: PlaceholderAlignment.middle, baseline: TextBaseline.alphabetic),
|
if (widget.player.friendCount > 0) WidgetSpan(child: Tooltip(message: t.stats.followers, child: Icon(Icons.person)), alignment: PlaceholderAlignment.middle, baseline: TextBaseline.alphabetic),
|
||||||
if (widget.player.friendCount > 0) TextSpan(text: "${intf.format(widget.player.friendCount)} "),
|
if (widget.player.friendCount > 0) TextSpan(text: "${intf.format(widget.player.friendCount)} "),
|
||||||
if (widget.player.supporterTier > 0) WidgetSpan(child: Icon(widget.player.supporterTier > 1 ? Icons.star : Icons.star_border, color: widget.player.supporterTier > 1 ? Colors.yellowAccent : Colors.white), alignment: PlaceholderAlignment.middle, baseline: TextBaseline.alphabetic),
|
if (widget.player.supporterTier > 0) WidgetSpan(child: Tooltip(message: t.supporter(tier: widget.player.supporterTier), child: Icon(widget.player.supporterTier > 1 ? Icons.star : Icons.star_border, color: widget.player.supporterTier > 1 ? Colors.yellowAccent : Colors.white)), alignment: PlaceholderAlignment.middle, baseline: TextBaseline.alphabetic),
|
||||||
if (widget.player.supporterTier > 0) TextSpan(text: widget.player.supporterTier.toString(), style: TextStyle(color: widget.player.supporterTier > 1 ? Colors.yellowAccent : Colors.white)),
|
if (widget.player.supporterTier > 0) TextSpan(text: widget.player.supporterTier.toString(), style: TextStyle(color: widget.player.supporterTier > 1 ? Colors.yellowAccent : Colors.white)),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -324,13 +327,13 @@ class _UserThingyState extends State<UserThingy> with SingleTickerProviderStateM
|
||||||
transform: Matrix4.translationValues(0, firstButtonPosition, 0),
|
transform: Matrix4.translationValues(0, firstButtonPosition, 0),
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: max(min(1, firstButtonOpacity), 0),
|
opacity: max(min(1, firstButtonOpacity), 0),
|
||||||
child: Text(_addToTrackAnimController.isAnimating && _addToTrackAnim.status == AnimationStatus.forward ? "Done!" : "Track")
|
child: Text(_addToTrackAnimController.isAnimating && _addToTrackAnim.status == AnimationStatus.forward ? t.settingsDestination.done : t.track)
|
||||||
)
|
)
|
||||||
) : Container(
|
) : Container(
|
||||||
transform: Matrix4.translationValues(0, secondButtonPosition, 0),
|
transform: Matrix4.translationValues(0, secondButtonPosition, 0),
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: max(0, min(1, secondButtonOpacity)),
|
opacity: max(0, min(1, secondButtonOpacity)),
|
||||||
child: Text(_addToTrackAnimController.isAnimating && _addToTrackAnim.status == AnimationStatus.reverse ? "Done! " : "Stop tracking")
|
child: Text(_addToTrackAnimController.isAnimating && _addToTrackAnim.status == AnimationStatus.reverse ? t.settingsDestination.done : t.stopTracking)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
style: const ButtonStyle(shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.only(bottomLeft: Radius.circular(12.0))))));
|
style: const ButtonStyle(shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.only(bottomLeft: Radius.circular(12.0))))));
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"locales(map)": {
|
"locales(map)": {
|
||||||
"en": "English",
|
"en": "English",
|
||||||
"ru": "Russian (Русский)",
|
"ru-RU": "Russian (Русский)",
|
||||||
"zh-CN": "Simplified Chinese (简体中文)"
|
"zh-CN": "Simplified Chinese (简体中文)"
|
||||||
},
|
},
|
||||||
"gamemodes(map)":{
|
"gamemodes(map)":{
|
||||||
|
@ -23,6 +23,16 @@
|
||||||
"data": "Saved Data",
|
"data": "Saved Data",
|
||||||
"settings": "Settings"
|
"settings": "Settings"
|
||||||
},
|
},
|
||||||
|
"playerRole(map)": {
|
||||||
|
"user": "User",
|
||||||
|
"banned": "Banned",
|
||||||
|
"bot": "Bot",
|
||||||
|
"sysop": "System operator",
|
||||||
|
"admin": "Admin",
|
||||||
|
"mod": "Moderator",
|
||||||
|
"halfmod": "Community moderator",
|
||||||
|
"anon": "Anonymous"
|
||||||
|
},
|
||||||
"goBackButton": "Go Back",
|
"goBackButton": "Go Back",
|
||||||
"nanow": "Not avaliable for now...",
|
"nanow": "Not avaliable for now...",
|
||||||
"seasonEnds": "Season ends in ${countdown}",
|
"seasonEnds": "Season ends in ${countdown}",
|
||||||
|
@ -226,6 +236,7 @@
|
||||||
"openReplay": "Open replay in TETR.IO"
|
"openReplay": "Open replay in TETR.IO"
|
||||||
},
|
},
|
||||||
"calcDestination": {
|
"calcDestination": {
|
||||||
|
"placeholders": "Enter your $stat",
|
||||||
"tip": "Enter values and press \"Calc\" to see Nerd Stats for them",
|
"tip": "Enter values and press \"Calc\" to see Nerd Stats for them",
|
||||||
"statsCalcButton": "Calc",
|
"statsCalcButton": "Calc",
|
||||||
"damageCalcTip": "Click on the actions on the left to add them here",
|
"damageCalcTip": "Click on the actions on the left to add them here",
|
||||||
|
@ -449,7 +460,7 @@
|
||||||
},
|
},
|
||||||
"nyaapp":{
|
"nyaapp":{
|
||||||
"short": "wAPP",
|
"short": "wAPP",
|
||||||
"full": "Weigente APP"
|
"full": "Weighted APP"
|
||||||
},
|
},
|
||||||
"area":{
|
"area":{
|
||||||
"short": "Area",
|
"short": "Area",
|
||||||
|
|
Loading…
Reference in New Issue