diff options
author | Sergey Pisarchik <pisarchik@mapswithme.com> | 2014-06-04 13:17:14 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:16:42 +0300 |
commit | 756488f3c93d660c3a5f8c769c6719869d6fdfdf (patch) | |
tree | 8e5dd7ea2acd97a5ca07ba03d2e5d66d90995b0a /tizen/MapsWithMe | |
parent | 8f27059be6f4726b00bcd292e83365a7ca979fc3 (diff) |
[Tizen] Add language detection.
Diffstat (limited to 'tizen/MapsWithMe')
-rw-r--r-- | tizen/MapsWithMe/src/SearchForm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tizen/MapsWithMe/src/SearchForm.cpp b/tizen/MapsWithMe/src/SearchForm.cpp index 4b9a986d54..a9e78f83ec 100644 --- a/tizen/MapsWithMe/src/SearchForm.cpp +++ b/tizen/MapsWithMe/src/SearchForm.cpp @@ -279,6 +279,10 @@ void SearchForm::Search(String const & val) search::SearchParams m_params; m_params.m_callback = bind(&SearchForm::OnSearchResultsReceived, this, _1); m_params.m_query = FromTizenString(val); + + Tizen::Locales::LanguageCode language; + if (m_searchBar->GetCurrentLanguage(language) == E_SUCCESS) + m_params.SetInputLanguage(CodeFromISO369_2to_1(GetLanguageCode(language))); double lat, lon; GetFramework()->GetCurrentPosition(lat, lon); m_params.SetPosition(lat, lon); |