Skip to content

Commit 0b688d3

Browse files
committed
Cahnge button to Submit
1 parent 45c2d23 commit 0b688d3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

WordPress/Classes/ViewRelated/Post/Publishing/PublishPostViewController.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,12 @@ struct PublishPostView: View {
174174

175175
private extension PostSettingsViewModel {
176176
var publishButtonTitle: String {
177-
let isScheduled = settings.publishDate.map { $0 > .now } ?? false
178-
return isScheduled ? Strings.schedule : Strings.publish
177+
switch settings.status {
178+
case .publish, .publishPrivate: Strings.publish
179+
case .pending: Strings.submit
180+
case .scheduled: Strings.schedule
181+
default: SharedStrings.Button.save
182+
}
179183
}
180184
}
181185

@@ -185,6 +189,7 @@ enum PrepublishingSheetStrings {
185189
static let title = NSLocalizedString("prepublishing.title", value: "Publishing", comment: "Navigation title")
186190
static let publishingTo = NSLocalizedString("prepublishing.publishingTo", value: "Publishing to", comment: "Label in the header in the pre-publishing sheet")
187191
static let publish = NSLocalizedString("prepublishing.publish", value: "Publish", comment: "Primary button label in the pre-publishing sheet")
192+
static let submit = NSLocalizedString("prepublishing.submitForReview", value: "Submit", comment: "Primary button label in the pre-publishing sheet (must be short)")
188193
static let schedule = NSLocalizedString("prepublishing.schedule", value: "Schedule", comment: "Primary button label in the pre-publishing shee")
189194
static let publishDate = NSLocalizedString("prepublishing.publishDate", value: "Publish Date", comment: "Label for a cell in the pre-publishing sheet")
190195
static let visibility = NSLocalizedString("prepublishing.visibility", value: "Visibility", comment: "Label for a cell in the pre-publishing sheet")

0 commit comments

Comments
 (0)