Keep name on group, create displayName property to point to translated version

This commit is contained in:
blitzmann
2020-06-28 00:54:51 -04:00
parent 2fd4168ab7
commit 4a6a3fc6ea
7 changed files with 9 additions and 8 deletions

View File

@@ -169,7 +169,8 @@ def update_db():
def processEveGroups():
print('processing evegroups')
data = _readData('fsd_lite', 'evegroups', keyIdName='groupID')
map = {'groupName_en-us': 'groupName'}
map = {'groupName_en-us': 'displayName'}
map.update({'groupName'+v: 'name'+v for (k, v) in eos.config.translation_mapping.items() if k != 'en_US'})
_addRows(data, eos.gamedata.Group, fieldMap=map)
return data