[ios, macos] Cleaned up base localization files

Localizable strings in Darwin classes need to specify “Foundation” as the table so that NSBundle consults the right .strings files. Reran make genstrings to add some missing strings to the base localizations and undo some manual edits to the base localizations that contained errors.
This commit is contained in:
Minh Nguyễn
2017-12-18 09:43:26 -08:00
committed by Minh Nguyễn
parent c618d513b1
commit 9c1dfe46cf
4 changed files with 8 additions and 2 deletions

View File

@@ -289,3 +289,9 @@
/* West longitude format, short: {longitude} */
"COORD_W_SHORT" = "%@W";
/* OpenStreetMap full name attribution */
"OSM_FULL_NAME" = "OpenStreetMap";
/* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM";

View File

@@ -170,8 +170,8 @@
- (NSAttributedString *)titleWithStyle:(MGLAttributionInfoStyle)style
{
NSString *openStreetMap = NSLocalizedStringWithDefaultValue(@"OSM_FULL_NAME", nil, nil, @"OpenStreetMap", @"OpenStreetMap full name attribution");
NSString *OSM = NSLocalizedStringWithDefaultValue(@"OSM_SHORT_NAME", nil, nil, @"OSM", @"OpenStreetMap short name attribution");
NSString *openStreetMap = NSLocalizedStringWithDefaultValue(@"OSM_FULL_NAME", @"Foundation", nil, @"OpenStreetMap", @"OpenStreetMap full name attribution");
NSString *OSM = NSLocalizedStringWithDefaultValue(@"OSM_SHORT_NAME", @"Foundation", nil, @"OSM", @"OpenStreetMap short name attribution");
NSMutableAttributedString *title = [[NSMutableAttributedString alloc] initWithAttributedString:self.title];
[title removeAttribute:NSUnderlineStyleAttributeName range:NSMakeRange(0, [title.string length])];