diff --git a/app/src/main/java/org/thoughtcrime/securesms/calls/WebRtcCallActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/calls/WebRtcCallActivity.kt index 2e3fdbf4d7..03df07366d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/calls/WebRtcCallActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/calls/WebRtcCallActivity.kt @@ -17,6 +17,7 @@ import android.view.MenuItem import android.view.View import android.view.ViewOutlineProvider import android.view.WindowManager +import android.widget.TextView import androidx.activity.viewModels import androidx.core.content.ContextCompat import androidx.core.view.isVisible @@ -24,6 +25,7 @@ import androidx.lifecycle.lifecycleScope import androidx.localbroadcastmanager.content.LocalBroadcastManager import com.bumptech.glide.Glide import com.bumptech.glide.load.engine.DiskCacheStrategy +import com.squareup.phrase.Phrase import dagger.hilt.android.AndroidEntryPoint import kotlinx.coroutines.Job import kotlinx.coroutines.delay @@ -34,6 +36,7 @@ import network.loki.messenger.databinding.ActivityWebrtcBinding import org.apache.commons.lang3.time.DurationFormatUtils import org.session.libsession.avatars.ProfileContactPhoto import org.session.libsession.messaging.contacts.Contact +import org.session.libsession.utilities.StringSubstitutionConstants.APP_NAME_KEY import org.session.libsession.utilities.TextSecurePreferences import org.session.libsession.utilities.truncateIdForDisplay import org.session.libsignal.utilities.Log @@ -212,6 +215,11 @@ class WebRtcCallActivity : PassphraseRequiredActionBarActivity() { update() } } + + + // Substitute "Session" into the "{app_name} Call" text + val sessionCallTV = findViewById(R.id.sessionCallText) + sessionCallTV?.text = Phrase.from(this, R.string.callsSessionCall).put(APP_NAME_KEY, getString(R.string.app_name)).format() } /** diff --git a/libsession/src/main/res/values-fa-rIR/strings.xml b/libsession/src/main/res/values-fa-rIR/strings.xml index 005f2ea621..4e7b4fdedf 100644 --- a/libsession/src/main/res/values-fa-rIR/strings.xml +++ b/libsession/src/main/res/values-fa-rIR/strings.xml @@ -223,7 +223,6 @@ شما درخواست پیام جدیدی دارید در حال تماس... پایان تماس - تماس Session در حال اتصال دوباره... رد کردن رنگ اولیه diff --git a/libsession/src/main/res/values-fr-rFR/strings.xml b/libsession/src/main/res/values-fr-rFR/strings.xml index f052d9f4e1..6c008c7e40 100644 --- a/libsession/src/main/res/values-fr-rFR/strings.xml +++ b/libsession/src/main/res/values-fr-rFR/strings.xml @@ -232,7 +232,6 @@ Vous avez une nouvelle demande de message Appel en cours Raccrocher - Appel Session Reconnexion… Rejeter Couleur principale diff --git a/libsession/src/main/res/values-fr/strings.xml b/libsession/src/main/res/values-fr/strings.xml index 97f32f9320..8d2cab1b91 100644 --- a/libsession/src/main/res/values-fr/strings.xml +++ b/libsession/src/main/res/values-fr/strings.xml @@ -236,7 +236,6 @@ Vous avez une nouvelle demande de message Appel en cours Raccrocher - Appel Session Reconnexion… Rejeter Couleur principale diff --git a/libsession/src/main/res/values/strings.xml b/libsession/src/main/res/values/strings.xml index 9a8d90d848..f950bcef88 100644 --- a/libsession/src/main/res/values/strings.xml +++ b/libsession/src/main/res/values/strings.xml @@ -192,7 +192,7 @@ You can enable the \"Voice and Video Calls\" permission in Privacy Settings. Reconnecting… Ringing... - Session Call + {app_name} Call Calls (Beta) Voice and Video Calls Voice and Video Calls (Beta)