forked from organicmaps/organicmaps
[MAPSME-5899] [ios] Passed recent keyboard language to ugc update.
This commit is contained in:
parent
de5bdc8ca3
commit
5fe2e1b7b2
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#import "MWMPlacePageData.h"
|
||||
#import "AppInfo.h"
|
||||
#import "LocaleTranslator.h"
|
||||
#import "MWMBannerHelpers.h"
|
||||
#import "MWMNetworkPolicy.h"
|
||||
|
@ -704,8 +705,13 @@ NSString * const kUserDefaultsLatLonAsDMSKey = @"UserDefaultsLatLonAsDMS";
|
|||
|
||||
auto const locale =
|
||||
static_cast<uint8_t>(StringUtf8Multilang::GetLangIndex(languages::GetCurrentNorm()));
|
||||
// TODO: Set the list of keyboard's locales
|
||||
KeyboardText t{reviewModel.text.UTF8String, locale, {}};
|
||||
std::vector<uint8_t> keyboardLanguages;
|
||||
{
|
||||
// TODO: Set the list of used keyboard languages (not only the recent one).
|
||||
auto lastInputLanguage = [[AppInfo sharedInfo] twoLetterInputLanguage];
|
||||
keyboardLanguages.push_back(StringUtf8Multilang::GetLangIndex(lastInputLanguage.UTF8String));
|
||||
}
|
||||
KeyboardText t{reviewModel.text.UTF8String, locale, keyboardLanguages};
|
||||
Ratings r;
|
||||
for (MWMUGCRatingStars * star in reviewModel.ratings)
|
||||
r.emplace_back(star.title.UTF8String, star.value);
|
||||
|
|
Loading…
Add table
Reference in a new issue