Skip to content

Commit 619e4e6

Browse files
committed
more on localizing race
1 parent a5f4791 commit 619e4e6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

sc2reader/data.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,20 @@
312312

313313
# question mark means not confirmed data
314314
races = {
315-
# KR?
315+
# deDE
316+
# enUS
317+
# esES
318+
# esMX
319+
# frFR
320+
# itIT
321+
322+
# koKR
316323
'프로토스': 'Protoss', #?
317324
'테란': 'Terran' #?
325+
326+
# plPL
327+
# ptBR
328+
# ruRU
329+
# zhCN
330+
# zhTW
318331
}

sc2reader/objects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def __init__(self, pid, data, realm="us"):
189189
# Actual race seems to be localized, so try to convert to english if possible
190190
if self.actual_race in races:
191191
self.actual_race = races[self.actual_race]
192+
192193
self.choosen_race = "" # Populated from the replay.attribute.events file
193194
self.color_rgba = dict([
194195
['r', data[3][1]],

0 commit comments

Comments
 (0)