Use settings label in settings page instead of dedicated text

This commit is contained in:
Ming Ming 2022-09-10 15:18:23 +08:00
parent 51a2597ef4
commit fbec0f1af8
4 changed files with 8 additions and 55 deletions

View file

@ -330,10 +330,6 @@
"description": "Memory albums contain photos taken in a specific time range in the past" "description": "Memory albums contain photos taken in a specific time range in the past"
}, },
"settingsAccountTitle": "Account", "settingsAccountTitle": "Account",
"settingsAccountPageTitle": "Account settings",
"@settingsAccountPageTitle": {
"description": "Dedicated page for account settings"
},
"settingsAccountLabelTitle": "Label", "settingsAccountLabelTitle": "Label",
"@settingsAccountLabelTitle": { "@settingsAccountLabelTitle": {
"description": "An account label is used to replace the server URL in the app bar, could be useful for privacy reason" "description": "An account label is used to replace the server URL in the app bar, could be useful for privacy reason"
@ -367,10 +363,6 @@
"@settingsPhotosDescription": { "@settingsPhotosDescription": {
"description": "The 'Photos' here means the tab called 'Photos', not literally a photo. The title of this setting will also reuse the label of that tab" "description": "The 'Photos' here means the tab called 'Photos', not literally a photo. The title of this setting will also reuse the label of that tab"
}, },
"settingsPhotosPageTitle": "Photos settings",
"@settingsPhotosPageTitle": {
"description": "Dedicated page for settings related to the Photos tab"
},
"settingsMemoriesRangeTitle": "Memories range", "settingsMemoriesRangeTitle": "Memories range",
"@settingsMemoriesRangeTitle": { "@settingsMemoriesRangeTitle": {
"description": "How many adjacent days to be inclded in memories for a particular year" "description": "How many adjacent days to be inclded in memories for a particular year"
@ -386,10 +378,6 @@
}, },
"settingsViewerTitle": "Viewer", "settingsViewerTitle": "Viewer",
"settingsViewerDescription": "Customize the image/video viewer", "settingsViewerDescription": "Customize the image/video viewer",
"settingsViewerPageTitle": "Viewer settings",
"@settingsViewerPageTitle": {
"description": "Dedicated page for viewer settings"
},
"settingsScreenBrightnessTitle": "Screen brightness", "settingsScreenBrightnessTitle": "Screen brightness",
"settingsScreenBrightnessDescription": "Override system brightness level", "settingsScreenBrightnessDescription": "Override system brightness level",
"settingsForceRotationTitle": "Ignore rotation lock", "settingsForceRotationTitle": "Ignore rotation lock",
@ -397,10 +385,6 @@
"settingsMapProviderTitle": "Map provider", "settingsMapProviderTitle": "Map provider",
"settingsAlbumTitle": "Album", "settingsAlbumTitle": "Album",
"settingsAlbumDescription": "Customize albums", "settingsAlbumDescription": "Customize albums",
"settingsAlbumPageTitle": "Album settings",
"@settingsAlbumPageTitle": {
"description": "Dedicated page for album settings"
},
"settingsShowDateInAlbumTitle": "Group photos by date", "settingsShowDateInAlbumTitle": "Group photos by date",
"settingsShowDateInAlbumDescription": "Apply only when the album is sorted by time", "settingsShowDateInAlbumDescription": "Apply only when the album is sorted by time",
"settingsImageEditTitle": "Editor", "settingsImageEditTitle": "Editor",
@ -418,10 +402,6 @@
"settingsImageEditSaveResultsToServerFalseDescription": "Results are saved to this device", "settingsImageEditSaveResultsToServerFalseDescription": "Results are saved to this device",
"settingsThemeTitle": "Theme", "settingsThemeTitle": "Theme",
"settingsThemeDescription": "Customize the appearance of the app", "settingsThemeDescription": "Customize the appearance of the app",
"settingsThemePageTitle": "Theme settings",
"@settingsThemePageTitle": {
"description": "Dedicated page for theme settings"
},
"settingsFollowSystemThemeTitle": "Follow system theme", "settingsFollowSystemThemeTitle": "Follow system theme",
"@settingsFollowSystemThemeTitle": { "@settingsFollowSystemThemeTitle": {
"description": "Respect the system dark mode settings introduced on Android 10" "description": "Respect the system dark mode settings introduced on Android 10"
@ -439,7 +419,6 @@
"description": "When black in dark theme is set to false" "description": "When black in dark theme is set to false"
}, },
"settingsMiscellaneousTitle": "Miscellaneous", "settingsMiscellaneousTitle": "Miscellaneous",
"settingsMiscellaneousPageTitle": "Miscellaneous settings",
"settingsDoubleTapExitTitle": "Double tap to exit", "settingsDoubleTapExitTitle": "Double tap to exit",
"@settingsDoubleTapExitTitle": { "@settingsDoubleTapExitTitle": {
"description": "If enabled, users need to tap the back button twice to exit app" "description": "If enabled, users need to tap the back button twice to exit app"
@ -450,7 +429,6 @@
}, },
"settingsExperimentalTitle": "Experimental", "settingsExperimentalTitle": "Experimental",
"settingsExperimentalDescription": "Features that are not ready for everyday use", "settingsExperimentalDescription": "Features that are not ready for everyday use",
"settingsExperimentalPageTitle": "Experimental settings",
"settingsAboutSectionTitle": "About", "settingsAboutSectionTitle": "About",
"@settingsAboutSectionTitle": { "@settingsAboutSectionTitle": {
"description": "Title of the about section in settings widget" "description": "Title of the about section in settings widget"

View file

@ -6,7 +6,6 @@
"settingsMemoriesTitle", "settingsMemoriesTitle",
"settingsMemoriesSubtitle", "settingsMemoriesSubtitle",
"settingsAccountTitle", "settingsAccountTitle",
"settingsAccountPageTitle",
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsIncludedFoldersTitle", "settingsIncludedFoldersTitle",
@ -16,13 +15,11 @@
"settingsShareFolderPickerDescription", "settingsShareFolderPickerDescription",
"settingsServerAppSectionTitle", "settingsServerAppSectionTitle",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsMapProviderTitle", "settingsMapProviderTitle",
"settingsAlbumTitle", "settingsAlbumTitle",
"settingsAlbumDescription", "settingsAlbumDescription",
"settingsAlbumPageTitle",
"settingsShowDateInAlbumTitle", "settingsShowDateInAlbumTitle",
"settingsShowDateInAlbumDescription", "settingsShowDateInAlbumDescription",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -33,12 +30,10 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"settingsExperimentalTitle", "settingsExperimentalTitle",
"settingsExperimentalDescription", "settingsExperimentalDescription",
"settingsExperimentalPageTitle",
"rootPickerSkipConfirmationDialogContent2", "rootPickerSkipConfirmationDialogContent2",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",
"sortOptionFilenameDescendingLabel", "sortOptionFilenameDescendingLabel",
@ -174,7 +169,6 @@
"settingsMemoriesTitle", "settingsMemoriesTitle",
"settingsMemoriesSubtitle", "settingsMemoriesSubtitle",
"settingsAccountTitle", "settingsAccountTitle",
"settingsAccountPageTitle",
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsIncludedFoldersTitle", "settingsIncludedFoldersTitle",
@ -184,13 +178,11 @@
"settingsShareFolderPickerDescription", "settingsShareFolderPickerDescription",
"settingsServerAppSectionTitle", "settingsServerAppSectionTitle",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsMapProviderTitle", "settingsMapProviderTitle",
"settingsAlbumTitle", "settingsAlbumTitle",
"settingsAlbumDescription", "settingsAlbumDescription",
"settingsAlbumPageTitle",
"settingsShowDateInAlbumTitle", "settingsShowDateInAlbumTitle",
"settingsShowDateInAlbumDescription", "settingsShowDateInAlbumDescription",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -201,12 +193,10 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"settingsExperimentalTitle", "settingsExperimentalTitle",
"settingsExperimentalDescription", "settingsExperimentalDescription",
"settingsExperimentalPageTitle",
"rootPickerSkipConfirmationDialogContent2", "rootPickerSkipConfirmationDialogContent2",
"timeSecondInputHint", "timeSecondInputHint",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",
@ -354,7 +344,6 @@
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -415,7 +404,6 @@
"es": [ "es": [
"settingsLanguageOptionSystemDefaultLabel", "settingsLanguageOptionSystemDefaultLabel",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -444,7 +432,6 @@
"fi": [ "fi": [
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -477,7 +464,6 @@
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -488,7 +474,6 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",
@ -563,7 +548,6 @@
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -574,7 +558,6 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",
@ -667,7 +650,6 @@
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -678,7 +660,6 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",
@ -750,7 +731,6 @@
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -761,7 +741,6 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",
@ -833,7 +812,6 @@
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -844,7 +822,6 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",
@ -916,7 +893,6 @@
"settingsAccountLabelTitle", "settingsAccountLabelTitle",
"settingsAccountLabelDescription", "settingsAccountLabelDescription",
"settingsPhotosDescription", "settingsPhotosDescription",
"settingsPhotosPageTitle",
"settingsMemoriesRangeTitle", "settingsMemoriesRangeTitle",
"settingsMemoriesRangeValueText", "settingsMemoriesRangeValueText",
"settingsImageEditTitle", "settingsImageEditTitle",
@ -927,7 +903,6 @@
"settingsImageEditSaveResultsToServerTrueDescription", "settingsImageEditSaveResultsToServerTrueDescription",
"settingsImageEditSaveResultsToServerFalseDescription", "settingsImageEditSaveResultsToServerFalseDescription",
"settingsMiscellaneousTitle", "settingsMiscellaneousTitle",
"settingsMiscellaneousPageTitle",
"settingsDoubleTapExitTitle", "settingsDoubleTapExitTitle",
"settingsPhotosTabSortByNameTitle", "settingsPhotosTabSortByNameTitle",
"sortOptionFilenameAscendingLabel", "sortOptionFilenameAscendingLabel",

View file

@ -98,7 +98,7 @@ class _AccountPickerDialogState extends State<AccountPickerDialog> {
Icons.settings_outlined, Icons.settings_outlined,
color: AppTheme.getUnfocusedIconColor(context), color: AppTheme.getUnfocusedIconColor(context),
), ),
tooltip: L10n.global().settingsAccountPageTitle, tooltip: L10n.global().settingsMenuLabel,
onPressed: _onEditPressed, onPressed: _onEditPressed,
), ),
), ),

View file

@ -530,7 +530,7 @@ class _AccountSettingsState extends State<AccountSettingsWidget> {
slivers: [ slivers: [
SliverAppBar( SliverAppBar(
pinned: true, pinned: true,
title: Text(L10n.global().settingsAccountPageTitle), title: Text(L10n.global().settingsAccountTitle),
leading: _shouldReload leading: _shouldReload
? IconButton( ? IconButton(
icon: const Icon(Icons.check), icon: const Icon(Icons.check),
@ -837,7 +837,7 @@ class _PhotosSettingsState extends State<_PhotosSettings> {
slivers: [ slivers: [
SliverAppBar( SliverAppBar(
pinned: true, pinned: true,
title: Text(L10n.global().settingsPhotosPageTitle), title: Text(L10n.global().photosTabLabel),
), ),
SliverList( SliverList(
delegate: SliverChildListDelegate( delegate: SliverChildListDelegate(
@ -1018,7 +1018,7 @@ class _ViewerSettingsState extends State<_ViewerSettings> {
slivers: [ slivers: [
SliverAppBar( SliverAppBar(
pinned: true, pinned: true,
title: Text(L10n.global().settingsViewerPageTitle), title: Text(L10n.global().settingsViewerTitle),
), ),
SliverList( SliverList(
delegate: SliverChildListDelegate( delegate: SliverChildListDelegate(
@ -1232,7 +1232,7 @@ class _AlbumSettingsState extends State<_AlbumSettings> {
slivers: [ slivers: [
SliverAppBar( SliverAppBar(
pinned: true, pinned: true,
title: Text(L10n.global().settingsAlbumPageTitle), title: Text(L10n.global().settingsAlbumTitle),
), ),
SliverList( SliverList(
delegate: SliverChildListDelegate( delegate: SliverChildListDelegate(
@ -1552,7 +1552,7 @@ class _ThemeSettingsState extends State<_ThemeSettings> {
slivers: [ slivers: [
SliverAppBar( SliverAppBar(
pinned: true, pinned: true,
title: Text(L10n.global().settingsThemePageTitle), title: Text(L10n.global().settingsThemeTitle),
), ),
SliverList( SliverList(
delegate: SliverChildListDelegate( delegate: SliverChildListDelegate(
@ -1659,7 +1659,7 @@ class _MiscSettingsState extends State<_MiscSettings> {
slivers: [ slivers: [
SliverAppBar( SliverAppBar(
pinned: true, pinned: true,
title: Text(L10n.global().settingsMiscellaneousPageTitle), title: Text(L10n.global().settingsMiscellaneousTitle),
), ),
SliverList( SliverList(
delegate: SliverChildListDelegate( delegate: SliverChildListDelegate(
@ -1749,7 +1749,7 @@ class _ExperimentalSettingsState extends State<_ExperimentalSettings> {
slivers: [ slivers: [
SliverAppBar( SliverAppBar(
pinned: true, pinned: true,
title: Text(L10n.global().settingsExperimentalPageTitle), title: Text(L10n.global().settingsExperimentalTitle),
), ),
SliverList( SliverList(
delegate: SliverChildListDelegate( delegate: SliverChildListDelegate(