Skip to content

Commit

Permalink
[Presentation] Added missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Apr 19, 2021
1 parent ffe83c6 commit 8bc1320
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
4 changes: 3 additions & 1 deletion lib/l10n/intl_en.arb
Expand Up @@ -290,5 +290,7 @@
"automaton": "Automaton",
"droppedBy": "Dropped by",
"pressOnceAgainToExit": "Press once again to exit",
"discordServer": "Discord Server"
"discordServer": "Discord Server",
"usedItem": "Used item",
"itemIsBeingUsedOnACalculation": "This item is being used in one or more calculator sessions.\nThe used quantity is {quantity}"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_es_ES.arb
Expand Up @@ -290,5 +290,7 @@
"automaton": "Automata",
"droppedBy": "Dejado por",
"pressOnceAgainToExit": "Presiona una vez más para salir",
"discordServer": "Servidor de Discord"
"discordServer": "Servidor de Discord",
"usedItem": "Item usado",
"itemIsBeingUsedOnACalculation": "Este item está siendo usado en una o mas sesiones de la calculadora.\nLa cantidad usada es {quantity}"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_pt.arb
Expand Up @@ -290,5 +290,7 @@
"automaton": "Autômato",
"droppedBy": "Obtido de",
"pressOnceAgainToExit": "Press once again to exit",
"discordServer": "Discord Server"
"discordServer": "Discord Server",
"usedItem": "Used item",
"itemIsBeingUsedOnACalculation": "This item is being used in one or more calculator sessions.\nThe used quantity is {quantity}"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_ru.arb
Expand Up @@ -290,5 +290,7 @@
"automaton": "Автоматоны",
"droppedBy": "Получить с",
"pressOnceAgainToExit": "Нажмите еще раз, чтобы выйти",
"discordServer": "Discord Server"
"discordServer": "Discord Server",
"usedItem": "Used item",
"itemIsBeingUsedOnACalculation": "This item is being used in one or more calculator sessions.\nThe used quantity is {quantity}"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_zh_CN.arb
Expand Up @@ -290,5 +290,7 @@
"automaton": "自律机关",
"droppedBy": "掉落于",
"pressOnceAgainToExit": "再点击一次退出",
"discordServer": "Discord 服务器"
"discordServer": "Discord 服务器",
"usedItem": "Used item",
"itemIsBeingUsedOnACalculation": "This item is being used in one or more calculator sessions.\nThe used quantity is {quantity}"
}
Expand Up @@ -59,7 +59,7 @@ class ItemCard extends StatelessWidget {
height: 280,
placeholder: MemoryImage(kTransparentImage),
image: AssetImage(image),
fit: BoxFit.fill,
fit: BoxFit.cover,
),
Container(
decoration: BoxDecoration(
Expand Down
5 changes: 2 additions & 3 deletions lib/presentation/materials/widgets/material_card.dart
Expand Up @@ -203,13 +203,12 @@ class MaterialCard extends StatelessWidget {
}

Future<void> _showUsedItemsDialog(BuildContext context) async {
//TODO: COMPLETE THIS
final s = S.of(context);
await showDialog<int>(
context: context,
builder: (_) => AlertDialog(
title: Text('Used item'),
content: Text('This item is being used in one or more calculator sessions.\nThe used quantity is $usedQuantity.'),
title: Text(s.usedItem),
content: Text(s.itemIsBeingUsedOnACalculation(quantity)),
actions: [
ElevatedButton(
onPressed: () => Navigator.of(context).pop(),
Expand Down

0 comments on commit 8bc1320

Please sign in to comment.