forked from organicmaps/organicmaps
[generator:geo_objects] Change jsonl: optional name field
This commit is contained in:
parent
1c660f7066
commit
d712caa10a
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ public:
|
|||
std::string const & level = std::string())
|
||||
{
|
||||
RemoveLocale(DefaultLocaleName(), level, label);
|
||||
AddLocale(DefaultLocaleName(), level, objectWithName.GetName(), label);
|
||||
auto const & name = objectWithName.GetName();
|
||||
if (!name.empty())
|
||||
AddLocale(DefaultLocaleName(), level, name, label);
|
||||
|
||||
auto const & languages = LocaleLanguages();
|
||||
for (std::string const & language : languages)
|
||||
|
|
Loading…
Add table
Reference in a new issue