Allow plural of 'x selected' string

This commit is contained in:
ByteHamster 2020-04-29 21:03:02 +02:00
parent 8c9e78a417
commit 46ddcf3c49
2 changed files with 5 additions and 2 deletions

View File

@ -410,7 +410,8 @@ public class EpisodesApplyActionFragment extends Fragment {
}
ActivityCompat.invalidateOptionsMenu(EpisodesApplyActionFragment.this.getActivity());
showSpeedDialIfAnyChecked();
toolbar.setTitle(getString(R.string.num_selected_label, checkedIds.size()));
toolbar.setTitle(getResources().getQuantityString(R.plurals.num_selected_label,
checkedIds.size(), checkedIds.size()));
}
private void queueChecked() {

View File

@ -116,7 +116,9 @@
<item quantity="one">1 day after finishing</item>
<item quantity="other">%d days after finishing</item>
</plurals>
<string name="num_selected_label">%d selected</string>
<plurals name="num_selected_label">
<item quantity="other">%d selected</item>
</plurals>
<string name="loading_more">Loading more…</string>
<!-- Actions on feeds -->