updated string.xml

This commit is contained in:
greenart7c3
2023-04-28 08:15:04 -03:00
parent 77a1b2ba89
commit 6285bfaae7
3 changed files with 11 additions and 5 deletions
@@ -277,7 +277,7 @@ fun ListContent(
onClick = { backupDialogOpen = true } onClick = { backupDialogOpen = true }
) )
var textTorProxy = if (checked) "Disable" else "Enable" var textTorProxy = if (checked) stringResource(R.string.disable) else stringResource(R.string.enable)
IconRow( IconRow(
title = "$textTorProxy Tor", title = "$textTorProxy Tor",
@@ -309,7 +309,7 @@ fun ListContent(
if (openDialog.value) { if (openDialog.value) {
AlertDialog( AlertDialog(
text = { Text(text = "Do you really want to disable tor?") }, text = { Text(text = stringResource(R.string.do_you_really_want_to_disable_tor)) },
onDismissRequest = { }, onDismissRequest = { },
confirmButton = { confirmButton = {
TextButton( TextButton(
@@ -319,7 +319,7 @@ fun ListContent(
enableTor(account, false, openDialog) enableTor(account, false, openDialog)
} }
) { ) {
Text(text = "Yes") Text(text = stringResource(R.string.yes))
} }
}, },
dismissButton = { dismissButton = {
@@ -328,7 +328,7 @@ fun ListContent(
openDialog.value = false openDialog.value = false
} }
) { ) {
Text(text = "No") Text(text = stringResource(R.string.no))
} }
} }
) )
@@ -228,7 +228,7 @@ fun LoginPage(
onCheckedChange = { useProxy.value = it } onCheckedChange = { useProxy.value = it }
) )
Text("Enable Tor") Text(stringResource(R.string.connect_via_tor))
} }
Spacer(modifier = Modifier.height(20.dp)) Spacer(modifier = Modifier.height(20.dp))
+6
View File
@@ -292,4 +292,10 @@
<string name="lightning_create_and_add_invoice">Create and Add</string> <string name="lightning_create_and_add_invoice">Create and Add</string>
<string name="poll_author_no_vote">Poll authors can\'t vote in their own polls.</string> <string name="poll_author_no_vote">Poll authors can\'t vote in their own polls.</string>
<string name="poll_hashtag" translatable="false">#zappoll</string> <string name="poll_hashtag" translatable="false">#zappoll</string>
<string name="connect_via_tor">Connect via Tor</string>
<string name="do_you_really_want_to_disable_tor">Do you really want to disable tor?</string>
<string name="disable">Disable</string>
<string name="enable">Enable</string>
<string name="yes">Yes</string>
<string name="no">No</string>
</resources> </resources>