String resources.
This commit is contained in:
+5
-5
@@ -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)) }
|
||||
|
||||
@@ -536,6 +536,9 @@
|
||||
<string name="follow_set_creation_item_description">Creates a new follow set, and adds %1$s as a %2$s member.</string>
|
||||
<string name="follow_set_creation_dialog_title">New Follow Set</string>
|
||||
<string name="follow_set_copy_dialog_title">Copy/Clone Follow Set</string>
|
||||
<string name="follow_set_desc_modify_label">Modify description</string>
|
||||
<string name="follow_set_empty_desc_label">This list doesn\'t have a description</string>
|
||||
<string name="follow_set_current_desc_label">Current description:</string>
|
||||
<string name="follow_set_copy_indicator_description">You can set a custom name/description for this clone set below.</string>
|
||||
<string name="follow_set_creation_name_label">Set name</string>
|
||||
<string name="follow_set_copy_name_label">(Original Set name)</string>
|
||||
@@ -544,6 +547,7 @@
|
||||
<string name="follow_set_creation_action_btn_label">Create set</string>
|
||||
<string name="follow_set_copy_action_btn_label">Copy/Clone set</string>
|
||||
<string name="follow_set_rename_btn_label">Rename set</string>
|
||||
<string name="follow_set_desc_modify_btn_label">Modify</string>
|
||||
<string name="follow_set_rename_dialog_indicator_first_part">You are renaming from </string>
|
||||
<string name="follow_set_rename_dialog_indicator_second_part"> to..</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user