| 208 | } |
| 209 | |
| 210 | std::string SearchPanel::GetCurrentInputLocale() |
| 211 | { |
| 212 | /// @DebugNote |
| 213 | // Hardcode search input language. |
| 214 | // return "de"; |
| 215 | |
| 216 | QString loc = QGuiApplication::inputMethod()->locale().name(); |
| 217 | loc.replace('_', '-'); |
| 218 | auto res = loc.toStdString(); |
| 219 | if (CategoriesHolder::MapLocaleToInteger(res) < 0) |
| 220 | res = "en"; |
| 221 | return res; |
| 222 | } |
| 223 | |
| 224 | void SearchPanel::OnSearchTextChanged(QString const & str) |
| 225 | { |