mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-12 11:37:52 +01:00
Fix string in regV5 captcha screen.
This commit is contained in:
committed by
Michelle Tang
parent
c7ac7087f7
commit
5a9cf128a0
+4
-2
@@ -29,10 +29,12 @@ import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.viewinterop.AndroidView
|
||||
import org.signal.core.ui.compose.AllDevicePreviews
|
||||
import org.signal.core.ui.compose.Previews
|
||||
import org.signal.registration.R
|
||||
|
||||
/**
|
||||
* Screen to display a captcha verification using a WebView.
|
||||
@@ -118,7 +120,7 @@ fun CaptchaScreen(
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
Text(
|
||||
text = "Failed to load captcha",
|
||||
text = stringResource(R.string.CaptchaScreen__failed_to_load_captcha),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
color = MaterialTheme.colorScheme.error
|
||||
)
|
||||
@@ -133,7 +135,7 @@ fun CaptchaScreen(
|
||||
.align(Alignment.CenterHorizontally)
|
||||
.padding(16.dp)
|
||||
) {
|
||||
Text("Cancel")
|
||||
Text(stringResource(R.string.CaptchaScreen__cancel))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -493,4 +493,8 @@
|
||||
<string name="PhoneNumberDiscoverabilityScreen__save">Save</string>
|
||||
<!-- Content description for the back arrow on the discoverability picker. -->
|
||||
<string name="PhoneNumberDiscoverabilityScreen__back">Back</string>
|
||||
<!-- Error message shown when the captcha fails to load. -->
|
||||
<string name="CaptchaScreen__failed_to_load_captcha">Failed to load captcha</string>
|
||||
<!-- Button to cancel out of the captcha screen. -->
|
||||
<string name="CaptchaScreen__cancel">Cancel</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user