include number to be deleted in comfirm message

This commit is contained in:
Eric House 2014-03-19 22:56:17 -07:00
parent c7818bd364
commit 3717035150
2 changed files with 5 additions and 4 deletions

View file

@ -2209,8 +2209,8 @@
<string name="slmenu_copy_sel">Copy to clipboard</string>
<string name="slmenu_clear_sel">Delete</string>
<string name="confirm_studylist_clear">Are you sure you want to
delete the selected words?\n\n(This action cannot be undone.)</string>
<string name="confirm_studylist_clearf">Are you sure you want to
delete the %d selected word[s]?\n\n(This action cannot be undone.)</string>
<string name="paste_donef">%d word[s] copied</string>
<string name="add_donef">%s added to list</string>
<string name="studylist_titlef">Studylist for %s</string>

View file

@ -113,8 +113,9 @@ public class StudyList extends XWListActivity
Action.SL_COPY_ACTION );
break;
case R.id.slmenu_clear_sel:
showConfirmThen( R.string.confirm_studylist_clear,
Action.SL_CLEAR_ACTION );
String msg = getString( R.string.confirm_studylist_clearf,
m_checkeds.size() );
showConfirmThen( msg, Action.SL_CLEAR_ACTION );
break;
case R.id.slmenu_select_all: