diff --git a/AUTHORS.md b/AUTHORS.md index ee664bf4..31493da8 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -30,6 +30,7 @@ - Dieter Plaetinck - - Dennis van Peer - - sizzlesloth - +- Xianglin Zeng - ## Translators diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 0e61ee08..33108f7d 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -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" + } } diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 5eca5f7d..b1a899b9 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -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" + } } \ No newline at end of file diff --git a/lib/widgets/measurements/charts.dart b/lib/widgets/measurements/charts.dart index 80ce33cf..49b3a524 100644 --- a/lib/widgets/measurements/charts.dart +++ b/lib/widgets/measurements/charts.dart @@ -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'); } }