[ios] Corrected map accessibility value

Corrected the English override strings for the map view’s accessibility value. Prior to this change, the accessibility value would say “0 annotation” instead of “0 annotations” for some reason.

The zoom level in the map view’s accessibility value is off by two.
This commit is contained in:
Minh Nguyễn
2016-04-27 14:10:01 -07:00
committed by Minh Nguyễn
parent 7e6995d153
commit 9a280b8d9d
2 changed files with 5 additions and 9 deletions

View File

@@ -5,22 +5,18 @@
<key>MAP_A11Y_VALUE</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@count@</string>
<string>Zoom %dx
%#@count@ visible</string>
<key>count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>zero</key>
<string>Zoom %dx
no annotations visible</string>
<key>one</key>
<string>Zoom %dx
%d annotation visible</string>
<string>%d annotation</string>
<key>other</key>
<string>Zoom %dx
%d annotations visible</string>
<string>%d annotations</string>
</dict>
</dict>
</dict>

View File

@@ -1860,7 +1860,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
- (NSString *)accessibilityValue
{
double zoomLevel = round(self.zoomLevel - 1);
double zoomLevel = round(self.zoomLevel + 1);
return [NSString stringWithFormat:NSLocalizedStringWithDefaultValue(@"MAP_A11Y_VALUE", nil, nil, @"Zoom %dx\n%ld annotation(s) visible", @"Map accessibility value"), (int)zoomLevel, (long)self.accessibilityAnnotationCount];
}