Translations + bugfix

This commit is contained in:
Imran Remtulla
2022-12-20 18:19:44 -05:00
parent 6a21045e5b
commit b151eb27e1
10 changed files with 88 additions and 21 deletions

View File

@@ -92,10 +92,10 @@ class _AddAppPageState extends State<AddAppPage> {
await showDialog(
context: context,
builder: (BuildContext ctx) {
return const GeneratedFormModal(
title: 'Disable Version Detection', // TODO
items: [],
message: 'TODO',
return GeneratedFormModal(
title: tr('disableVersionDetection'),
items: const [],
message: tr('noVersionDetectionExplanation'),
);
}) ==
null) {

View File

@@ -73,7 +73,9 @@ class _AppPageState extends State<AppPage> {
height: 25,
),
Text(
app?.installedInfo?.name ?? app?.app.name ?? 'App',
app?.installedInfo?.name ??
app?.app.name ??
tr('app'),
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.displayLarge,
),
@@ -200,7 +202,7 @@ class _AppPageState extends State<AppPage> {
);
});
},
tooltip: 'Mark as Updated',
tooltip: tr('markUpdated'),
icon: const Icon(Icons.done)),
if (source != null &&
source
@@ -228,7 +230,7 @@ class _AppPageState extends State<AppPage> {
return row;
}).toList();
return GeneratedFormModal(
title: 'Additional Options',
title: tr('additionalOptions'),
items: items);
}).then((values) {
if (app != null && values != null) {
@@ -249,7 +251,7 @@ class _AppPageState extends State<AppPage> {
}
});
},
tooltip: 'Additional Options',
tooltip: tr('additionalOptions'),
icon: const Icon(Icons.settings)),
const SizedBox(width: 16.0),
Expanded(
@@ -286,11 +288,11 @@ class _AppPageState extends State<AppPage> {
: null,
child: Text(app?.app.installedVersion == null
? !trackOnly
? 'Install'
: 'Mark Installed'
? tr('install')
: tr('markInstalled')
: !trackOnly
? 'Update'
: 'Mark Updated'))),
? tr('update')
: tr('markUpdated')))),
const SizedBox(width: 16.0),
ElevatedButton(
onPressed: app?.downloadProgress != null