Skip to content

Commit

Permalink
Use separate link text for JP/WP feedback form (#21619)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury authored Jan 28, 2025
1 parent ad783d2 commit 4f60a0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import androidx.compose.ui.text.withLink
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import kotlinx.coroutines.flow.MutableStateFlow
import org.wordpress.android.BuildConfig
import org.wordpress.android.R
import org.wordpress.android.ui.compose.components.MediaUriPager
import org.wordpress.android.ui.compose.components.ProgressDialog
Expand Down Expand Up @@ -111,7 +112,11 @@ private fun MessageSection(
onMessageChanged: (String) -> Unit,
onSupportClick: () -> Unit
) {
val linkText = stringResource(id = R.string.feedback_form_note_link)
val linkText = if (BuildConfig.IS_JETPACK_APP) {
stringResource(id = R.string.feedback_form_note_link_jetpack)
} else {
stringResource(id = R.string.feedback_form_note_link_wordpress)
}
val linkAnnotation = LinkAnnotation.Url(
url = "support",
styles = TextLinkStyles(
Expand Down
5 changes: 3 additions & 2 deletions WordPress/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,9 @@
<string name="feedback_form_attachment_already_added">Attachment already added</string>
<string name="feedback_form_unable_to_create_tempfile">Unable to create temporary file</string>
<string name="feedback_form_add_attachments">Add attachments</string>
<string name="feedback_form_note_text">Please note this is not a support form, and we will not be able to reply. If you need support, please use our "</string>
<string name="feedback_form_note_link">Contact Support screen.</string>
<string name="feedback_form_note_text">Please note this is not a support form, and we will not be able to reply. If you need assistance, please use our "</string>
<string name="feedback_form_note_link_jetpack">Contact Support screen.</string>
<string name="feedback_form_note_link_wordpress">community forums.</string>
<string name="media_pager_remove_item_content_description">Remove item %1$d</string>

<!-- activity log -->
Expand Down

0 comments on commit 4f60a0e

Please sign in to comment.