pull/600/head
Arturo Mejia 3 years ago
parent 7e548348e3
commit d735df1dd6

@ -80,8 +80,9 @@ class StudiesView(
@VisibleForTesting
internal fun bindDescription() {
val sumoUrl = SupportUtils.getSumoURLForTopic(context, OPT_OUT_STUDIES)
val rawText =
context.getString(R.string.studies_description, sumoUrl)
val description = context.getString(R.string.studies_description)
val learnMore = context.getString(R.string.studies_learn_more)
val rawText = "$description <a href=\"$sumoUrl\">$learnMore</a>"
val text = HtmlCompat.fromHtml(rawText, HtmlCompat.FROM_HTML_MODE_COMPACT)
val spannableStringBuilder = SpannableStringBuilder(text)

@ -619,8 +619,10 @@
<string name="studies_remove">Remove</string>
<!-- Title of the active section on the studies list -->
<string name="studies_active">Active</string>
<!-- Description for studies, it indicates why Firefox use studies and links to an article for more information. The %1 will be replaced with the corresponding article URL -->
<string name="studies_description"><![CDATA[Firefox may install and run studies from time to time. <a href="%1$s">Learn more</a>]]></string>
<!-- Description for studies, it indicates why Firefox use studies -->
<string name="studies_description">Firefox may install and run studies from time to time.</string>
<!-- Learn more link for studies, links to an article for more information about studies. -->
<string name="studies_learn_more">Learn more</string>
<!-- Sessions -->
<!-- Title for the list of tabs -->

Loading…
Cancel
Save