Skip to content

Commit

Permalink
Update strings for plurals.
Browse files Browse the repository at this point in the history
Signed-off-by: A117870935 <[email protected]>
  • Loading branch information
surinder-tsys committed Nov 12, 2024
1 parent 2fb583d commit dc63d00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@
<item quantity="one">%1$d file</item>
<item quantity="other">%1$d files</item>
</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_as">Set As</string>

Expand Down Expand Up @@ -862,6 +866,7 @@
<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">Restore file</string>
<string name="restore_item">Restore</string>
<string name="new_version_was_created">New version was created</string>
<string name="new_comment">New comment…</string>
<string name="error_comment_file">Error commenting file</string>
Expand Down

0 comments on commit dc63d00

Please sign in to comment.