From f5b5f8fab6951e468374e51918b4a5fb3c6a85a8 Mon Sep 17 00:00:00 2001 From: A117870935 Date: Tue, 12 Nov 2024 12:31:10 +0530 Subject: [PATCH] Update strings for plurals. Signed-off-by: A117870935 --- .../nextcloud/ui/trashbinFileActions/TrashbinFileAction.kt | 2 +- .../ui/trashbinFileActions/TrashbinFileActionsBottomSheet.kt | 2 +- app/src/main/res/values/strings.xml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileAction.kt b/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileAction.kt index 11e5787907..e86c8260e4 100644 --- a/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileAction.kt +++ b/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileAction.kt @@ -13,7 +13,7 @@ import com.owncloud.android.R enum class TrashbinFileAction(@IdRes val id: Int, @StringRes val title: Int, @DrawableRes val icon: Int? = null) { DELETE_PERMANENTLY(R.id.action_delete, R.string.trashbin_file_remove, R.drawable.ic_delete), - RESTORE(R.id.restore, R.string.restore_button_description, R.drawable.ic_history), + RESTORE(R.id.restore, R.string.restore_item, R.drawable.ic_history), SELECT_ALL(R.id.action_select_all_action_menu, R.string.select_all, R.drawable.ic_select_all), SELECT_NONE(R.id.action_deselect_all_action_menu, R.string.deselect_all, R.drawable.ic_select_none); diff --git a/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileActionsBottomSheet.kt b/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileActionsBottomSheet.kt index 091c746964..7a5d07d978 100644 --- a/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileActionsBottomSheet.kt +++ b/app/src/main/java/com/nextcloud/ui/trashbinFileActions/TrashbinFileActionsBottomSheet.kt @@ -185,7 +185,7 @@ class TrashbinFileActionsBottomSheet : BottomSheetDialogFragment(), Injectable { } private fun displayTitle(fileCount: Int) { - binding.title.text = resources.getQuantityString(R.plurals.file_list__footer__file, fileCount, fileCount) + binding.title.text = resources.getQuantityString(R.plurals.trashbin_list__footer__file, fileCount, fileCount) } private fun inflateActionView(action: TrashbinFileAction): View { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index dd01ccb130..d6e39d92e3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -576,6 +576,10 @@ %1$d file %1$d files + + %1$d item + %1$d items + Use picture as Set As @@ -872,6 +876,7 @@ Screensharing, online meetings and web conferences Restore deleted file Restore file + Restore New version was created New comment… Error commenting file