forked from organicmaps/organicmaps
[ios] Fixed poi category in place page.
This commit is contained in:
parent
3e34bd762b
commit
2335e40e60
1 changed files with 16 additions and 2 deletions
|
@ -141,8 +141,22 @@ using feature::Metadata;
|
|||
{
|
||||
case Metadata::FMD_CUISINE:
|
||||
{
|
||||
NSString * cuisine = [NSString stringWithFormat:@"cuisine_%@", [NSString stringWithUTF8String:metadata.Get(type).c_str()]];
|
||||
self.category = [NSString stringWithFormat:@"%@, %@", self.category, L(cuisine)];
|
||||
NSString * result = [NSString stringWithUTF8String:metadata.Get(type).c_str()];
|
||||
NSString * cuisine = [NSString stringWithFormat:@"cuisine_%@", result];
|
||||
NSString * localizedResult = L(cuisine);
|
||||
NSString * currentCategory = self.category;
|
||||
if (![localizedResult isEqualToString:currentCategory])
|
||||
{
|
||||
if ([localizedResult isEqualToString:cuisine])
|
||||
{
|
||||
if (![result isEqualToString:currentCategory])
|
||||
self.category = [NSString stringWithFormat:@"%@, %@", self.category, result];
|
||||
}
|
||||
else
|
||||
{
|
||||
self.category = [NSString stringWithFormat:@"%@, %@", self.category, localizedResult];
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Metadata::FMD_ELE:
|
||||
|
|
Loading…
Add table
Reference in a new issue