mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 23:15:43 -06:00
feat: Renamed translation strings
This commit is contained in:
@@ -25,12 +25,12 @@ class _AddSavedViewPageState extends State<AddSavedViewPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(S.of(context).savedViewCreateNewLabel),
|
||||
title: Text(S.of(context).newView),
|
||||
),
|
||||
floatingActionButton: FloatingActionButton.extended(
|
||||
icon: const Icon(Icons.add),
|
||||
onPressed: () => _onCreate(context),
|
||||
label: Text(S.of(context).genericActionCreateLabel),
|
||||
label: Text(S.of(context).create),
|
||||
),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
@@ -46,18 +46,18 @@ class _AddSavedViewPageState extends State<AddSavedViewPage> {
|
||||
name: _AddSavedViewPageState.fkName,
|
||||
validator: FormBuilderValidators.required(),
|
||||
decoration: InputDecoration(
|
||||
label: Text(S.of(context).savedViewNameLabel),
|
||||
label: Text(S.of(context).name),
|
||||
),
|
||||
),
|
||||
FormBuilderCheckbox(
|
||||
name: _AddSavedViewPageState.fkShowOnDashboard,
|
||||
initialValue: false,
|
||||
title: Text(S.of(context).savedViewShowOnDashboardLabel),
|
||||
title: Text(S.of(context).showOnDashboard),
|
||||
),
|
||||
FormBuilderCheckbox(
|
||||
name: _AddSavedViewPageState.fkShowInSidebar,
|
||||
initialValue: false,
|
||||
title: Text(S.of(context).savedViewShowInSidebarLabel),
|
||||
title: Text(S.of(context).showInSidebar),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -94,18 +94,18 @@ class _AddSavedViewPageState extends State<AddSavedViewPage> {
|
||||
name: fkName,
|
||||
validator: FormBuilderValidators.required(),
|
||||
decoration: InputDecoration(
|
||||
label: Text(S.of(context).savedViewNameLabel),
|
||||
label: Text(S.of(context).name),
|
||||
),
|
||||
),
|
||||
FormBuilderCheckbox(
|
||||
name: fkShowOnDashboard,
|
||||
initialValue: false,
|
||||
title: Text(S.of(context).savedViewShowOnDashboardLabel),
|
||||
title: Text(S.of(context).showOnDashboard),
|
||||
),
|
||||
FormBuilderCheckbox(
|
||||
name: fkShowInSidebar,
|
||||
initialValue: false,
|
||||
title: Text(S.of(context).savedViewShowInSidebarLabel),
|
||||
title: Text(S.of(context).showInSidebar),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -20,7 +20,8 @@ class SavedViewList extends StatelessWidget {
|
||||
if (state.value.isEmpty) {
|
||||
return SliverToBoxAdapter(
|
||||
child: HintCard(
|
||||
hintText: S.of(context).savedViewsEmptyStateText,
|
||||
hintText:
|
||||
S.of(context).createViewsToQuicklyFilterYourDocuments,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -32,9 +33,7 @@ class SavedViewList extends StatelessWidget {
|
||||
enabled: connectivity.isConnected,
|
||||
title: Text(view.name),
|
||||
subtitle: Text(
|
||||
S
|
||||
.of(context)
|
||||
.savedViewsFiltersSetCount(view.filterRules.length),
|
||||
S.of(context).nFiltersSet(view.filterRules.length),
|
||||
),
|
||||
onTap: () {
|
||||
Navigator.of(context).push(
|
||||
|
||||
Reference in New Issue
Block a user