Update strings for plurals.

Signed-off-by: A117870935 <surinder.kumar@t-systems.com>
This commit is contained in:
A117870935 2024-11-12 12:31:10 +05:30 committed by Alper Öztürk
parent eb9244df1d
commit f5b5f8fab6
3 changed files with 7 additions and 2 deletions

View file

@ -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) { 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), 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_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); SELECT_NONE(R.id.action_deselect_all_action_menu, R.string.deselect_all, R.drawable.ic_select_none);

View file

@ -185,7 +185,7 @@ class TrashbinFileActionsBottomSheet : BottomSheetDialogFragment(), Injectable {
} }
private fun displayTitle(fileCount: Int) { 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 { private fun inflateActionView(action: TrashbinFileAction): View {

View file

@ -576,6 +576,10 @@
<item quantity="one">%1$d file</item> <item quantity="one">%1$d file</item>
<item quantity="other">%1$d files</item> <item quantity="other">%1$d files</item>
</plurals> </plurals>
<plurals name="trashbin_list__footer__file">
<item quantity="one">%1$d item</item>
<item quantity="other">%1$d items</item>
</plurals>
<string name="set_picture_as">Use picture as</string> <string name="set_picture_as">Use picture as</string>
<string name="set_as">Set As</string> <string name="set_as">Set As</string>
@ -872,6 +876,7 @@
<string name="first_run_4_text">Screensharing, online meetings and web conferences</string> <string name="first_run_4_text">Screensharing, online meetings and web conferences</string>
<string name="restore_button_description">Restore deleted file</string> <string name="restore_button_description">Restore deleted file</string>
<string name="restore">Restore file</string> <string name="restore">Restore file</string>
<string name="restore_item">Restore</string>
<string name="new_version_was_created">New version was created</string> <string name="new_version_was_created">New version was created</string>
<string name="new_comment">New comment…</string> <string name="new_comment">New comment…</string>
<string name="error_comment_file">Error commenting file</string> <string name="error_comment_file">Error commenting file</string>