i18n: fix 'Level Not learned' issue in #2202 (comment)

This commit is contained in:
zhaoweny
2020-06-30 15:15:15 +08:00
parent 8625dea833
commit 038b7ce931
3 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ from eos.const import FittingSlot as es_Slot
from eos.saveddata.fighter import Fighter as es_Fighter
pyfalog = Logger(__name__)
_t = wx.GetTranslation
class CharacterImportThread(threading.Thread):
@@ -319,7 +319,7 @@ class Character:
@staticmethod
def getSkillLevel(charID, skillID):
skill = eos.db.getCharacter(charID).getSkill(skillID)
return float(skill.level) if skill.learned else "Not learned", skill.isDirty
return float(skill.level) if skill.learned else _t("Not learned"), skill.isDirty
@staticmethod
def getDirtySkills(charID):