Fill in some strings.

// FREEBIE
pull/1/head
Moxie Marlinspike 11 years ago
parent 9c9866e7ee
commit da57a689c1

@ -283,7 +283,11 @@
Received message with unknown identity key. Click to process and display. Received message with unknown identity key. Click to process and display.
</string> </string>
<string name="SmsMessageRecord_received_updated_but_unknown_identity_information">Received updated but unknown identity information. Tap to validate identity.</string> <string name="SmsMessageRecord_received_updated_but_unknown_identity_information">Received updated but unknown identity information. Tap to validate identity.</string>
<string name="SmsMessageRecord_secure_session_ended">Secure session ended.</string>
<!-- ThreadRecord -->
<string name="ThreadRecord_left_the_group">Left the group...</string>
<string name="TheadRecord_secure_session_ended">Secure session ended.</string>
<!-- VerifyIdentityActivity --> <!-- VerifyIdentityActivity -->
<string name="VerifyIdentityActivity_you_do_not_have_an_identity_key">You do not have an identity key.</string> <string name="VerifyIdentityActivity_you_do_not_have_an_identity_key">You do not have an identity key.</string>
@ -758,6 +762,7 @@
<!-- verify_keys --> <!-- verify_keys -->
<string name="verify_keys__menu_verified">Verified</string> <string name="verify_keys__menu_verified">Verified</string>
<!-- EOF --> <!-- EOF -->
</resources> </resources>

@ -80,8 +80,7 @@ public class SmsMessageRecord extends MessageRecord {
} else if (!getBody().isPlaintext()) { } else if (!getBody().isPlaintext()) {
return emphasisAdded(context.getString(R.string.MessageNotifier_encrypted_message)); return emphasisAdded(context.getString(R.string.MessageNotifier_encrypted_message));
} else if (SmsDatabase.Types.isEndSessionType(type)) { } else if (SmsDatabase.Types.isEndSessionType(type)) {
// TODO jake is going to fix this up return emphasisAdded(context.getString(R.string.SmsMessageRecord_secure_session_ended));
return new SpannableString("Session closed!");
} else if (isOutgoing() && Tag.isTagged(getBody().getBody())) { } else if (isOutgoing() && Tag.isTagged(getBody().getBody())) {
return new SpannableString(Tag.stripTag(getBody().getBody())); return new SpannableString(Tag.stripTag(getBody().getBody()));
} else { } else {

@ -53,13 +53,12 @@ public class ThreadRecord extends DisplayRecord {
@Override @Override
public SpannableString getDisplayBody() { public SpannableString getDisplayBody() {
// TODO jake is going to fill these in
if (SmsDatabase.Types.isDecryptInProgressType(type)) { if (SmsDatabase.Types.isDecryptInProgressType(type)) {
return emphasisAdded(context.getString(R.string.MessageDisplayHelper_decrypting_please_wait)); return emphasisAdded(context.getString(R.string.MessageDisplayHelper_decrypting_please_wait));
} else if (isGroupUpdate()) { } else if (isGroupUpdate()) {
return emphasisAdded(GroupUtil.getDescription(getBody().getBody())); return emphasisAdded(GroupUtil.getDescription(getBody().getBody()));
} else if (isGroupQuit()) { } else if (isGroupQuit()) {
return emphasisAdded("Someone left the group."); return emphasisAdded(context.getString(R.string.ThreadRecord_left_the_group));
} else if (isKeyExchange()) { } else if (isKeyExchange()) {
return emphasisAdded(context.getString(R.string.ConversationListItem_key_exchange_message)); return emphasisAdded(context.getString(R.string.ConversationListItem_key_exchange_message));
} else if (SmsDatabase.Types.isFailedDecryptType(type)) { } else if (SmsDatabase.Types.isFailedDecryptType(type)) {
@ -69,8 +68,7 @@ public class ThreadRecord extends DisplayRecord {
} else if (!getBody().isPlaintext()) { } else if (!getBody().isPlaintext()) {
return emphasisAdded(context.getString(R.string.MessageNotifier_encrypted_message)); return emphasisAdded(context.getString(R.string.MessageNotifier_encrypted_message));
} else if (SmsDatabase.Types.isEndSessionType(type)) { } else if (SmsDatabase.Types.isEndSessionType(type)) {
// TODO jake is going to fix this up return emphasisAdded(context.getString(R.string.TheadRecord_secure_session_ended));
return emphasisAdded("Session closed!");
} else { } else {
if (Util.isEmpty(getBody().getBody())) { if (Util.isEmpty(getBody().getBody())) {
return new SpannableString(context.getString(R.string.MessageNotifier_no_subject)); return new SpannableString(context.getString(R.string.MessageNotifier_no_subject));

Loading…
Cancel
Save