mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
move user-visible literals into string resource; shame on me :-)
This commit is contained in:
parent
2966939a5a
commit
73f441bea9
2 changed files with 4 additions and 4 deletions
|
@ -513,7 +513,7 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
|||
{
|
||||
m_playerLayout.removeAllViews();
|
||||
|
||||
String[] names = m_gi.visibleNames();
|
||||
String[] names = m_gi.visibleNames( this );
|
||||
LayoutInflater factory = LayoutInflater.from(this);
|
||||
for ( int ii = 0; ii < names.length; ++ii ) {
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@ public class CurGameInfo {
|
|||
}
|
||||
}
|
||||
|
||||
public String[] visibleNames()
|
||||
public String[] visibleNames( Context context )
|
||||
{
|
||||
String[] names = new String[m_nVisiblePlayers];
|
||||
for ( int ii = 0; ii < m_nVisiblePlayers; ++ii ) {
|
||||
|
@ -200,10 +200,10 @@ public class CurGameInfo {
|
|||
if ( lp.isLocal || serverRole == DeviceRole.SERVER_STANDALONE ) {
|
||||
names[ii] = lp.name;
|
||||
if ( lp.isRobot ) {
|
||||
names[ii] += "(robot)";
|
||||
names[ii] += context.getString( R.string.robot_name );
|
||||
}
|
||||
} else {
|
||||
names[ii] = "(remote player)";
|
||||
names[ii] = context.getString( R.string.guest_name );
|
||||
}
|
||||
}
|
||||
return names;
|
||||
|
|
Loading…
Add table
Reference in a new issue