summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-06-08 16:50:13 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-06-09 10:20:21 +0200
commite2fe2bdaa7c44c90998f42bb8ff6b21a3446e891 (patch)
tree29493f2c16feb7f7347cfc0fc781d08af984cfd2 /android
parentf9a150314af8476f42da63bea9e943bc89eab3d4 (diff)
downloadmullvadvpn-e2fe2bdaa7c44c90998f42bb8ff6b21a3446e891.tar.xz
mullvadvpn-e2fe2bdaa7c44c90998f42bb8ff6b21a3446e891.zip
Fix vpn settings subtitles
- Replace HtmlText for custom dns subtitle with annotated string - Use correct text style for custom dns subtitle - Use extra bold instead of bold for emphasized words - Fix magic numbers in expandable compose cell
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/ExpandableComposeCell.kt53
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/SwitchComposeCell.kt18
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/extensions/SpannedExtensions.kt26
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/theme/dimensions/Dimensions.kt1
-rw-r--r--android/app/src/main/res/values-da/strings.xml1
-rw-r--r--android/app/src/main/res/values-de/strings.xml1
-rw-r--r--android/app/src/main/res/values-es/strings.xml1
-rw-r--r--android/app/src/main/res/values-fi/strings.xml1
-rw-r--r--android/app/src/main/res/values-fr/strings.xml1
-rw-r--r--android/app/src/main/res/values-it/strings.xml1
-rw-r--r--android/app/src/main/res/values-ja/strings.xml1
-rw-r--r--android/app/src/main/res/values-ko/strings.xml1
-rw-r--r--android/app/src/main/res/values-my/strings.xml1
-rw-r--r--android/app/src/main/res/values-nb/strings.xml1
-rw-r--r--android/app/src/main/res/values-nl/strings.xml1
-rw-r--r--android/app/src/main/res/values-pl/strings.xml1
-rw-r--r--android/app/src/main/res/values-pt/strings.xml1
-rw-r--r--android/app/src/main/res/values-ru/strings.xml1
-rw-r--r--android/app/src/main/res/values-sv/strings.xml1
-rw-r--r--android/app/src/main/res/values-th/strings.xml1
-rw-r--r--android/app/src/main/res/values-tr/strings.xml1
-rw-r--r--android/app/src/main/res/values-zh-rCN/strings.xml1
-rw-r--r--android/app/src/main/res/values-zh-rTW/strings.xml1
-rw-r--r--android/app/src/main/res/values/strings.xml2
24 files changed, 53 insertions, 66 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/ExpandableComposeCell.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/ExpandableComposeCell.kt
index 8e73679652..4b170a39d7 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/ExpandableComposeCell.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/ExpandableComposeCell.kt
@@ -7,35 +7,37 @@ import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.material.Icon
import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
-import androidx.compose.ui.graphics.toArgb
-import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
-import androidx.compose.ui.unit.dp
+import androidx.core.text.HtmlCompat
import net.mullvad.mullvadvpn.R
import net.mullvad.mullvadvpn.compose.component.ChevronView
-import net.mullvad.mullvadvpn.compose.component.HtmlText
import net.mullvad.mullvadvpn.compose.component.textResource
+import net.mullvad.mullvadvpn.compose.extensions.toAnnotatedString
import net.mullvad.mullvadvpn.compose.theme.AlphaInactive
import net.mullvad.mullvadvpn.compose.theme.AlphaVisible
-import net.mullvad.mullvadvpn.compose.theme.MullvadWhite
-import net.mullvad.mullvadvpn.compose.theme.MullvadWhite60
+import net.mullvad.mullvadvpn.compose.theme.AppTheme
+import net.mullvad.mullvadvpn.compose.theme.Dimens
@Preview
@Composable
private fun PreviewExpandedEnabledExpandableComposeCell() {
- ExpandableComposeCell(
- title = "Expandable row title",
- isExpanded = true,
- isEnabled = true,
- onCellClicked = {},
- onInfoClicked = {}
- )
+ AppTheme {
+ ExpandableComposeCell(
+ title = "Expandable row title",
+ isExpanded = true,
+ isEnabled = true,
+ onCellClicked = {},
+ onInfoClicked = {}
+ )
+ }
}
@Composable
@@ -74,8 +76,6 @@ private fun ExpandableComposeCellBody(
modifier: Modifier,
onInfoClicked: (() -> Unit)? = null
) {
- val horizontalPadding = dimensionResource(id = R.dimen.medium_padding)
- val verticalPadding = 13.dp
Row(
modifier = modifier.wrapContentWidth().wrapContentHeight(),
verticalAlignment = Alignment.CenterVertically
@@ -85,15 +85,15 @@ private fun ExpandableComposeCellBody(
modifier =
Modifier.clickable { onInfoClicked() }
.padding(
- start = horizontalPadding,
- end = horizontalPadding,
- top = verticalPadding,
- bottom = verticalPadding
+ start = Dimens.mediumPadding,
+ end = Dimens.mediumPadding,
+ top = Dimens.infoButtonVerticalPadding,
+ bottom = Dimens.infoButtonVerticalPadding
)
.align(Alignment.CenterVertically),
painter = painterResource(id = R.drawable.icon_info),
contentDescription = null,
- tint = MullvadWhite
+ tint = MaterialTheme.colorScheme.onPrimary
)
}
@@ -103,16 +103,17 @@ private fun ExpandableComposeCellBody(
@Composable
fun ContentBlockersDisableModeCellSubtitle(modifier: Modifier) {
- val textSize = dimensionResource(id = R.dimen.text_small).value
-
- HtmlText(
- htmlFormattedString =
+ val spanned =
+ HtmlCompat.fromHtml(
textResource(
id = R.string.dns_content_blockers_subtitle,
stringResource(id = R.string.enable_custom_dns)
),
- textSize = textSize,
- textColor = MullvadWhite60.toArgb(),
+ HtmlCompat.FROM_HTML_MODE_COMPACT
+ )
+ Text(
+ text = spanned.toAnnotatedString(boldFontWeight = FontWeight.ExtraBold),
+ style = MaterialTheme.typography.labelMedium,
modifier = modifier
)
}
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/SwitchComposeCell.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/SwitchComposeCell.kt
index 531af3ef46..9c81d24b39 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/SwitchComposeCell.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/SwitchComposeCell.kt
@@ -13,6 +13,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
+import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
@@ -180,17 +181,18 @@ fun SwitchCellView(
fun CustomDnsCellSubtitle(isCellClickable: Boolean, modifier: Modifier) {
val spanned =
HtmlCompat.fromHtml(
- textResource(
- if (isCellClickable) {
- R.string.custom_dns_footer
- } else {
- R.string.custom_dns_disable_mode_subtitle
- }
- ),
+ if (isCellClickable) {
+ textResource(id = R.string.custom_dns_footer)
+ } else {
+ textResource(
+ id = R.string.custom_dns_disable_mode_subtitle,
+ textResource(id = R.string.dns_content_blockers_title)
+ )
+ },
FROM_HTML_MODE_COMPACT
)
Text(
- text = spanned.toAnnotatedString(),
+ text = spanned.toAnnotatedString(boldFontWeight = FontWeight.ExtraBold),
style = MaterialTheme.typography.labelMedium,
color = MaterialTheme.colorScheme.onSecondary,
modifier = modifier
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/extensions/SpannedExtensions.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/extensions/SpannedExtensions.kt
index dfc2cf117c..d5cdaf0f88 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/extensions/SpannedExtensions.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/extensions/SpannedExtensions.kt
@@ -8,17 +8,19 @@ import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.font.FontWeight
-fun Spanned.toAnnotatedString(): AnnotatedString = buildAnnotatedString {
- val spanned = this@toAnnotatedString
- append(spanned.toString())
- getSpans(0, spanned.length, Any::class.java).forEach { span ->
- val start = getSpanStart(span)
- val end = getSpanEnd(span)
- when (span) {
- is StyleSpan ->
- when (span.style) {
- Typeface.BOLD -> addStyle(SpanStyle(fontWeight = FontWeight.Bold), start, end)
- }
+fun Spanned.toAnnotatedString(boldFontWeight: FontWeight = FontWeight.Bold): AnnotatedString =
+ buildAnnotatedString {
+ val spanned = this@toAnnotatedString
+ append(spanned.toString())
+ getSpans(0, spanned.length, Any::class.java).forEach { span ->
+ val start = getSpanStart(span)
+ val end = getSpanEnd(span)
+ when (span) {
+ is StyleSpan ->
+ when (span.style) {
+ Typeface.BOLD ->
+ addStyle(SpanStyle(fontWeight = boldFontWeight), start, end)
+ }
+ }
}
}
-}
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/theme/dimensions/Dimensions.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/theme/dimensions/Dimensions.kt
index a4bcf31a14..e84350b987 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/theme/dimensions/Dimensions.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/theme/dimensions/Dimensions.kt
@@ -10,6 +10,7 @@ data class Dimensions(
val cellLabelVerticalPadding: Dp = 14.dp,
val cellStartPadding: Dp = 22.dp,
val indentedCellStartPadding: Dp = 38.dp,
+ val infoButtonVerticalPadding: Dp = 13.dp,
val listIconSize: Dp = 24.dp,
val listItemDivider: Dp = 1.dp,
val listItemHeight: Dp = 50.dp,
diff --git a/android/app/src/main/res/values-da/strings.xml b/android/app/src/main/res/values-da/strings.xml
index 63f3a629c3..dd7ec44a10 100644
--- a/android/app/src/main/res/values-da/strings.xml
+++ b/android/app/src/main/res/values-da/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Opretter konto...</string>
<string name="creating_secure_connection">OPRETTER SIKKER FORBINDELSE</string>
<string name="critical_error">Kritisk fejl (som kræver din opmærksomhed)</string>
- <string name="custom_dns_disable_mode_subtitle">Deaktiver alle &lt;b&gt;DNS-indholdsblokkere&lt;/b&gt; ovenfor for at aktivere denne indstilling.</string>
<string name="custom_dns_footer">Aktiver for at tilføje mindst én DNS-server.</string>
<string name="custom_dns_hint">Indtast IP</string>
<string name="custom_tunnel_host_resolution_error">Kunne ikke fortolke værten for den tilpassede tunnel. Prøv at ændre dine indstillinger.</string>
diff --git a/android/app/src/main/res/values-de/strings.xml b/android/app/src/main/res/values-de/strings.xml
index 9d1bc50b71..37ce12e8f1 100644
--- a/android/app/src/main/res/values-de/strings.xml
+++ b/android/app/src/main/res/values-de/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Konto wird erstellt ...</string>
<string name="creating_secure_connection">SICHERE VERBINDUNG WIRD ERSTELLT</string>
<string name="critical_error">Kritischer Fehler (Ihre Aufmerksamkeit ist erforderlich)</string>
- <string name="custom_dns_disable_mode_subtitle">Deaktivieren Sie oben alle &lt;b&gt;DNS-Inhaltssperren&lt;/b&gt;, um diese Einstellung zu aktivieren.</string>
<string name="custom_dns_footer">Aktivieren, um mindestens einen DNS-Server hinzuzufügen.</string>
<string name="custom_dns_hint">IP eingeben</string>
<string name="custom_tunnel_host_resolution_error">Der Host des benutzerdefinierten Tunnels konnte nicht aufgelöst werden. Versuchen Sie, Ihre Einstellungen zu ändern.</string>
diff --git a/android/app/src/main/res/values-es/strings.xml b/android/app/src/main/res/values-es/strings.xml
index 37b1df03c2..4448f3f3ed 100644
--- a/android/app/src/main/res/values-es/strings.xml
+++ b/android/app/src/main/res/values-es/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Creando cuenta…</string>
<string name="creating_secure_connection">CREANDO CONEXIÓN SEGURA</string>
<string name="critical_error">Error crítico (precisa su atención)</string>
- <string name="custom_dns_disable_mode_subtitle">Deshabilite todos los &lt;b&gt;bloqueadores de contenido DNS&lt;/b&gt; de arriba para activar este ajuste.</string>
<string name="custom_dns_footer">Active esta opción para agregar como mínimo un servidor DNS.</string>
<string name="custom_dns_hint">Escriba la IP</string>
<string name="custom_tunnel_host_resolution_error">No se puede resolver el host del túnel personalizado. Pruebe a cambiar la configuración.</string>
diff --git a/android/app/src/main/res/values-fi/strings.xml b/android/app/src/main/res/values-fi/strings.xml
index 15c3f42172..4f01512c6a 100644
--- a/android/app/src/main/res/values-fi/strings.xml
+++ b/android/app/src/main/res/values-fi/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Luodaan tiliä...</string>
<string name="creating_secure_connection">LUODAAN SUOJATTU YHTEYS</string>
<string name="critical_error">Vakava virhe (vaatii huomiotasi)</string>
- <string name="custom_dns_disable_mode_subtitle">Voit ottaa asetuksen käyttöön poistamalla ensin kaikki &lt;b&gt;DNS-sisällönestotoiminnot&lt;/b&gt; käytöstä yltä.</string>
<string name="custom_dns_footer">Ota käyttöön lisätäksesi vähintään yhden DNS-palvelimen.</string>
<string name="custom_dns_hint">Anna IP-osoite</string>
<string name="custom_tunnel_host_resolution_error">Muokatun tunnelin isännän selvittäminen ei onnistu. Kokeile muuttaa asetuksiasi.</string>
diff --git a/android/app/src/main/res/values-fr/strings.xml b/android/app/src/main/res/values-fr/strings.xml
index 0b3be49312..b98c506d3e 100644
--- a/android/app/src/main/res/values-fr/strings.xml
+++ b/android/app/src/main/res/values-fr/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Création du compte…</string>
<string name="creating_secure_connection">CRÉATION D\'UNE CONNEXION SÉCURISÉE</string>
<string name="critical_error">Erreur critique (votre attention est requise)</string>
- <string name="custom_dns_disable_mode_subtitle">Désactivez tous les &lt;b&gt;bloqueurs de contenu DNS&lt;/b&gt; pour activer ce paramètre.</string>
<string name="custom_dns_footer">Activez pour ajouter au moins un serveur DNS.</string>
<string name="custom_dns_hint">Saisir l\'IP</string>
<string name="custom_tunnel_host_resolution_error">Échec de la résolution de l\'hôte du tunnel personnalisé. Essayez de modifier vos paramètres.</string>
diff --git a/android/app/src/main/res/values-it/strings.xml b/android/app/src/main/res/values-it/strings.xml
index dbedbbdf4c..c4443b27b9 100644
--- a/android/app/src/main/res/values-it/strings.xml
+++ b/android/app/src/main/res/values-it/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Creazione account...</string>
<string name="creating_secure_connection">CREAZIONE CONNESSIONE PROTETTA</string>
<string name="critical_error">Errore critico (è necessario intervenire)</string>
- <string name="custom_dns_disable_mode_subtitle">Disabilita tutti i &lt;b&gt;blocchi dei contenuti DNS&lt;/b&gt; per attivare questa impostazione.</string>
<string name="custom_dns_footer">Abilita per aggiungere almeno un server DNS.</string>
<string name="custom_dns_hint">Inserisci IP</string>
<string name="custom_tunnel_host_resolution_error">Impossibile risolvere l\'host del tunnel personalizzato. Prova a modificare le impostazioni.</string>
diff --git a/android/app/src/main/res/values-ja/strings.xml b/android/app/src/main/res/values-ja/strings.xml
index 116b275296..99ab979920 100644
--- a/android/app/src/main/res/values-ja/strings.xml
+++ b/android/app/src/main/res/values-ja/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">アカウントを作成中...</string>
<string name="creating_secure_connection">セキュリティ保護接続を確立中</string>
<string name="critical_error">重大なエラー (ご注意ください)</string>
- <string name="custom_dns_disable_mode_subtitle">この設定を有効にするには、すべての&lt;b&gt;DNSコンテンツブロッカー&lt;/b&gt;を無効にしてください。</string>
<string name="custom_dns_footer">1つ以上のDNSサーバーを追加するには有効にしてください。</string>
<string name="custom_dns_hint">IPを入力</string>
<string name="custom_tunnel_host_resolution_error">カスタムトンネルのホストを解決できません。設定を変更してみてください。</string>
diff --git a/android/app/src/main/res/values-ko/strings.xml b/android/app/src/main/res/values-ko/strings.xml
index 1873e1ad5c..fc185459ef 100644
--- a/android/app/src/main/res/values-ko/strings.xml
+++ b/android/app/src/main/res/values-ko/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">계정 생성 중...</string>
<string name="creating_secure_connection">보안 연결 생성 중</string>
<string name="critical_error">심각한 오류(주의가 필요함)</string>
- <string name="custom_dns_disable_mode_subtitle">이 설정을 활성화하려면 위의 모든 &lt;b&gt;DNS 콘텐츠 차단기&lt;/b&gt;를 비활성화하세요.</string>
<string name="custom_dns_footer">하나 이상의 DNS 서버를 추가하려면 활성화합니다.</string>
<string name="custom_dns_hint">IP 입력</string>
<string name="custom_tunnel_host_resolution_error">사용자 지정 터널의 호스트를 확인할 수 없습니다. 설정을 변경해 보세요.</string>
diff --git a/android/app/src/main/res/values-my/strings.xml b/android/app/src/main/res/values-my/strings.xml
index 723c02d895..4a47e4c338 100644
--- a/android/app/src/main/res/values-my/strings.xml
+++ b/android/app/src/main/res/values-my/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">အကောင့် ဖန်တီးနေဆဲ...</string>
<string name="creating_secure_connection">လုံခြုံသည့် ချိတ်ဆက်မှုကို ဖန်တီးနေပါသည်</string>
<string name="critical_error">အလွန်အရေးပါသည့် ချို့ယွင်းချက် (သင့်အာရုံစိုက်မှု လိုအပ်ပါသည်)</string>
- <string name="custom_dns_disable_mode_subtitle">ဤဆက်တင်ကို သက်ဝင်လုပ်ဆောင်ရန် အထက်ပါ &lt;b&gt;DNS content blockers&lt;/b&gt; အားလုံးကို ပိတ်ပါ။</string>
<string name="custom_dns_footer">အနည်းဆုံး DNS ဆာဗာတစ်ခုကို ပေါင်းထည့်ပါ။</string>
<string name="custom_dns_hint">IP ဖြည့်ပါ</string>
<string name="custom_tunnel_host_resolution_error">စိတ်ကြိုက်ပြုလုပ်ထားသည့် Tunnel ၏ Host ကို ဖြေရှင်း၍ မရနိုင်ပါ။ သင့်ဆက်တင်ကို ပြောင်းကြည့်ပါ။</string>
diff --git a/android/app/src/main/res/values-nb/strings.xml b/android/app/src/main/res/values-nb/strings.xml
index e34461e9fe..9be2f59d79 100644
--- a/android/app/src/main/res/values-nb/strings.xml
+++ b/android/app/src/main/res/values-nb/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Oppretter konto ...</string>
<string name="creating_secure_connection">OPPRETTER SIKKER TILKOBLING</string>
<string name="critical_error">Kritisk feil (krever din oppmerksomhet)</string>
- <string name="custom_dns_disable_mode_subtitle">Deaktiver all &lt;b&gt;DNS-innholdsblokkering&lt;/b&gt; over for å aktivere innstillingen.</string>
<string name="custom_dns_footer">Aktiver for å legge til minst én DNS-server.</string>
<string name="custom_dns_hint">Angi IP</string>
<string name="custom_tunnel_host_resolution_error">Kunne ikke løse vert for egendefinert tunnel. Forsøk å endre innstillingene dine.</string>
diff --git a/android/app/src/main/res/values-nl/strings.xml b/android/app/src/main/res/values-nl/strings.xml
index f4dd965965..954d230468 100644
--- a/android/app/src/main/res/values-nl/strings.xml
+++ b/android/app/src/main/res/values-nl/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Account aanmaken...</string>
<string name="creating_secure_connection">BEVEILIGDE VERBINDING AANMAKEN</string>
<string name="critical_error">Kritieke fout (uw aandacht is vereist)</string>
- <string name="custom_dns_disable_mode_subtitle">Schakel alle &lt;b&gt;DNS-contentblokkeringen&lt;/b&gt; hierboven uit om deze instelling te activeren.</string>
<string name="custom_dns_footer">Schakel in om minimaal één DNS-server toe te voegen.</string>
<string name="custom_dns_hint">Voer IP-adres in</string>
<string name="custom_tunnel_host_resolution_error">Kan host van aangepaste tunnel niet omzetten. Probeer uw instellingen te wijzigen.</string>
diff --git a/android/app/src/main/res/values-pl/strings.xml b/android/app/src/main/res/values-pl/strings.xml
index 8c113b18a1..2d4d326038 100644
--- a/android/app/src/main/res/values-pl/strings.xml
+++ b/android/app/src/main/res/values-pl/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Tworzenie konta...</string>
<string name="creating_secure_connection">TWORZENIE BEZPIECZNEGO POŁĄCZENIA</string>
<string name="critical_error">Błąd krytyczny (wymagana uwaga)</string>
- <string name="custom_dns_disable_mode_subtitle">Aby to aktywować to ustawienie, wyłącz wszystkie &lt;b&gt;funkcje blokowania treści DNS&lt;/b&gt;.</string>
<string name="custom_dns_footer">Włącz, aby dodać co najmniej jeden serwer DNS.</string>
<string name="custom_dns_hint">Wprowadź adres IP</string>
<string name="custom_tunnel_host_resolution_error">Nie można rozpoznać hosta tunelu niestandardowego. Spróbuj zmienić ustawienia.</string>
diff --git a/android/app/src/main/res/values-pt/strings.xml b/android/app/src/main/res/values-pt/strings.xml
index db6f94a3ac..d8203a598d 100644
--- a/android/app/src/main/res/values-pt/strings.xml
+++ b/android/app/src/main/res/values-pt/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">A criar conta...</string>
<string name="creating_secure_connection">A CRIAR LIGAÇÃO SEGURA</string>
<string name="critical_error">Erro crítico (é necessária a sua atenção)</string>
- <string name="custom_dns_disable_mode_subtitle">Desative todos os &lt;b&gt;bloqueadores de conteúdo de DNS&lt;/b&gt; acima para ativar esta definição.</string>
<string name="custom_dns_footer">Ativar para adicionar pelo menos um servidor DNS.</string>
<string name="custom_dns_hint">Introduzir IP</string>
<string name="custom_tunnel_host_resolution_error">Não foi possível resolver o anfitrião do túnel personalizado. Experimente alterar as suas definições.</string>
diff --git a/android/app/src/main/res/values-ru/strings.xml b/android/app/src/main/res/values-ru/strings.xml
index 4d66b6d7d7..596b7aa536 100644
--- a/android/app/src/main/res/values-ru/strings.xml
+++ b/android/app/src/main/res/values-ru/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Создание учетной записи...</string>
<string name="creating_secure_connection">СОЗДАНИЕ ЗАЩИЩЕННОГО ПОДКЛЮЧЕНИЯ</string>
<string name="critical_error">Критическая ошибка (требуется ваше участие)</string>
- <string name="custom_dns_disable_mode_subtitle">Чтобы активировать эту опцию, отключите все &lt;b&gt;DNS-блокировщики контента&lt;/b&gt;.</string>
<string name="custom_dns_footer">Чтобы добавить как минимум один DNS-сервер, включите этот параметр.</string>
<string name="custom_dns_hint">Введите IP-адрес</string>
<string name="custom_tunnel_host_resolution_error">Не удалось преобразовать имя узла пользовательского туннеля. Попробуйте изменить настройки.</string>
diff --git a/android/app/src/main/res/values-sv/strings.xml b/android/app/src/main/res/values-sv/strings.xml
index 3c67c18182..176bcc5ffd 100644
--- a/android/app/src/main/res/values-sv/strings.xml
+++ b/android/app/src/main/res/values-sv/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Skapar konto...</string>
<string name="creating_secure_connection">SKAPAR SÄKER ANSLUTNING</string>
<string name="critical_error">Kritiskt fel (kräver din uppmärksamhet)</string>
- <string name="custom_dns_disable_mode_subtitle">Inaktivera alla &lt;b&gt;DNS-innehållsblockerare&lt;/b&gt; ovan för att aktivera den här inställningen.</string>
<string name="custom_dns_footer">Aktivera för att lägga till minst en DNS-server.</string>
<string name="custom_dns_hint">Ange IP</string>
<string name="custom_tunnel_host_resolution_error">Det går inte att lösa värd för anpassad tunnel. Försök att ändra inställningarna.</string>
diff --git a/android/app/src/main/res/values-th/strings.xml b/android/app/src/main/res/values-th/strings.xml
index 76589253a1..665f4519f9 100644
--- a/android/app/src/main/res/values-th/strings.xml
+++ b/android/app/src/main/res/values-th/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">กำลังสร้างบัญชี...</string>
<string name="creating_secure_connection">กำลังสร้างการเชื่อมต่อที่ปลอดภัย</string>
<string name="critical_error">ข้อผิดพลาดร้ายแรง (คุณจำเป็นต้องตรวจสอบ)</string>
- <string name="custom_dns_disable_mode_subtitle">ปิดใช้งาน&lt;b&gt;ตัวบล็อกเนื้อหา DNS&lt;/b&gt; ทั้งหมดด้านบน เพื่อเปิดใช้งานการตั้งค่านี้</string>
<string name="custom_dns_footer">เปิดเพื่อเพิ่มเซิร์ฟเวอร์ DNS อย่างน้อยหนึ่งรายการ</string>
<string name="custom_dns_hint">ป้อน IP</string>
<string name="custom_tunnel_host_resolution_error">ไม่พบโฮสต์ของช่องทางแบบกำหนดเอง กรุณาลองเปลี่ยนการตั้งค่าของคุณ</string>
diff --git a/android/app/src/main/res/values-tr/strings.xml b/android/app/src/main/res/values-tr/strings.xml
index 7900d1b2fb..1dc7f45408 100644
--- a/android/app/src/main/res/values-tr/strings.xml
+++ b/android/app/src/main/res/values-tr/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">Hesap oluşturuluyor...</string>
<string name="creating_secure_connection">GÜVENLİ BAĞLANTI OLUŞTURULUYOR</string>
<string name="critical_error">Kritik hata (Lütfen dikkatli olun)</string>
- <string name="custom_dns_disable_mode_subtitle">Bu ayarı etkinleştirmek için yukarıdaki tüm &lt;b&gt;DNS içerik engelleyicileri&lt;/b&gt; devre dışı bırakın.</string>
<string name="custom_dns_footer">En az bir DNS sunucusu eklemek için etkinleştirin.</string>
<string name="custom_dns_hint">IP\'yi girin</string>
<string name="custom_tunnel_host_resolution_error">Özel tünel ana bilgisayarı çözülemedi. Ayarlarınızı değiştirmeyi deneyin.</string>
diff --git a/android/app/src/main/res/values-zh-rCN/strings.xml b/android/app/src/main/res/values-zh-rCN/strings.xml
index 04dc84cfb5..a64aac7c71 100644
--- a/android/app/src/main/res/values-zh-rCN/strings.xml
+++ b/android/app/src/main/res/values-zh-rCN/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">正在创建帐户…</string>
<string name="creating_secure_connection">正在创建安全连接</string>
<string name="critical_error">严重错误(需要注意)</string>
- <string name="custom_dns_disable_mode_subtitle">禁用上方的所有 &lt;b&gt;DNS 内容阻止程序&lt;/b&gt;以激活此设置。</string>
<string name="custom_dns_footer">启用以添加至少一个 DNS 服务器。</string>
<string name="custom_dns_hint">输入 IP</string>
<string name="custom_tunnel_host_resolution_error">无法解析自定义隧道的主机。请尝试更改您的设置。</string>
diff --git a/android/app/src/main/res/values-zh-rTW/strings.xml b/android/app/src/main/res/values-zh-rTW/strings.xml
index 67e3101b79..1a3b8966dc 100644
--- a/android/app/src/main/res/values-zh-rTW/strings.xml
+++ b/android/app/src/main/res/values-zh-rTW/strings.xml
@@ -46,7 +46,6 @@
<string name="creating_new_account">正在建立帳戶…</string>
<string name="creating_secure_connection">建立安全連線</string>
<string name="critical_error">嚴重錯誤 (需注意)</string>
- <string name="custom_dns_disable_mode_subtitle">停用上方所有 &lt;b&gt;DNS 內容封鎖程式&lt;/b&gt;,以便啟動此設定。</string>
<string name="custom_dns_footer">啟用以新增至少一個 DNS 伺服器。</string>
<string name="custom_dns_hint">輸入 IP</string>
<string name="custom_tunnel_host_resolution_error">無法解析自訂通道的主機。請嘗試變更您的設定。</string>
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
index e6cb2f84ce..d4d506173c 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -182,7 +182,7 @@
<![CDATA[Disable <b>%s</b> below to activate these settings.]]>
</string>
<string name="custom_dns_disable_mode_subtitle">
- <![CDATA[Disable all <b>DNS content blockers</b> above to activate this setting.]]>
+ <![CDATA[Disable all <b>%s</b> above to activate this setting.]]>
</string>
<string name="settings_changes_effect_warning_short">DNS settings might not go into effect immediately</string>
<string name="settings_changes_effect_warning_content_blocker">Changes to DNS related settings might not go into effect immediately due to cached results.</string>