diff --git a/res/values/strings.xml b/res/values/strings.xml index cf6bd55c84..9b270122aa 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -664,6 +664,7 @@ Send Signal message Send unsecured SMS Send unsecured MMS + From %1$s Send Remove Conversation with %1$s diff --git a/src/org/thoughtcrime/securesms/components/ComposeText.java b/src/org/thoughtcrime/securesms/components/ComposeText.java index b83e9c0c86..1a02569c8e 100644 --- a/src/org/thoughtcrime/securesms/components/ComposeText.java +++ b/src/org/thoughtcrime/securesms/components/ComposeText.java @@ -11,6 +11,7 @@ import android.text.TextUtils.TruncateAt; import android.util.AttributeSet; import android.view.inputmethod.EditorInfo; +import org.thoughtcrime.securesms.R; import org.thoughtcrime.securesms.TransportOption; import org.thoughtcrime.securesms.components.emoji.EmojiEditText; import org.thoughtcrime.securesms.util.TextSecurePreferences; @@ -104,6 +105,9 @@ public class ComposeText extends EmojiEditText { setInputType(inputType); setImeOptions(imeOptions); - setHint(transport.getComposeHint(), transport.getSimName().isPresent() ? "From " + transport.getSimName().get() : null); + setHint(transport.getComposeHint(), + transport.getSimName().isPresent() + ? getContext().getString(R.string.conversation_activity__from_sim_name, transport.getSimName().get()) + : null); } }