From ac60e3d221f224def002afcad7b466b73f2e75b1 Mon Sep 17 00:00:00 2001 From: KotlinGeekDev Date: Thu, 9 Oct 2025 20:13:00 +0100 Subject: [PATCH] String resources. --- .../amethyst/ui/screen/loggedIn/lists/CustomSetItem.kt | 10 +++++----- amethyst/src/main/res/values/strings.xml | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/CustomSetItem.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/CustomSetItem.kt index 9283bf2d7..89dec3b22 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/CustomSetItem.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/CustomSetItem.kt @@ -260,7 +260,7 @@ private fun SetOptionsMenu( ) DropdownMenuItem( text = { - Text(text = "Modify description") + Text(text = stringRes(R.string.follow_set_desc_modify_label)) }, onClick = { isDescriptionModDialogOpen.value = true @@ -397,10 +397,10 @@ private fun SetModifyDescriptionDialog( val modifyIndicatorLabel = if (currentDescription == null) { - "This list doesn't have a description" + stringRes(R.string.follow_set_empty_desc_label) } else { buildAnnotatedString { - append("Current description: ") + append(stringRes(R.string.follow_set_current_desc_label) + " ") withStyle( SpanStyle( fontWeight = FontWeight.Bold, @@ -416,7 +416,7 @@ private fun SetModifyDescriptionDialog( AlertDialog( onDismissRequest = onDismissDialog, title = { - Text(text = "Modify description") + Text(text = stringRes(R.string.follow_set_desc_modify_label)) }, text = { Column( @@ -441,7 +441,7 @@ private fun SetModifyDescriptionDialog( onModifyDescription(updatedDescription.value) onDismissDialog() }, - ) { Text(text = "Modify") } + ) { Text(text = stringRes(R.string.follow_set_desc_modify_btn_label)) } }, dismissButton = { Button(onClick = onDismissDialog) { Text(text = stringRes(R.string.cancel)) } diff --git a/amethyst/src/main/res/values/strings.xml b/amethyst/src/main/res/values/strings.xml index 1d8fe7d0c..a0d1ef928 100644 --- a/amethyst/src/main/res/values/strings.xml +++ b/amethyst/src/main/res/values/strings.xml @@ -536,6 +536,9 @@ Creates a new follow set, and adds %1$s as a %2$s member. New Follow Set Copy/Clone Follow Set + Modify description + This list doesn\'t have a description + Current description: You can set a custom name/description for this clone set below. Set name (Original Set name) @@ -544,6 +547,7 @@ Create set Copy/Clone set Rename set + Modify You are renaming from to..