mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 21:30:16 +02:00
Translations + bugfix
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user