Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Modules/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Modules/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ let package = Package(
revision: "b34794c9a3f32312e1593d4a3d120572afa0d010"
),
.package(url: "https://github.com/zendesk/support_sdk_ios", from: "8.0.3"),
.package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.20.0-alpha.2"),
.package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.20.0"),
.package(
url: "https://github.com/automattic/wordpress-rs",
exact: "0.11.1"
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* [*] Notifications: Fix a rare crash when opening a notification with images, and GIFs keeping their old size after rotating [#26396]
* [*] Fix images briefly showing the previous image, or a placeholder, when the right one was already loaded [#26391]
* [*] Show video thumbnails the right way up in Support attachments and the Media Library, and keep saved attachments smaller [#26392]
* [*] Experimental editor: Support Lockdown Mode, upload large photos and videos without running out of memory, and start new posts from their post type's template [#26365]
* [*] Reader: Show icons for more sites, and load a site's icon again after a failed attempt [#26393]


Expand Down
57 changes: 26 additions & 31 deletions WordPress/Classes/ViewRelated/NewGutenberg/GBKExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,38 @@ private func getLocalizedString(for value: GutenbergKit.EditorLocalizableString)
value: "Failed to insert media",
comment: "Error message when media insertion fails"
)
case .someMediaFailedToInsert:
NSLocalizedString(
"editor.media.someFailedToInsert",
value: "Some media could not be inserted",
comment: "Error message when some, but not all, of the media picked in the block inserter fails to insert"
)
case .failedToLoadSelectedMedia:
NSLocalizedString(
"editor.media.failedToLoadSelected",
value: "The selected media could not be loaded. It may not be fully downloaded to this device.",
comment: "Error message when media picked in the block inserter cannot be loaded, e.g. an iCloud photo"
)
case .someSelectedMediaFailedToLoad(let count):
if count == 1 {
NSLocalizedString(
"editor.media.someSelectedFailedToLoad.singular",
value: "1 item could not be loaded and was skipped. It may not be fully downloaded to this device.",
comment:
"Error message when one of several media items picked in the block inserter cannot be loaded, e.g. an iCloud photo"
)
} else {
String(
format: NSLocalizedString(
"editor.media.someSelectedFailedToLoad.plural",
value:
"%1$d items could not be loaded and were skipped. They may not be fully downloaded to this device.",
comment:
"Error message when some of the media items picked in the block inserter cannot be loaded, e.g. iCloud photos. %1$d is a placeholder for the number of items."
),
count
)
}
case .failedToProcessCapturedMedia:
NSLocalizedString(
"editor.media.failedToProcessCaptured",
Expand Down Expand Up @@ -154,37 +180,6 @@ private func getLocalizedString(for value: GutenbergKit.EditorLocalizableString)
value: "Reload Editor",
comment: "Button title to reload the editor after it crashes"
)
case .lockdownModeTitle:
NSLocalizedString(
"editor.lockdownMode.title",
value: "Lockdown Mode Detected",
comment: "Title shown when Lockdown Mode may affect the editor"
)
case .lockdownModeWarning:
NSLocalizedString(
"editor.lockdownMode.warning",
value: "Lockdown Mode is enabled. The editor may not work correctly.",
comment: "Warning shown when Lockdown Mode may affect the editor"
)
case .lockdownModeExcludeHint:
NSLocalizedString(
"editor.lockdownMode.excludeHint",
value:
"You can exclude this app from Lockdown Mode in Settings, then re-open the editor to restore full functionality.",
comment: "Instructions for excluding the app from Lockdown Mode"
)
case .lockdownModeLearnMore:
NSLocalizedString(
"editor.lockdownMode.learnMore",
value: "Learn More",
comment: "Button title to learn more about Lockdown Mode"
)
case .lockdownModeDismiss:
NSLocalizedString(
"editor.lockdownMode.dismiss",
value: "Dismiss",
comment: "Button title to dismiss the Lockdown Mode warning"
)
// Declining a key lets the editor render its own string, so strings added
// by a newer GutenbergKit appear in English rather than breaking this build.
// `@unknown` because a plain `default` warns that it will never execute
Expand Down