[ios] Fixed input locale for categories search.

This commit is contained in:
Ilya Grechuhin 2016-09-09 10:24:29 +03:00
parent 41d3e7c451
commit 996a5a8c2d

View file

@ -2,6 +2,7 @@
#import "MWMSearchCategoriesManager.h"
#import "MWMSearchCategoryCell.h"
#import "Statistics.h"
#import "AppInfo.h"
#include "search/displayed_categories.hpp"
@ -65,7 +66,7 @@ forRowAtIndexPath:(NSIndexPath *)indexPath
NSString * string = @(m_categories[indexPath.row].c_str());
[Statistics logEvent:kStatEventName(kStatSearch, kStatSelectResult)
withParameters:@{kStatValue : string, kStatScreen : kStatCategories}];
[self.delegate searchText:[L(string) stringByAppendingString:@" "] forInputLocale:nil];
[self.delegate searchText:[L(string) stringByAppendingString:@" "] forInputLocale:[[AppInfo sharedInfo] languageId]];
}
@end