From 55639db3ec0397d355ee14a04d77dea62962801e Mon Sep 17 00:00:00 2001 From: Yannik Bloscheck Date: Sun, 31 Aug 2025 10:10:37 +0200 Subject: [PATCH] [core] Dynamically add language data to world files Signed-off-by: Yannik Bloscheck --- libs/indexer/mwm_set.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/indexer/mwm_set.hpp b/libs/indexer/mwm_set.hpp index 4f6d07e14..d4c2bd1f5 100644 --- a/libs/indexer/mwm_set.hpp +++ b/libs/indexer/mwm_set.hpp @@ -81,7 +81,13 @@ public: MwmTypeT GetType() const; - feature::RegionData const & GetRegionData() const { return m_data; } + feature::RegionData GetRegionData() const { + auto regionData = m_data; + if (GetType() == MwmTypeT::WORLD || GetType() == MwmTypeT::COASTS) { + regionData.SetLanguages({"int_name","en","default"}); + } + return regionData; + } /// Returns the lock counter value for test needs. uint8_t GetNumRefs() const { return m_numRefs; }