diff --git a/indexer/cuisines.cpp b/indexer/cuisines.cpp index bb423d1081..1662bb7c47 100644 --- a/indexer/cuisines.cpp +++ b/indexer/cuisines.cpp @@ -56,5 +56,9 @@ string Cuisines::Translate(string const & singleOsmCuisine, string const & lang) return TranslateImpl(m_translations, singleOsmCuisine); } -AllCuisines Cuisines::AllSupportedCuisines() { return m_translations->GetAllSortedTranslations(); } +AllCuisines Cuisines::AllSupportedCuisines(string const & lang) +{ + InitializeCuisinesForLocale(m_translations, lang); + return m_translations->GetAllSortedTranslations(); +} } // namespace osm diff --git a/indexer/cuisines.hpp b/indexer/cuisines.hpp index a6114f8328..a7ca218912 100644 --- a/indexer/cuisines.hpp +++ b/indexer/cuisines.hpp @@ -27,8 +27,8 @@ public: /// @returns translated cuisine (can be empty, if we can't translate key). std::string Translate(std::string const & singleOsmCuisine, std::string const & lang = languages::GetCurrentTwine()); - /// @returns list of osm cuisines in cuisines.txt (not localized). - AllCuisines AllSupportedCuisines(); + /// @returns list of osm cuisines in cuisines.txt. + AllCuisines AllSupportedCuisines(std::string const & lang = languages::GetCurrentTwine()); private: platform::TGetTextByIdPtr m_translations;