diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-09-13 15:40:27 -0700 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-09-13 17:00:49 -0700 |
commit | b5e50e1ce6e78066c22063e9453002153aa5770a (patch) | |
tree | 30668bff4eb207f0b15c42ec42e52844711ae163 | |
parent | 2b70e590c43a911c14de6084c338158f9e7975d9 (diff) | |
download | qtlocation-mapboxgl-b5e50e1ce6e78066c22063e9453002153aa5770a.tar.gz |
[ios, macos] Add localization strings.
-rw-r--r-- | platform/darwin/resources/Base.lproj/Foundation.strings | 3 | ||||
-rw-r--r-- | platform/darwin/src/MGLOfflineStorage.mm | 2 | ||||
-rw-r--r-- | platform/ios/resources/Base.lproj/Localizable.strings | 6 |
3 files changed, 4 insertions, 7 deletions
diff --git a/platform/darwin/resources/Base.lproj/Foundation.strings b/platform/darwin/resources/Base.lproj/Foundation.strings index ba7db3fc63..19bfe750e6 100644 --- a/platform/darwin/resources/Base.lproj/Foundation.strings +++ b/platform/darwin/resources/Base.lproj/Foundation.strings @@ -1,3 +1,6 @@ +/* User-friendly error description */ +"ADD_FILE_CONTENTS_FAILED_DESC" = "Unable to add offline packs from the file at %@."; + /* Clock position format, long: {hours} o’clock */ "CLOCK_FMT_LONG" = "%@ o’clock"; diff --git a/platform/darwin/src/MGLOfflineStorage.mm b/platform/darwin/src/MGLOfflineStorage.mm index ba4de246f7..fbfa9b3e2f 100644 --- a/platform/darwin/src/MGLOfflineStorage.mm +++ b/platform/darwin/src/MGLOfflineStorage.mm @@ -320,7 +320,7 @@ const MGLExceptionName MGLUnsupportedRegionTypeException = @"MGLUnsupportedRegio NSError *error; NSMutableArray *packs; if (!result) { - NSString *description = [NSString stringWithFormat:NSLocalizedStringWithDefaultValue(@"ADD_FILE_CONTENTS_FAILED_DESC", nil, nil, @"Unable to add offline packs from the file at %@.", @"User-friendly error description"), filePath]; + NSString *description = [NSString stringWithFormat:NSLocalizedStringWithDefaultValue(@"ADD_FILE_CONTENTS_FAILED_DESC", @"Foundation", nil, @"Unable to add offline packs from the file at %@.", @"User-friendly error description"), filePath]; error = [NSError errorWithDomain:MGLErrorDomain code:-1 userInfo:@{ NSLocalizedDescriptionKey: description, NSLocalizedFailureReasonErrorKey: @(mbgl::util::toString(result.error()).c_str()) diff --git a/platform/ios/resources/Base.lproj/Localizable.strings b/platform/ios/resources/Base.lproj/Localizable.strings index 571a6bca6b..d660cb6ddd 100644 --- a/platform/ios/resources/Base.lproj/Localizable.strings +++ b/platform/ios/resources/Base.lproj/Localizable.strings @@ -2,12 +2,6 @@ "ANNOTATION_A11Y_HINT" = "Shows more info"; /* No comment provided by engineer. */ -"API_CLIENT_400_DESC" = "The session data task failed. Original request was: %@"; - -/* No comment provided by engineer. */ -"API_CLIENT_400_REASON" = "The status code was %ld"; - -/* No comment provided by engineer. */ "CANCEL" = "Cancel"; /* Accessibility hint for closing the selected annotation’s callout view and returning to the map */ |