Add learn more to string resources

This commit is contained in:
ariskotsomitopoulos 2022-04-05 13:36:44 +03:00
parent 2bb6e77be0
commit 7662abc5f7
2 changed files with 3 additions and 1 deletions

View file

@ -54,7 +54,8 @@ class ThreadsManager @Inject constructor(
* Generates and return an Html spanned string to be rendered especially in dialogs
*/
fun getBetaEnableThreadsMessage(): Spanned {
val href = "<a href='$learnMoreUrl'>Learn more</a>.<br><br>"
val learnMore = context.getString(R.string.action_learn_more)
val href = "<a href='$learnMoreUrl'>$learnMore</a>.<br><br>"
val message = context.getString(R.string.threads_beta_enable_notice_message, href)
return HtmlCompat.fromHtml(message, HtmlCompat.FROM_HTML_MODE_LEGACY)
}

View file

@ -385,6 +385,7 @@
<string name="action_play">Play</string>
<string name="action_dismiss">Dismiss</string>
<string name="action_reset">Reset</string>
<string name="action_learn_more">Learn more</string>
<string name="copied_to_clipboard">Copied to clipboard</string>