diff --git a/app/src/main/java/com/jerboa/ui/components/community/list/CommunityListActivity.kt b/app/src/main/java/com/jerboa/ui/components/community/list/CommunityListActivity.kt
index f98071e20..abb60f62a 100644
--- a/app/src/main/java/com/jerboa/ui/components/community/list/CommunityListActivity.kt
+++ b/app/src/main/java/com/jerboa/ui/components/community/list/CommunityListActivity.kt
@@ -22,7 +22,9 @@ import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
import androidx.navigation.NavController
+import com.jerboa.R
import com.jerboa.api.ApiState
import com.jerboa.db.AccountViewModel
import com.jerboa.ui.components.common.ApiErrorText
@@ -81,7 +83,7 @@ fun CommunityListActivity(
ListItem(
headlineContent = {
Text(
- text = "Recent searches",
+ text = stringResource(R.string.community_list_recent_searches),
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.labelLarge,
)
@@ -116,7 +118,10 @@ fun CommunityListActivity(
content = {
Icon(
Icons.Rounded.Close,
- contentDescription = "Delete ${it.text}",
+ contentDescription = stringResource(
+ R.string.community_list_delete_search_item,
+ it.text,
+ ),
tint = MaterialTheme.colorScheme.surfaceTint,
)
},
@@ -127,7 +132,7 @@ fun CommunityListActivity(
ListItem(
headlineContent = {
Text(
- text = "Communities",
+ text = stringResource(R.string.community_list_title),
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.labelLarge,
)
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 71ea8b250..ab0bbea13 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -110,6 +110,9 @@
%1$s users / month
Back
Search...
+ Communities
+ Recent searches
+ Delete %1$s
Pending
Refresh
Sort by