diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index 9713a8b23..6e3e309a6 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -3618,7 +3618,7 @@ path = Timeline; sourceTree = ""; }; - "TEMP_C02F1FDA-4B9F-4174-8DD3-76A7A4DE4CCB" /* element-x-ios */ = { + "TEMP_BABAC1E3-4AC2-4E05-A4A7-2CB82B6F7C7E" /* element-x-ios */ = { isa = PBXGroup; children = ( 41553551C55AD59885840F0E /* secrets.xcconfig */, diff --git a/ElementX/Resources/Localizations/en.lproj/Localizable.strings b/ElementX/Resources/Localizations/en.lproj/Localizable.strings index 3a1c80afd..d362ba014 100644 --- a/ElementX/Resources/Localizations/en.lproj/Localizable.strings +++ b/ElementX/Resources/Localizations/en.lproj/Localizable.strings @@ -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"; diff --git a/ElementX/Sources/Generated/Strings.swift b/ElementX/Sources/Generated/Strings.swift index c03f1c636..377f98756 100644 --- a/ElementX/Sources/Generated/Strings.swift +++ b/ElementX/Sources/Generated/Strings.swift @@ -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") } diff --git a/ElementX/Sources/Screens/LocationSharing/LocationSharingScreenModels.swift b/ElementX/Sources/Screens/LocationSharing/LocationSharingScreenModels.swift index eeea4973c..d4fcb3055 100644 --- a/ElementX/Sources/Screens/LocationSharing/LocationSharingScreenModels.swift +++ b/ElementX/Sources/Screens/LocationSharing/LocationSharingScreenModels.swift @@ -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): diff --git a/UnitTests/Sources/StaticLocationScreenViewModelTests.swift b/UnitTests/Sources/StaticLocationScreenViewModelTests.swift index 9b6d66323..4966361c6 100644 --- a/UnitTests/Sources/StaticLocationScreenViewModelTests.swift +++ b/UnitTests/Sources/StaticLocationScreenViewModelTests.swift @@ -74,7 +74,7 @@ class StaticLocationScreenViewModelTests: XCTestCase { let locationError = AlertInfo(locationSharingViewError: .mapError(.failedLocatingUser)) XCTAssertEqual(locationError.message, L10n.errorFailedLocatingUser(InfoPlistReader.main.bundleDisplayName)) let authorizationError = AlertInfo(locationSharingViewError: .missingAuthorization) - XCTAssertEqual(authorizationError.message, L10n.errorMissingLocationAuth(InfoPlistReader.main.bundleDisplayName)) + XCTAssertEqual(authorizationError.message, L10n.errorMissingLocationAuthIos(InfoPlistReader.main.bundleDisplayName)) } func testSendUserLocation() async throws {