Update errorMissingLocationAuth (#1341)

This commit is contained in:
Alfonso Grillo
2023-07-17 15:19:28 +02:00
committed by GitHub
parent 18b4a3a51a
commit 79fcfcd61b
5 changed files with 6 additions and 6 deletions
@@ -142,7 +142,7 @@
"error_failed_loading_map" = "%1$@ could not load the map. Please try again later.";
"error_failed_loading_messages" = "Failed loading messages";
"error_failed_locating_user" = "%1$@ could not access your location. Please try again later.";
"error_missing_location_auth" = "%1$@ does not have permission to access your location. You can enable access in Settings > Location";
"error_missing_location_auth_ios" = "%1$@ does not have permission to access your location. You can enable access in Settings > Location";
"error_no_compatible_app_found" = "No compatible app was found to handle this action.";
"error_some_messages_have_not_been_sent" = "Some messages have not been sent";
"error_unknown" = "Sorry, an error occurred";
+2 -2
View File
@@ -319,8 +319,8 @@ public enum L10n {
return L10n.tr("Localizable", "error_failed_locating_user", String(describing: p1))
}
/// %1$@ does not have permission to access your location. You can enable access in Settings > Location
public static func errorMissingLocationAuth(_ p1: Any) -> String {
return L10n.tr("Localizable", "error_missing_location_auth", String(describing: p1))
public static func errorMissingLocationAuthIos(_ p1: Any) -> String {
return L10n.tr("Localizable", "error_missing_location_auth_ios", String(describing: p1))
}
/// No compatible app was found to handle this action.
public static var errorNoCompatibleAppFound: String { return L10n.tr("Localizable", "error_no_compatible_app_found") }
@@ -149,7 +149,7 @@ extension AlertInfo where T == LocationSharingViewError {
case .missingAuthorization:
self.init(id: error,
title: "",
message: L10n.errorMissingLocationAuth(InfoPlistReader.main.bundleDisplayName),
message: L10n.errorMissingLocationAuthIos(InfoPlistReader.main.bundleDisplayName),
primaryButton: primaryButton,
secondaryButton: secondaryButton)
case .mapError(.failedLoadingMap):