Fixed english translation showing english name twice in "Translate Name" settings
This commit is contained in:
1 parent
e826895d38
commit
a3885c5e2b
1 file changed
+2
@@ -552,6 +552,7 @@ function EID:printDescription(desc)
|
||||
local curName = desc.Name
|
||||
if EID.Config["TranslateItemName"] ~= 2 then
|
||||
local curLanguage = EID.Config["Language"]
|
||||
if curLanguage ~= "en_us" then
|
||||
EID.Config["Language"] = "en_us"
|
||||
local englishName = EID:getObjectName(desc.ObjType, desc.ObjVariant, desc.ObjSubType)
|
||||
EID.Config["Language"] = curLanguage
|
||||
@@ -561,6 +562,7 @@ function EID:printDescription(desc)
|
||||
curName = curName.." ("..englishName..")"
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Display Entity ID
|
||||
if EID.Config["ShowObjectID"] and desc.ObjType > 0 then
|
||||
curName = curName.." {{ColorGray}}"..desc.ObjType.."."..desc.ObjVariant.."."..desc.ObjSubType
|
||||
|
||||
Reference in new issue
Block a user