mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 14:07:49 -06:00
feat: Renamed translation strings
This commit is contained in:
@@ -52,7 +52,7 @@ class _InboxPageState extends State<InboxPage>
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
return FloatingActionButton.extended(
|
||||
label: Text(S.of(context).inboxPageMarkAllAsSeenLabel),
|
||||
label: Text(S.of(context).allSeen),
|
||||
icon: const Icon(Icons.done_all),
|
||||
onPressed: state.hasLoaded && state.documents.isNotEmpty
|
||||
? () => _onMarkAllAsSeen(
|
||||
@@ -128,7 +128,7 @@ class _InboxPageState extends State<InboxPage>
|
||||
controller: pagingScrollController,
|
||||
slivers: [
|
||||
SearchAppBar(
|
||||
hintText: S.of(context).documentSearchSearchDocuments,
|
||||
hintText: S.of(context).searchDocuments,
|
||||
onOpenSearch: showDocumentSearchPage,
|
||||
),
|
||||
if (state.documents.isEmpty)
|
||||
@@ -149,7 +149,8 @@ class _InboxPageState extends State<InboxPage>
|
||||
SliverToBoxAdapter(
|
||||
child: HintCard(
|
||||
show: !state.isHintAcknowledged,
|
||||
hintText: S.of(context).inboxPageUsageHintText,
|
||||
hintText:
|
||||
S.of(context).swipeLeftToMarkADocumentAsSeen,
|
||||
onHintAcknowledged: () =>
|
||||
context.read<InboxCubit>().acknowledgeHint(),
|
||||
),
|
||||
@@ -177,7 +178,7 @@ class _InboxPageState extends State<InboxPage>
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
).padded(),
|
||||
Text(
|
||||
S.of(context).inboxPageMarkAsSeenText,
|
||||
S.of(context).markAsSeen,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
@@ -197,21 +198,19 @@ class _InboxPageState extends State<InboxPage>
|
||||
final isActionConfirmed = await showDialog(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
title: Text(S
|
||||
.of(context)
|
||||
.inboxPageMarkAllAsSeenConfirmationDialogTitleText),
|
||||
title: Text(S.of(context).markAllAsSeen),
|
||||
content: Text(
|
||||
S.of(context).inboxPageMarkAllAsSeenConfirmationDialogText,
|
||||
S.of(context).areYouSureYouWantToMarkAllDocumentsAsSeen,
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: Text(S.of(context).genericActionCancelLabel),
|
||||
child: Text(S.of(context).cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: Text(
|
||||
S.of(context).genericActionOkLabel,
|
||||
S.of(context).ok,
|
||||
style: TextStyle(color: Theme.of(context).colorScheme.error),
|
||||
),
|
||||
),
|
||||
@@ -229,9 +228,9 @@ class _InboxPageState extends State<InboxPage>
|
||||
final removedTags = await context.read<InboxCubit>().removeFromInbox(doc);
|
||||
showSnackBar(
|
||||
context,
|
||||
S.of(context).inboxPageDocumentRemovedMessageText,
|
||||
S.of(context).removeDocumentFromInbox,
|
||||
action: SnackBarActionConfig(
|
||||
label: S.of(context).inboxPageUndoRemoveText,
|
||||
label: S.of(context).undo,
|
||||
onPressed: () => _onUndoMarkAsSeen(doc, removedTags),
|
||||
),
|
||||
);
|
||||
@@ -268,10 +267,10 @@ class _InboxPageState extends State<InboxPage>
|
||||
documents,
|
||||
(doc) {
|
||||
if (doc.added.isToday) {
|
||||
return S.of(context).inboxPageTodayText;
|
||||
return S.of(context).today;
|
||||
}
|
||||
if (doc.added.isYesterday) {
|
||||
return S.of(context).inboxPageYesterdayText;
|
||||
return S.of(context).yesterday;
|
||||
}
|
||||
return DateFormat.yMMMMd().format(doc.added);
|
||||
},
|
||||
|
||||
@@ -23,11 +23,11 @@ class InboxEmptyWidget extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(S.of(context).inboxPageNoNewDocumentsText),
|
||||
Text(S.of(context).youDoNotHaveUnseenDocuments),
|
||||
TextButton(
|
||||
onPressed: () =>
|
||||
_emptyStateRefreshIndicatorKey.currentState?.show(),
|
||||
child: Text(S.of(context).inboxPageNoNewDocumentsRefreshLabel),
|
||||
child: Text(S.of(context).refresh),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -99,7 +99,7 @@ class _InboxItemState extends State<InboxItem> {
|
||||
child: ActionChip(
|
||||
avatar: const Icon(Icons.delete_outline),
|
||||
shape: chipShape,
|
||||
label: Text(S.of(context).inboxActionDeleteDocument),
|
||||
label: Text(S.of(context).deleteDocument),
|
||||
onPressed: () async {
|
||||
final shouldDelete = await showDialog<bool>(
|
||||
context: context,
|
||||
@@ -147,7 +147,7 @@ class _InboxItemState extends State<InboxItem> {
|
||||
maxWidth: 50,
|
||||
),
|
||||
child: Text(
|
||||
S.of(context).inboxPageQuickActionsLabel,
|
||||
S.of(context).quickAction,
|
||||
textAlign: TextAlign.center,
|
||||
maxLines: 3,
|
||||
style: Theme.of(context).textTheme.labelSmall,
|
||||
@@ -190,9 +190,9 @@ class _InboxItemState extends State<InboxItem> {
|
||||
shape: chipShape,
|
||||
label: hasAsn
|
||||
? Text(
|
||||
'${S.of(context).documentArchiveSerialNumberPropertyShortLabel} #${widget.document.archiveSerialNumber}',
|
||||
'${S.of(context).asn} #${widget.document.archiveSerialNumber}',
|
||||
)
|
||||
: Text(S.of(context).inboxActionAssignAsn),
|
||||
: Text(S.of(context).assignASN),
|
||||
onPressed: !hasAsn
|
||||
? () {
|
||||
setState(() {
|
||||
@@ -294,7 +294,7 @@ class _InboxItemState extends State<InboxItem> {
|
||||
// context,
|
||||
// S
|
||||
// .of(context)
|
||||
// .inboxPageSuggestionSuccessfullyAppliedMessage));
|
||||
// .suggestionSuccessfullyApplied));
|
||||
// },
|
||||
// ),
|
||||
// )
|
||||
@@ -316,7 +316,7 @@ class _InboxItemState extends State<InboxItem> {
|
||||
// context,
|
||||
// S
|
||||
// .of(context)
|
||||
// .inboxPageSuggestionSuccessfullyAppliedMessage)),
|
||||
// .suggestionSuccessfullyApplied)),
|
||||
// ),
|
||||
// )
|
||||
// .toList(),
|
||||
@@ -340,7 +340,7 @@ class _InboxItemState extends State<InboxItem> {
|
||||
// context,
|
||||
// S
|
||||
// .of(context)
|
||||
// .inboxPageSuggestionSuccessfullyAppliedMessage));
|
||||
// .suggestionSuccessfullyApplied));
|
||||
// },
|
||||
// ),
|
||||
// )
|
||||
@@ -352,7 +352,7 @@ class _InboxItemState extends State<InboxItem> {
|
||||
// avatar: const Icon(Icons.calendar_today_outlined),
|
||||
// shape: chipShape,
|
||||
// label: Text(
|
||||
// "${S.of(context).documentCreatedPropertyLabel}: ${DateFormat.yMd().format(e)}",
|
||||
// "${S.of(context).createdAt}: ${DateFormat.yMd().format(e)}",
|
||||
// ),
|
||||
// onPressed: () => context
|
||||
// .read<InboxCubit>()
|
||||
@@ -364,7 +364,7 @@ class _InboxItemState extends State<InboxItem> {
|
||||
// context,
|
||||
// S
|
||||
// .of(context)
|
||||
// .inboxPageSuggestionSuccessfullyAppliedMessage)),
|
||||
// .suggestionSuccessfullyApplied)),
|
||||
// ),
|
||||
// )
|
||||
// .toList(),
|
||||
|
||||
Reference in New Issue
Block a user