[generator:geo_objects] Change jsonl: optional name field

This commit is contained in:
Anatoly Serdtcev 2019-08-02 18:14:39 +03:00 committed by LaGrunge
parent 1c660f7066
commit d712caa10a

View file

@ -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)