Add label to “Add Option” button
This commit is contained in:
parent
7d8c40218c
commit
5637056790
|
@ -471,6 +471,7 @@
|
|||
"option_number": "Option %ld",
|
||||
"the_poll_is_invalid": "The poll is invalid",
|
||||
"the_poll_has_empty_option": "The poll has empty option",
|
||||
"add_option": "Add Option",
|
||||
"remove_option": "Remove Option",
|
||||
"move_up": "Move Up",
|
||||
"move_down": "Move Down"
|
||||
|
|
|
@ -593,6 +593,8 @@ public enum L10n {
|
|||
public static let photoLibrary = L10n.tr("Localizable", "Scene.Compose.MediaSelection.PhotoLibrary", fallback: "Photo Library")
|
||||
}
|
||||
public enum Poll {
|
||||
/// Add Option
|
||||
public static let addOption = L10n.tr("Localizable", "Scene.Compose.Poll.AddOption", fallback: "Add Option")
|
||||
/// Duration: %@
|
||||
public static func durationTime(_ p1: Any) -> String {
|
||||
return L10n.tr("Localizable", "Scene.Compose.Poll.DurationTime", String(describing: p1), fallback: "Duration: %@")
|
||||
|
|
|
@ -211,6 +211,7 @@ uploaded to Mastodon.";
|
|||
"Scene.Compose.MediaSelection.Browse" = "Browse";
|
||||
"Scene.Compose.MediaSelection.Camera" = "Take Photo";
|
||||
"Scene.Compose.MediaSelection.PhotoLibrary" = "Photo Library";
|
||||
"Scene.Compose.Poll.AddOption" = "Add Option";
|
||||
"Scene.Compose.Poll.DurationTime" = "Duration: %@";
|
||||
"Scene.Compose.Poll.MoveDown" = "Move Down";
|
||||
"Scene.Compose.Poll.MoveUp" = "Move Up";
|
||||
|
|
|
@ -200,9 +200,9 @@ extension ComposeContentView {
|
|||
}
|
||||
}
|
||||
if viewModel.maxPollOptionLimit != viewModel.pollOptions.count {
|
||||
Button(action: viewModel.createNewPollOptionIfCould) {
|
||||
PollAddOptionRow()
|
||||
.onTapGesture {
|
||||
viewModel.createNewPollOptionIfCould()
|
||||
.accessibilityLabel(L10n.Scene.Compose.Poll.addOption)
|
||||
}
|
||||
}
|
||||
Menu {
|
||||
|
|
Loading…
Reference in New Issue