Skip to content

Commit 19da89a

Browse files
committed
Fixes to some translations
1 parent be4f624 commit 19da89a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

db_update.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,9 @@ def processMarketGroups():
269269
def processMetaGroups():
270270
print('processing metagroups')
271271
data = _readData('fsd_binary', 'metagroups', keyIdName='metaGroupID')
272-
_addRows(data, eos.gamedata.MetaGroup, fieldMap={
273-
'name_en-us': 'metaGroupName',
274-
'name_zh': 'metaGroupName_zh'
275-
})
272+
map = {'name_en-us': 'metaGroupName'}
273+
map.update({'name' + v: 'metaGroupName' + v for (k, v) in eos.config.translation_mapping.items() if k != 'en_US'})
274+
_addRows(data, eos.gamedata.MetaGroup, fieldMap=map)
276275

277276
def processCloneGrades():
278277
print('processing clonegrades')
@@ -344,7 +343,7 @@ def convertSection(sectionData):
344343
newRow['traitText{}'.format(v)] = traitLine
345344

346345
newData.append(newRow)
347-
_addRows(newData, eos.gamedata.Traits, fieldMap={'traitText_en-us': 'displayName'})
346+
_addRows(newData, eos.gamedata.Traits, fieldMap={'traitText_en-us': 'display'})
348347

349348
def processMetadata():
350349
print('processing metadata')

0 commit comments

Comments
 (0)