Skip to content

Commit 27e28e7

Browse files
committed
chore: add Xianglin Zeng to AUTHORS.md and update relevent doc
1 parent f2bc07d commit 27e28e7

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- Dieter Plaetinck - <https://github.com/Dieterbe>
3131
- Dennis van Peer - <https://github.com/Denpeer>
3232
- sizzlesloth - <https://github.com/sizzlesloth>
33+
- Xianglin Zeng - <https://github.com/FutureYL3>
3334

3435
## Translators
3536

lib/l10n/app_en.arb

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,11 +891,26 @@
891891
"done": "Done",
892892
"overallChangeWeight": "Overall change",
893893
"@overallChangeWeight": {
894-
"description": "Overall change in weight"
894+
"description": "Overall change in weight, added for localization"
895895
},
896896
"goalTypeMeals": "From meals",
897+
"@goalTypeMeals": {
898+
"description": "added for localization of Class GoalType's filed meals"
899+
},
897900
"goalTypeBasic": "Basic",
901+
"@goalTypeBasic": {
902+
"description": "added for localization of Class GoalType's filed basic"
903+
},
898904
"goalTypeAdvanced": "Advanced",
905+
"@goalTypeAdvanced": {
906+
"description": "added for localization of Class GoalType's filed advanced"
907+
},
899908
"indicatorRaw": "raw",
900-
"indicatorAvg": "avg"
909+
"@indicatorRaw": {
910+
"description": "added for localization of Class Indicator's field text"
911+
},
912+
"indicatorAvg": "avg",
913+
"@indicatorAvg": {
914+
"description": "added for localization of Class Indicator's field text"
915+
}
901916
}

lib/l10n/app_zh.arb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
"@delete": {},
253253
"loadingText": "加载中...",
254254
"@loadingText": {
255-
"description": "Text to show when entries are being loaded in the background: Loading..."
255+
"description": "Text to show when entries are being loaded in the background: Loading..., changed from \"加载\" to \"加载中\""
256256
},
257257
"edit": "编辑",
258258
"@edit": {},
@@ -326,7 +326,7 @@
326326
},
327327
"weight": "体重",
328328
"@weight": {
329-
"description": "The weight of a workout log or body weight entry"
329+
"description": "The weight of a workout log or body weight entry, changed from \"重量\" to \"体重\""
330330
},
331331
"anErrorOccurred": "出错了!",
332332
"@anErrorOccurred": {},
@@ -350,7 +350,7 @@
350350
"@save": {},
351351
"name": "名称",
352352
"@name": {
353-
"description": "Name for a workout or nutritional plan"
353+
"description": "Name for a workout or nutritional plan, changed from \"名\" to \"名称\""
354354
},
355355
"description": "描述",
356356
"@description": {},
@@ -698,5 +698,11 @@
698698
"indicatorRaw": "原始值",
699699
"indicatorAvg": "平均值",
700700
"textPromptTitle": "准备就绪?",
701-
"textPromptSubheading": "点击右下角按钮开始"
701+
"@textPromptTitle": {
702+
"description": "Title for the text prompt"
703+
},
704+
"textPromptSubheading": "点击右下角按钮开始",
705+
"@textPromptSubheading": {
706+
"description": "Subheading for the text prompt"
707+
}
702708
}

lib/widgets/measurements/charts.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class MeasurementOverallChangeWidget extends StatelessWidget {
3737
? '-'
3838
: '';
3939

40-
return Text('${AppLocalizations.of(context).overallChangeWeight} $prefix ${delta.abs().toStringAsFixed(1)} $_unit');
40+
// ignore: prefer_interpolation_to_compose_strings
41+
return Text(AppLocalizations.of(context).overallChangeWeight +
42+
'$prefix ${delta.abs().toStringAsFixed(1)} $_unit');
4143
}
4244
}
4345

0 commit comments

Comments
 (0)