Skip to content

Commit cab728b

Browse files
committed
Update WP blog title and url to news
1 parent 699a088 commit cab728b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

WordPress/src/main/java/org/wordpress/android/ui/about/UnifiedAboutViewModel.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class UnifiedAboutViewModel @Inject constructor(
5252
customItems = listOf(
5353
ItemConfig(
5454
name = BLOG_ITEM_NAME,
55-
title = contextProvider.getContext().getString(R.string.about_blog),
55+
title = blogTitle(),
5656
onClick = ::onBlogClick
5757
)
5858
),
@@ -100,6 +100,12 @@ class UnifiedAboutViewModel @Inject constructor(
100100
_onNavigation.postValue(Event(OpenBlog(if (buildConfig.isJetpackApp) JP_BLOG_URL else WP_BLOG_URL)))
101101
}
102102

103+
private fun blogTitle() = if (buildConfig.isJetpackApp) {
104+
contextProvider.getContext().getString(R.string.about_blog)
105+
} else {
106+
contextProvider.getContext().getString(R.string.about_news)
107+
}
108+
103109
private fun workWithUsTitle() = if (buildConfig.isJetpackApp) {
104110
contextProvider.getContext().getString(R.string.about_automattic_work_with_us_item_title)
105111
} else {
@@ -118,7 +124,7 @@ class UnifiedAboutViewModel @Inject constructor(
118124

119125
private const val WP_SOCIAL_HANDLE = "WPAndroid"
120126
private const val WP_APPS_URL = "https://apps.wordpress.com"
121-
private const val WP_BLOG_URL = "https://blog.wordpress.com"
127+
private const val WP_BLOG_URL = "https://wordpress.org/news/"
122128
private const val WP_CONTRIBUTE_URL = "https://make.wordpress.org/mobile/handbook/"
123129

124130
private const val JP_SOCIAL_HANDLE = "jetpack"

WordPress/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4057,6 +4057,7 @@ translators: %s: Select control option value e.g: "Auto, 25%". -->
40574057

40584058
<!-- About -->
40594059
<string name="about_blog">Blog</string>
4060+
<string name="about_news">News</string>
40604061
<string name="about_automattic_main_page_title" tools:ignore="UnusedResources" a8c-src-lib="about">About %1$s</string>
40614062
<string name="about_automattic_legal_page_title" tools:ignore="UnusedResources" a8c-src-lib="about">Legal and More</string>
40624063
<string name="about_automattic_acknowledgements_page_title" tools:ignore="UnusedResources" a8c-src-lib="about">Acknowledgements</string>

0 commit comments

Comments
 (0)