2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

Make a bunch o' strings translateable

This commit is contained in:
Oliver Walters
2021-02-01 22:36:46 +11:00
parent ff879bd14b
commit 32fd8efddc
11 changed files with 88 additions and 79 deletions

View File

@ -197,10 +197,10 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
children: <Widget>[
IconButton(
icon: new FaIcon(FontAwesomeIcons.barcode),
tooltip: 'Scan Barcode',
tooltip: I18N.of(context).scanBarcode,
onPressed: _scan,
),
Text("Scan Barcode"),
Text(I18N.of(context).scanBarcode),
],
),
],
@ -213,20 +213,20 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
children: <Widget>[
IconButton(
icon: new FaIcon(FontAwesomeIcons.shapes),
tooltip: 'Parts',
tooltip: I18N.of(context).parts,
onPressed: _parts,
),
Text("Parts"),
Text(I18N.of(context).parts),
],
),
Column(
children: <Widget>[
IconButton(
icon: new FaIcon(FontAwesomeIcons.boxes),
tooltip: 'Stock',
tooltip: I18N.of(context).stock,
onPressed: _stock,
),
Text('Stock'),
Text(I18N.of(context).stock),
],
),
],