Localize text

This commit is contained in:
Roland Geider
2021-06-13 23:40:52 +02:00
parent 19cf8e3854
commit d2d70bdba5
2 changed files with 7 additions and 3 deletions

View File

@@ -196,6 +196,10 @@
"@gymMode": {
"description": "Label when starting the gym mode"
},
"plateCalculator": "Plate calculator",
"@plateCalculator": {
"description": "Label used for the plate calculator in the gym mode"
},
"pause": "Pause",
"@pause": {
"description": "Noun, not an imperative! Label used for the pause when using the gym mode"

View File

@@ -514,10 +514,10 @@ class _LogPageState extends State<LogPage> {
return Column(
children: [
Text(
'Plate calculator',
AppLocalizations.of(context).plateCalculator,
style: Theme.of(context).textTheme.headline6,
),
Container(
SizedBox(
height: 40,
child: plates.length > 0
? Row(
@@ -547,7 +547,7 @@ class _LogPageState extends State<LogPage> {
.toList()
],
)
: Text('invalid weight'),
: Container(),
),
],
);