mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 08:07:59 -06:00
feat: Add new translations, bump version number
This commit is contained in:
@@ -53,16 +53,15 @@ class _DocumentDownloadButtonState extends State<DocumentDownloadButton> {
|
||||
final downloadOriginal = await showDialog<bool>(
|
||||
context: context,
|
||||
builder: (context) => RadioSettingsDialog(
|
||||
titleText: "Choose filetype", //TODO: INTL
|
||||
titleText: S.of(context).documentDownloadDialogChooseFiletype,
|
||||
options: [
|
||||
RadioOption(
|
||||
value: true,
|
||||
label:
|
||||
"Original (${meta.originalMimeType.split("/").last})", //TODO: INTL
|
||||
),
|
||||
value: true,
|
||||
label: S.of(context).documentDownloadDialogOriginalOption +
|
||||
" (${meta.originalMimeType.split("/").last})"),
|
||||
RadioOption(
|
||||
value: false,
|
||||
label: "Archived (pdf)", //TODO: INTL
|
||||
label: S.of(context).documentDownloadDialogArchivedOption,
|
||||
),
|
||||
],
|
||||
initialValue: false,
|
||||
|
||||
@@ -296,7 +296,7 @@ class _DocumentsPageState extends State<DocumentsPage>
|
||||
_nestedScrollViewKey.currentState?.outerController.jumpTo(0);
|
||||
},
|
||||
label: Text(
|
||||
"Go to top", //TODO: INTL
|
||||
S.of(context).scrollToTopLabel,
|
||||
style: DefaultTextStyle.of(context).style.apply(
|
||||
color: Theme.of(context).colorScheme.onPrimary,
|
||||
),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:paperless_mobile/features/settings/model/view_type.dart';
|
||||
import 'package:paperless_mobile/generated/l10n.dart';
|
||||
|
||||
/// Meant to be used with blocbuilder.
|
||||
class ViewTypeSelectionWidget extends StatelessWidget {
|
||||
@@ -33,19 +34,19 @@ class ViewTypeSelectionWidget extends StatelessWidget {
|
||||
_buildViewTypeOption(
|
||||
context,
|
||||
type: ViewType.list,
|
||||
label: 'List', //TODO: INTL
|
||||
label: S.of(context).viewTypeListOption,
|
||||
icon: Icons.list,
|
||||
),
|
||||
_buildViewTypeOption(
|
||||
context,
|
||||
type: ViewType.grid,
|
||||
label: 'Grid', //TODO: INTL
|
||||
label: S.of(context).viewTypeGridOption,
|
||||
icon: Icons.grid_view_rounded,
|
||||
),
|
||||
_buildViewTypeOption(
|
||||
context,
|
||||
type: ViewType.detailed,
|
||||
label: 'Detailed', //TODO: INTL
|
||||
label: S.of(context).viewTypeDetailedOption,
|
||||
icon: Icons.article_outlined,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user