mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
include language in toast confirming addition to wordlist
This commit is contained in:
parent
03843e77d1
commit
37c6db8ffc
4 changed files with 7 additions and 4 deletions
|
@ -2179,7 +2179,7 @@
|
|||
<string name="confirm_studylist_clear_fmt">Are you sure you want to
|
||||
delete the %1$d selected word[s]?\n\n(This action cannot be undone.)</string>
|
||||
<string name="paste_done_fmt">%1$d word[s] copied</string>
|
||||
<string name="add_done_fmt">%1$s added to list</string>
|
||||
<string name="add_done_fmt">%1$s added to %2$s list</string>
|
||||
<string name="studylist_title_fmt">Studylist for %1$s</string>
|
||||
|
||||
<string name="study_langpick">Your words for:</string>
|
||||
|
|
|
@ -1872,7 +1872,7 @@
|
|||
<string name="confirm_studylist_clear_fmt">Era uoy erus uoy tnaw ot
|
||||
eteled eht %1$d detceles ?]s[drow\n\nsIht( noitca tonnac eb enodnu.)</string>
|
||||
<string name="paste_done_fmt">%1$d ]s[drow deipoc</string>
|
||||
<string name="add_done_fmt">%1$s dedda ot tsil</string>
|
||||
<string name="add_done_fmt">%1$s dedda ot %2$s tsil</string>
|
||||
<string name="studylist_title_fmt">Tsilyduts rof %1$s</string>
|
||||
<string name="study_langpick">Ruoy sdrow rof:</string>
|
||||
<string name="study_no_lang_fmt">Uoy evah ton tey devas yna sdrow
|
||||
|
|
|
@ -1872,7 +1872,7 @@
|
|||
<string name="confirm_studylist_clear_fmt">ARE YOU SURE YOU WANT TO
|
||||
DELETE THE %1$d SELECTED WORD[S]?\n\n(THIS ACTION CANNOT BE UNDONE.)</string>
|
||||
<string name="paste_done_fmt">%1$d WORD[S] COPIED</string>
|
||||
<string name="add_done_fmt">%1$s ADDED TO LIST</string>
|
||||
<string name="add_done_fmt">%1$s ADDED TO %2$s LIST</string>
|
||||
<string name="studylist_title_fmt">STUDYLIST FOR %1$s</string>
|
||||
<string name="study_langpick">YOUR WORDS FOR:</string>
|
||||
<string name="study_no_lang_fmt">YOU HAVE NOT YET SAVED ANY WORDS
|
||||
|
|
|
@ -74,6 +74,7 @@ public class LookupAlert extends LinearLayout
|
|||
private static final int LIST_LAYOUT = android.R.layout.simple_list_item_1;
|
||||
|
||||
private static int s_lang = -1;
|
||||
private static String s_langName;
|
||||
|
||||
// These two are probably always the same object
|
||||
private Context m_context;
|
||||
|
@ -197,7 +198,8 @@ public class LookupAlert extends LinearLayout
|
|||
String word = m_words[m_wordIndex];
|
||||
DBUtils.addToStudyList( m_context, word, s_lang );
|
||||
|
||||
String msg = LocUtils.getString( m_context, R.string.add_done_fmt, word );
|
||||
String msg = LocUtils.getString( m_context, R.string.add_done_fmt,
|
||||
word, s_langName );
|
||||
Utils.showToast( m_context, msg );
|
||||
}
|
||||
}
|
||||
|
@ -321,6 +323,7 @@ public class LookupAlert extends LinearLayout
|
|||
s_urlsAdapter = new ArrayAdapter<String>( context, LIST_LAYOUT,
|
||||
s_lookupNames );
|
||||
s_lang = lang;
|
||||
s_langName = DictLangCache.getLangNames( context )[lang];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue