mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-29 12:33:28 +01: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 | ||||
|   | ||||
| @@ -80,11 +80,11 @@ class DownloadNotification extends ObtainiumNotification { | ||||
|   DownloadNotification(String appName, int progPercent) | ||||
|       : super( | ||||
|             appName.hashCode, | ||||
|             'Downloading $appName', | ||||
|             tr('downloadingX', args: [appName]), | ||||
|             '', | ||||
|             'APP_DOWNLOADING', | ||||
|             'Downloading App', | ||||
|             'Notifies the user of the progress in downloading an App', | ||||
|             tr('downloadingX', args: [tr('app')]), | ||||
|             tr('downloadNotifDescription'), | ||||
|             Importance.low, | ||||
|             onlyAlertOnce: true, | ||||
|             progPercent: progPercent); | ||||
|   | ||||
| @@ -142,7 +142,7 @@ preStandardizeUrl(String url) { | ||||
|   return url; | ||||
| } | ||||
|  | ||||
| const String noAPKFound = 'No APK found'; | ||||
| String noAPKFound = tr('noAPKFound'); | ||||
|  | ||||
| List<String> getLinksFromParsedHTML( | ||||
|         Document dom, RegExp hrefPattern, String prependToLinks) => | ||||
| @@ -196,8 +196,7 @@ class AppSource { | ||||
|     ], | ||||
|     [ | ||||
|       GeneratedFormItem('noVersionDetection', | ||||
|           label: 'Do not attempt version detection', // TODO | ||||
|           type: FormItemType.bool) | ||||
|           label: tr('noVersionDetection'), type: FormItemType.bool) | ||||
|     ] | ||||
|   ]; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user