mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 06:53:46 +00:00
[core] Dynamically add language data to world files
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
4953da4ecf
commit
55639db3ec
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user