Merge pull request #4088 from ByteHamster/selected-quantity

Allow plural of 'x selected' string
This commit is contained in:
H. Lehmann 2020-05-01 11:33:05 +02:00 committed by GitHub
commit 5287322a89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 -->