Export stray strings for localization.

This commit is contained in:
Moxie Marlinspike 2013-02-04 11:12:03 -08:00
parent dcf73cd009
commit 01a5c889b0
3 changed files with 10 additions and 2 deletions

View File

@ -88,6 +88,7 @@
<string name="ConversationActivity_group_conversation_recipients">Group Conversation Recipients</string>
<string name="ConversationActivity_group_conversation">Group Conversation</string>
<string name="ConversationActivity_d_recipients_in_group">%d recipients in group</string>
<string name="ConversationActivity_saving_draft">Saving draft...</string>
<!-- ConversationFragment -->
<string name="ConversationFragment_message_details">Message details</string>
@ -103,6 +104,8 @@
<!-- ConversationListFragment -->
<string name="ConversationListFragment_delete_threads_question">Delete threads?</string>
<string name="ConversationListFragment_are_you_sure_you_wish_to_delete_all_selected_conversation_threads">Are you sure you wish to delete ALL selected conversation threads?</string>
<string name="ConversationListFragment_deleting">Deleting</string>
<string name="ConversationListFragment_deleting_selected_threads">Deleting selected threads...</string>
<!-- ConversationListItem -->
<string name="ConversationListItem_key_exchange_message">Key exchange message...</string>

View File

@ -637,7 +637,9 @@ public class ConversationActivity extends SherlockFragmentActivity
new AsyncTask<Void, Void, Void>() {
@Override
protected void onPreExecute() {
Toast.makeText(ConversationActivity.this, "Saving draft...", Toast.LENGTH_SHORT).show();
Toast.makeText(ConversationActivity.this,
R.string.ConversationActivity_saving_draft,
Toast.LENGTH_SHORT).show();
}
@Override

View File

@ -170,7 +170,10 @@ public class ConversationListFragment extends SherlockListFragment
@Override
protected void onPreExecute() {
dialog = ProgressDialog.show(getActivity(), "Deleting", "Deleting selected threads...", true, false);
dialog = ProgressDialog.show(getActivity(),
getSherlockActivity().getString(R.string.ConversationListFragment_deleting),
getSherlockActivity().getString(R.string.ConversationListFragment_deleting_selected_threads),
true, false);
}
@Override