diff --git a/res/layout/country_selection_fragment.xml b/res/layout/country_selection_fragment.xml
index 998d36ed99..4a5962a511 100644
--- a/res/layout/country_selection_fragment.xml
+++ b/res/layout/country_selection_fragment.xml
@@ -9,7 +9,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_menu_search_holo_light"
- android:hint="Search" />
+ android:hint="@string/country_selection_fragment__search" />
-
-
+ android:text="@string/country_selection_fragment__loading_countries" />
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a16db58283..01dd14b6a5 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -237,6 +237,11 @@
You\'ve already recently requested a voice call. You can request another in 20 minutes.
Verifying voice code...
+
+ Registration Complete
+ TextSecure registration has successfully completed.
+ Registration Error
+ TextSecure registration has encountered a problem.
You do not have an identity key.
@@ -370,7 +375,11 @@
Batch Selection Mode
-
+
+
+ Loading countries...
+ Search
+
Please choose a passphrase that will be used to locally encrypt your data.\n\nThis should be a strong passphrase.
PASSPHRASE:
diff --git a/src/org/thoughtcrime/securesms/RegistrationActivity.java b/src/org/thoughtcrime/securesms/RegistrationActivity.java
index 5ea755bdb7..37c4da0f1f 100644
--- a/src/org/thoughtcrime/securesms/RegistrationActivity.java
+++ b/src/org/thoughtcrime/securesms/RegistrationActivity.java
@@ -28,7 +28,8 @@ import org.whispersystems.textsecure.util.PhoneNumberFormatter;
import org.whispersystems.textsecure.util.Util;
/**
- * The register account activity. Begins the account registration process.
+ * The register account activity. Prompts ths user for their registration information
+ * and begins the account registration process.
*
* @author Moxie Marlinspike
*
@@ -53,6 +54,7 @@ public class RegistrationActivity extends SherlockActivity {
actionBar.setTitle(getString(R.string.RegistrationActivity_connect_with_textsecure));
initializeResources();
+ initializeSpinner();
initializeNumber();
}
@@ -71,8 +73,15 @@ public class RegistrationActivity extends SherlockActivity {
this.number = (TextView)findViewById(R.id.number);
this.createButton = (Button)findViewById(R.id.registerButton);
+ this.countryCode.addTextChangedListener(new CountryCodeChangedListener());
+ this.number.addTextChangedListener(new NumberChangedListener());
+ this.createButton.setOnClickListener(new CreateButtonListener());
+ }
+
+ private void initializeSpinner() {
this.countrySpinnerAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item);
this.countrySpinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
+
setCountryDisplay(getString(R.string.RegistrationActivity_select_your_country));
this.countrySpinner.setAdapter(this.countrySpinnerAdapter);
@@ -86,13 +95,8 @@ public class RegistrationActivity extends SherlockActivity {
return true;
}
});
-
- this.countryCode.addTextChangedListener(new CountryCodeChangedListener());
- this.number.addTextChangedListener(new NumberChangedListener());
- this.createButton.setOnClickListener(new CreateButtonListener());
}
-
private void initializeNumber() {
String localNumber = ((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE))
.getLine1Number();
diff --git a/src/org/thoughtcrime/securesms/service/RegistrationService.java b/src/org/thoughtcrime/securesms/service/RegistrationService.java
index 2486f1082e..35a360552f 100644
--- a/src/org/thoughtcrime/securesms/service/RegistrationService.java
+++ b/src/org/thoughtcrime/securesms/service/RegistrationService.java
@@ -15,6 +15,7 @@ import android.util.Log;
import com.google.android.gcm.GCMRegistrar;
import org.thoughtcrime.securesms.ApplicationPreferencesActivity;
+import org.thoughtcrime.securesms.R;
import org.thoughtcrime.securesms.gcm.GcmIntentService;
import org.thoughtcrime.securesms.gcm.GcmRegistrationTimeoutException;
import org.whispersystems.textsecure.push.PushServiceSocket;
@@ -327,11 +328,11 @@ public class RegistrationService extends Service {
intent.setAction(REGISTRATION_EVENT);
if (success) {
- intent.putExtra(NOTIFICATION_TITLE, "Registration Complete");
- intent.putExtra(NOTIFICATION_TEXT, "TextSecure registration has successfully completed.");
+ intent.putExtra(NOTIFICATION_TITLE, getString(R.string.RegistrationService_registration_complete));
+ intent.putExtra(NOTIFICATION_TEXT, getString(R.string.RegistrationService_textsecure_registration_has_successfully_completed));
} else {
- intent.putExtra(NOTIFICATION_TITLE, "Registration Error");
- intent.putExtra(NOTIFICATION_TEXT, "TextSecure registration has encountered a problem.");
+ intent.putExtra(NOTIFICATION_TITLE, getString(R.string.RegistrationService_registration_error));
+ intent.putExtra(NOTIFICATION_TEXT, getString(R.string.RegistrationService_textsecure_registration_has_encountered_a_problem));
}
this.sendOrderedBroadcast(intent, null);