From 01a5c889b0fff53cd9ef20df35f0e89bc8965744 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 4 Feb 2013 11:12:03 -0800 Subject: [PATCH] Export stray strings for localization. --- res/values/strings.xml | 3 +++ src/org/thoughtcrime/securesms/ConversationActivity.java | 4 +++- src/org/thoughtcrime/securesms/ConversationListFragment.java | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 16a463b4e4..1aa775b482 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -88,6 +88,7 @@ Group Conversation Recipients Group Conversation %d recipients in group + Saving draft... Message details @@ -103,6 +104,8 @@ Delete threads? Are you sure you wish to delete ALL selected conversation threads? + Deleting + Deleting selected threads... Key exchange message... diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index f3471194fa..f4d1351040 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -637,7 +637,9 @@ public class ConversationActivity extends SherlockFragmentActivity new AsyncTask() { @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 diff --git a/src/org/thoughtcrime/securesms/ConversationListFragment.java b/src/org/thoughtcrime/securesms/ConversationListFragment.java index 8488ccd5c6..72f1b5f749 100644 --- a/src/org/thoughtcrime/securesms/ConversationListFragment.java +++ b/src/org/thoughtcrime/securesms/ConversationListFragment.java @@ -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