chore: add Xianglin Zeng to AUTHORS.md and update relevent doc

This commit is contained in:
Xianglin Zeng
2024-11-04 23:39:23 +08:00
parent f2bc07d2fd
commit 27e28e7f7b
4 changed files with 31 additions and 7 deletions

View File

@@ -30,6 +30,7 @@
- Dieter Plaetinck - <https://github.com/Dieterbe>
- Dennis van Peer - <https://github.com/Denpeer>
- sizzlesloth - <https://github.com/sizzlesloth>
- Xianglin Zeng - <https://github.com/FutureYL3>
## Translators

View File

@@ -891,11 +891,26 @@
"done": "Done",
"overallChangeWeight": "Overall change",
"@overallChangeWeight": {
"description": "Overall change in weight"
"description": "Overall change in weight, added for localization"
},
"goalTypeMeals": "From meals",
"@goalTypeMeals": {
"description": "added for localization of Class GoalType's filed meals"
},
"goalTypeBasic": "Basic",
"@goalTypeBasic": {
"description": "added for localization of Class GoalType's filed basic"
},
"goalTypeAdvanced": "Advanced",
"@goalTypeAdvanced": {
"description": "added for localization of Class GoalType's filed advanced"
},
"indicatorRaw": "raw",
"indicatorAvg": "avg"
"@indicatorRaw": {
"description": "added for localization of Class Indicator's field text"
},
"indicatorAvg": "avg",
"@indicatorAvg": {
"description": "added for localization of Class Indicator's field text"
}
}

View File

@@ -252,7 +252,7 @@
"@delete": {},
"loadingText": "加载中...",
"@loadingText": {
"description": "Text to show when entries are being loaded in the background: Loading..."
"description": "Text to show when entries are being loaded in the background: Loading..., changed from \"加载\" to \"加载中\""
},
"edit": "编辑",
"@edit": {},
@@ -326,7 +326,7 @@
},
"weight": "体重",
"@weight": {
"description": "The weight of a workout log or body weight entry"
"description": "The weight of a workout log or body weight entry, changed from \"重量\" to \"体重\""
},
"anErrorOccurred": "出错了!",
"@anErrorOccurred": {},
@@ -350,7 +350,7 @@
"@save": {},
"name": "名称",
"@name": {
"description": "Name for a workout or nutritional plan"
"description": "Name for a workout or nutritional plan, changed from \"名\" to \"名称\""
},
"description": "描述",
"@description": {},
@@ -698,5 +698,11 @@
"indicatorRaw": "原始值",
"indicatorAvg": "平均值",
"textPromptTitle": "准备就绪?",
"textPromptSubheading": "点击右下角按钮开始"
"@textPromptTitle": {
"description": "Title for the text prompt"
},
"textPromptSubheading": "点击右下角按钮开始",
"@textPromptSubheading": {
"description": "Subheading for the text prompt"
}
}

View File

@@ -37,7 +37,9 @@ class MeasurementOverallChangeWidget extends StatelessWidget {
? '-'
: '';
return Text('${AppLocalizations.of(context).overallChangeWeight} $prefix ${delta.abs().toStringAsFixed(1)} $_unit');
// ignore: prefer_interpolation_to_compose_strings
return Text(AppLocalizations.of(context).overallChangeWeight +
'$prefix ${delta.abs().toStringAsFixed(1)} $_unit');
}
}