You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Show success notice when a custom post is saved to the site
Post a Notice toast on every HTTP write to the site from the Custom Post editor (save draft, update, publish) and from the standalone settings sheet reached from the Custom Posts list. The notice's title reflects the action: "Draft saved" only on the first save of a brand-new post, "Post updated" for any save of an existing post, and "Post published" via the publishing sheet. The post title is the notice's subtitle (omitted when empty). Localized strings live in a shared CustomPostNotice enum.
* Reformat PublishPostViewController with swift-format
* Show the published notice for both custom post publishing flows
Move the success notice into PublishPostViewController.show(editorService:blog:from:completion:) so both the custom post editor and the Custom Posts list show it after publishing through the sheet. Consolidate the duplicated notice strings into a shared CustomPostNoticeStrings type.
* Remove the unused publish argument from CustomPostEditorViewController.save
The method is only ever called to persist a draft or update, so drop the always-false publish parameter and the dead publish-only branches.
staticletpublishingTo=NSLocalizedString("prepublishing.publishingTo", value:"Publishing to", comment:"Label in the header in the pre-publishing sheet")
225
-
staticletpublish=NSLocalizedString("prepublishing.publish", value:"Publish", comment:"Primary button label in the pre-publishing sheet")
226
-
staticletschedule=NSLocalizedString("prepublishing.schedule", value:"Schedule", comment:"Primary button label in the pre-publishing shee")
227
-
staticletpublishDate=NSLocalizedString("prepublishing.publishDate", value:"Publish Date", comment:"Label for a cell in the pre-publishing sheet")
228
-
staticletvisibility=NSLocalizedString("prepublishing.visibility", value:"Visibility", comment:"Label for a cell in the pre-publishing sheet")
229
-
staticletcategories=NSLocalizedString("prepublishing.categories", value:"Categories", comment:"Label for a cell in the pre-publishing sheet")
230
-
staticlettags=NSLocalizedString("prepublishing.tags", value:"Tags", comment:"Label for a cell in the pre-publishing sheet")
231
-
staticletjetpackSocial=NSLocalizedString("prepublishing.jetpackSocial", value:"Jetpack Social", comment:"Label for a cell in the pre-publishing sheet")
232
-
staticletimmediately=NSLocalizedString("prepublishing.publishDateImmediately", value:"Immediately", comment:"Placeholder value for a publishing date in the prepublishing sheet when the date is not selected")
233
-
staticletuploadingMedia=NSLocalizedString("prepublishing.uploadingMedia", value:"Uploading media", comment:"Title for a publish button state in the pre-publishing sheet")
234
-
privatestaticletuploadMediaOneItemRemaining=NSLocalizedString("prepublishing.uploadMediaOneItemRemaining", value:"%@ item remaining", comment:"Details label for a publish button state in the pre-publishing sheet")
235
-
privatestaticletuploadMediaManyItemsRemaining=NSLocalizedString("prepublishing.uploadMediaManyItemsRemaining", value:"%@ items remaining", comment:"Details label for a publish button state in the pre-publishing sheet")
231
+
staticletpublishingTo=NSLocalizedString(
232
+
"prepublishing.publishingTo",
233
+
value:"Publishing to",
234
+
comment:"Label in the header in the pre-publishing sheet"
235
+
)
236
+
staticletpublish=NSLocalizedString(
237
+
"prepublishing.publish",
238
+
value:"Publish",
239
+
comment:"Primary button label in the pre-publishing sheet"
240
+
)
241
+
staticletschedule=NSLocalizedString(
242
+
"prepublishing.schedule",
243
+
value:"Schedule",
244
+
comment:"Primary button label in the pre-publishing shee"
245
+
)
246
+
staticletpublishDate=NSLocalizedString(
247
+
"prepublishing.publishDate",
248
+
value:"Publish Date",
249
+
comment:"Label for a cell in the pre-publishing sheet"
250
+
)
251
+
staticletvisibility=NSLocalizedString(
252
+
"prepublishing.visibility",
253
+
value:"Visibility",
254
+
comment:"Label for a cell in the pre-publishing sheet"
255
+
)
256
+
staticletcategories=NSLocalizedString(
257
+
"prepublishing.categories",
258
+
value:"Categories",
259
+
comment:"Label for a cell in the pre-publishing sheet"
260
+
)
261
+
staticlettags=NSLocalizedString(
262
+
"prepublishing.tags",
263
+
value:"Tags",
264
+
comment:"Label for a cell in the pre-publishing sheet"
265
+
)
266
+
staticletjetpackSocial=NSLocalizedString(
267
+
"prepublishing.jetpackSocial",
268
+
value:"Jetpack Social",
269
+
comment:"Label for a cell in the pre-publishing sheet"
270
+
)
271
+
staticletimmediately=NSLocalizedString(
272
+
"prepublishing.publishDateImmediately",
273
+
value:"Immediately",
274
+
comment:"Placeholder value for a publishing date in the prepublishing sheet when the date is not selected"
275
+
)
276
+
staticletuploadingMedia=NSLocalizedString(
277
+
"prepublishing.uploadingMedia",
278
+
value:"Uploading media",
279
+
comment:"Title for a publish button state in the pre-publishing sheet"
staticletmediaUploadFailedTitle=NSLocalizedString("prepublishing.mediaUploadFailedTitle", value:"Failed to upload media", comment:"Title for a publish button state in the pre-publishing sheet")
240
-
staticletmediaUploadFailedDetailsMultipleFailures=NSLocalizedString("prepublishing.mediaUploadFailedDetails", value:"%@ items failed to upload", comment:"Details for a publish button state in the pre-publishing sheet; count as a parameter")
0 commit comments