mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
use plurals for another string, and add getQuantityString to delegates
baseclass.
This commit is contained in:
parent
5d64089a5b
commit
fff57a5638
7 changed files with 632 additions and 617 deletions
File diff suppressed because it is too large
Load diff
|
@ -158,8 +158,10 @@ obtenir une copie avec les mêmes paramètres.</string>
|
|||
list_item_rename) -->
|
||||
<string name="rename_label">Changer le nom de la partie pour :</string>
|
||||
|
||||
<string name="confirm_seldeletes_fmt">Êtes-vous sûr de vouloir effacer les
|
||||
%1$d parties sélectionnées ? Cette action ne peut pas être annulée.</string>
|
||||
<plurals name="confirm_seldeletes_fmt">
|
||||
<item quantity="other">Êtes-vous sûr de vouloir effacer les
|
||||
%1$d parties sélectionnées ? Cette action ne peut pas être annulée.</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Text of confirmation dialog posted when list_item_reset menu
|
||||
is selected -->
|
||||
|
|
|
@ -162,8 +162,10 @@
|
|||
<string name="rename_label_caveat">Change the name of this game
|
||||
(on this device only) to:</string>
|
||||
|
||||
<string name="confirm_seldeletes_fmt">Are you sure you want to delete
|
||||
the %1$d selected game[s]? This action cannot be undone.</string>
|
||||
<plurals name="confirm_seldeletes_fmt">
|
||||
<item quantity="other">Are you sure you want to delete
|
||||
the %1$d selected game[s]? This action cannot be undone.</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Text of confirmation dialog posted when list_item_reset menu
|
||||
is selected -->
|
||||
|
|
|
@ -141,8 +141,10 @@
|
|||
<string name="rename_label">Egnahc eht eman fo siht emag ot:</string>
|
||||
<string name="rename_label_caveat">Egnahc eht eman fo siht emag
|
||||
no( siht ecived )ylno ot:</string>
|
||||
<string name="confirm_seldeletes_fmt">Era uoy erus uoy tnaw ot eteled
|
||||
eht %1$d detceles ?]s[emag Siht noitca tonnac eb enodnu.</string>
|
||||
<plurals name="confirm_seldeletes_fmt">
|
||||
<item quantity="other">Era uoy erus uoy tnaw ot eteled
|
||||
eht %1$d detceles ?]s[emag Siht noitca tonnac eb enodnu.</item>
|
||||
</plurals>
|
||||
<!-- Text of confirmation dialog posted when list_item_reset menu
|
||||
is selected -->
|
||||
<string name="confirm_reset_fmt">Era uoy erus uoy tnaw ot teser eht %1$d
|
||||
|
|
|
@ -141,8 +141,10 @@
|
|||
<string name="rename_label">CHANGE THE NAME OF THIS GAME TO:</string>
|
||||
<string name="rename_label_caveat">CHANGE THE NAME OF THIS GAME
|
||||
(ON THIS DEVICE ONLY) TO:</string>
|
||||
<string name="confirm_seldeletes_fmt">ARE YOU SURE YOU WANT TO DELETE
|
||||
THE %1$d SELECTED GAME[S]? THIS ACTION CANNOT BE UNDONE.</string>
|
||||
<plurals name="confirm_seldeletes_fmt">
|
||||
<item quantity="other">ARE YOU SURE YOU WANT TO DELETE
|
||||
THE %1$d SELECTED GAME[S]? THIS ACTION CANNOT BE UNDONE.</item>
|
||||
</plurals>
|
||||
<!-- Text of confirmation dialog posted when list_item_reset menu
|
||||
is selected -->
|
||||
<string name="confirm_reset_fmt">ARE YOU SURE YOU WANT TO RESET THE %1$d
|
||||
|
|
|
@ -209,6 +209,13 @@ public class DelegateBase implements DlgClickNotify,
|
|||
return LocUtils.getString( m_activity, resID, params );
|
||||
}
|
||||
|
||||
protected String getQuantityString( int resID, int quantity,
|
||||
Object... params )
|
||||
{
|
||||
return LocUtils.getQuantityString( m_activity, resID, quantity,
|
||||
params );
|
||||
}
|
||||
|
||||
protected String[] getStringArray( int resID )
|
||||
{
|
||||
return LocUtils.getStringArray( m_activity, resID );
|
||||
|
|
|
@ -1438,8 +1438,8 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
|
||||
// Game menus: one or more games selected
|
||||
case R.id.games_game_delete:
|
||||
String msg = getString( R.string.confirm_seldeletes_fmt,
|
||||
selRowIDs.length );
|
||||
String msg = getQuantityString( R.plurals.confirm_seldeletes_fmt,
|
||||
selRowIDs.length, selRowIDs.length );
|
||||
showConfirmThen( msg, R.string.button_delete,
|
||||
Action.DELETE_GAMES, selRowIDs );
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue