diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java index 4e9b357ef..4f6e0a372 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfig.java @@ -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 ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java index 44b512c04..e04187368 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java @@ -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;