feat: Add new translations, bump version number

This commit is contained in:
Anton Stubenbord
2023-02-15 00:07:49 +01:00
parent 8fcd2c14f9
commit add035189c
9 changed files with 128 additions and 58 deletions

View File

@@ -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,

View File

@@ -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,
),

View File

@@ -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,
),
],