2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

String translations

This commit is contained in:
Oliver Walters
2021-02-09 20:31:55 +11:00
parent c2aa51ed95
commit 90072904a0
8 changed files with 42 additions and 25 deletions

View File

@ -43,16 +43,16 @@ class InvenTreeAboutWidget extends StatelessWidget {
tiles.add(
ListTile(
title: Text("Server Instance"),
title: Text(I18N.of(context).serverInstance),
subtitle: Text(InvenTreeAPI().instance.isNotEmpty ? InvenTreeAPI().instance : "Not connected"),
)
);
} else {
tiles.add(
ListTile(
title: Text("Not Connected"),
title: Text(I18N.of(context).notConnected),
subtitle: Text(
"InvenTree server not connected",
I18N.of(context).serverNotConnected,
style: TextStyle(fontStyle: FontStyle.italic),
)
)
@ -77,7 +77,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
tiles.add(
ListTile(
title: Text("Package Name"),
title: Text(I18N.of(context).packageName),
subtitle: Text("${info.packageName}"),
)
);
@ -98,7 +98,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
return Scaffold(
appBar: AppBar(
title: Text("About InvenTree"),
title: Text(I18N.of(context).appAbout),
),
body: ListView(
children: ListTile.divideTiles(