some small i18n fixes

This commit is contained in:
dan63047 2024-12-07 16:19:07 +03:00
parent 2a8133798b
commit e829ae5b8a
4 changed files with 2406 additions and 29 deletions

File diff suppressed because it is too large Load Diff

View File

@ -97,23 +97,23 @@ class ClearData{
Map<String, List<ClearData>> clearsExisting = {
t.calcDestination.noSpinClears: [
ClearData(t.calcDestination.noLineclear, Lineclears.ZERO, 0, false, false),
ClearData(t.stats.lineClears.single, Lineclears.SINGLE, 1, false, false),
ClearData(t.stats.lineClears.double, Lineclears.DOUBLE, 2, false, false),
ClearData(t.stats.lineClears.triple, Lineclears.TRIPLE, 3, false, false),
ClearData(t.stats.lineClears.quad, Lineclears.QUAD, 4, false, false)
ClearData(t.stats.lineClear.single, Lineclears.SINGLE, 1, false, false),
ClearData(t.stats.lineClear.double, Lineclears.DOUBLE, 2, false, false),
ClearData(t.stats.lineClear.triple, Lineclears.TRIPLE, 3, false, false),
ClearData(t.stats.lineClear.quad, Lineclears.QUAD, 4, false, false)
],
t.stats.spins: [
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.lineClears.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.lineClears.quad}", Lineclears.TSPIN_QUAD, 4, false, true),
ClearData("${t.stats.spin} ${t.stats.lineClear.single}", Lineclears.TSPIN_SINGLE, 1, false, true),
ClearData("${t.stats.spin} ${t.stats.lineClear.double}", Lineclears.TSPIN_DOUBLE, 2, false, true),
ClearData("${t.stats.spin} ${t.stats.lineClear.triple}", Lineclears.TSPIN_TRIPLE, 3, false, true),
ClearData("${t.stats.spin} ${t.stats.lineClear.quad}", Lineclears.TSPIN_QUAD, 4, false, true),
],
"${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.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.lineClears.triple}", Lineclears.TSPIN_MINI_TRIPLE, 3, 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.lineClear.double}", Lineclears.TSPIN_MINI_DOUBLE, 2, 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(() {});},
controller: apmController,
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(() {});},
controller: ppsController,
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(() {});},
controller: vsController,
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),
),
)
),

View File

@ -149,16 +149,19 @@ class _UserThingyState extends State<UserThingy> with SingleTickerProviderStateM
children: [
Padding(
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(
text: TextSpan(
style: const TextStyle(fontFamily: "Eurostile Round"),
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.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)),
]
)
@ -324,13 +327,13 @@ class _UserThingyState extends State<UserThingy> with SingleTickerProviderStateM
transform: Matrix4.translationValues(0, firstButtonPosition, 0),
child: Opacity(
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(
transform: Matrix4.translationValues(0, secondButtonPosition, 0),
child: Opacity(
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))))));

View File

@ -1,7 +1,7 @@
{
"locales(map)": {
"en": "English",
"ru": "Russian (Русский)",
"ru-RU": "Russian (Русский)",
"zh-CN": "Simplified Chinese (简体中文)"
},
"gamemodes(map)":{
@ -23,6 +23,16 @@
"data": "Saved Data",
"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",
"nanow": "Not avaliable for now...",
"seasonEnds": "Season ends in ${countdown}",
@ -226,6 +236,7 @@
"openReplay": "Open replay in TETR.IO"
},
"calcDestination": {
"placeholders": "Enter your $stat",
"tip": "Enter values and press \"Calc\" to see Nerd Stats for them",
"statsCalcButton": "Calc",
"damageCalcTip": "Click on the actions on the left to add them here",
@ -449,7 +460,7 @@
},
"nyaapp":{
"short": "wAPP",
"full": "Weigente APP"
"full": "Weighted APP"
},
"area":{
"short": "Area",