Skip to content

Commit a488913

Browse files
authored
Merge pull request #4352 from osmandapp/fix_custom_map_poi_translating
fix_custom_map_poi_translating
2 parents c616cad + 662fd85 commit a488913

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Sources/Controllers/TargetMenu/POI/OAPOIViewController.mm

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -589,18 +589,14 @@ - (void) buildRows:(NSMutableArray<OARowInfo *> *)rows
589589
}
590590
[list addObject:poiType];
591591
}
592-
else if ([convertedKey hasPrefix:US_MAPS_RECREATION_AREA])
592+
else
593593
{
594-
NSString *translatedUsMapsKey = [_poiHelper getTranslation:convertedKey];
595-
if (translatedUsMapsKey.length > 0)
596-
textPrefix = translatedUsMapsKey;
594+
NSString *translatedKey = [_poiHelper getTranslation:convertedKey];
595+
if (translatedKey.length > 0)
596+
textPrefix = translatedKey;
597597
else
598598
textPrefix = [OAUtilities capitalizeFirstLetter:convertedKey];
599599
}
600-
else
601-
{
602-
textPrefix = convertedKey.capitalizedString;
603-
}
604600
}
605601

606602
NSArray<NSString *> *formattedPrefixAndText = [self getFormattedPrefixAndText:convertedKey prefix:textPrefix value:vl amenity:self.poi];

0 commit comments

Comments
 (0)