Эх сурвалжийг харах

Fix profile spreed fallthrough + i18n

Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
Henrik Storch 3 жил өмнө
parent
commit
628f14c1f0

+ 2 - 2
iOSClient/Menu/UIViewController+Menu.swift

@@ -44,10 +44,10 @@ extension UIViewController {
                 UIApplication.shared.open(talkUrl)
             } else if let url = action.hyperlinkUrl {
                 UIApplication.shared.open(url)
-            }
+            } else { fallthrough }
         default:
             guard let url = action.hyperlinkUrl, UIApplication.shared.canOpenURL(url) else {
-                NCContentPresenter.shared.showGenericError(description: "_open_url_error")
+                NCContentPresenter.shared.showGenericError(description: "_open_url_error_")
                 return
             }
             UIApplication.shared.open(url, options: [:])

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -436,6 +436,7 @@
 "_update_in_progress_"          = "Version upgrade, please wait…";
 "_forbidden_characters_"        = "The file or folder name contains invalid characters";
 "_cannot_send_mail_error_"      = "No account set up, or wrong email address entered";
+"_open_url_error_"              = "Cannot open the URL for this action";
 "_photo_camera_"                = "Photos";
 "_media_"                       = "Media";
 "_unzip_in_progress_"           = "Extraction in progress on local storage…";