mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
route more getString() calls through LocUtils
This commit is contained in:
parent
1c35bd2a1b
commit
1eea5bfed5
1 changed files with 6 additions and 5 deletions
|
@ -195,7 +195,7 @@ public class LookupAlert extends LinearLayout
|
||||||
String word = m_words[m_wordIndex];
|
String word = m_words[m_wordIndex];
|
||||||
DBUtils.addToStudyList( m_context, word, s_lang );
|
DBUtils.addToStudyList( m_context, word, s_lang );
|
||||||
|
|
||||||
String msg = m_context.getString( R.string.add_done_fmt, word );
|
String msg = LocUtils.getString( m_context, R.string.add_done_fmt, word );
|
||||||
Utils.showToast( m_context, msg );
|
Utils.showToast( m_context, msg );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -257,8 +257,8 @@ public class LookupAlert extends LinearLayout
|
||||||
String txt = LocUtils.getString( m_context, R.string.button_done_fmt,
|
String txt = LocUtils.getString( m_context, R.string.button_done_fmt,
|
||||||
m_words[m_wordIndex] );
|
m_words[m_wordIndex] );
|
||||||
m_doneButton.setText( txt );
|
m_doneButton.setText( txt );
|
||||||
txt = m_context.getString( R.string.add_to_study_fmt,
|
txt = LocUtils.getString( m_context, R.string.add_to_study_fmt,
|
||||||
m_words[m_wordIndex] );
|
m_words[m_wordIndex] );
|
||||||
if ( m_studyOn ) {
|
if ( m_studyOn ) {
|
||||||
m_studyButton.setVisibility( View.VISIBLE );
|
m_studyButton.setVisibility( View.VISIBLE );
|
||||||
m_studyButton.setText( txt );
|
m_studyButton.setText( txt );
|
||||||
|
@ -321,12 +321,13 @@ public class LookupAlert extends LinearLayout
|
||||||
|
|
||||||
private void setSummary( int id )
|
private void setSummary( int id )
|
||||||
{
|
{
|
||||||
m_summary.setText( m_context.getString( id ) );
|
m_summary.setText( LocUtils.getString( m_context, id ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setSummary( String word )
|
private void setSummary( String word )
|
||||||
{
|
{
|
||||||
String title = m_context.getString( R.string.pick_url_title_fmt, word );
|
String title =
|
||||||
|
LocUtils.getString( m_context, R.string.pick_url_title_fmt, word );
|
||||||
m_summary.setText( title );
|
m_summary.setText( title );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue