add "auto" language
This commit is contained in:
1 parent
acc049a418
commit
5505cbe309
5 files changed
+42
-14
No files matched your search
@@ -538,7 +538,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
|
||||
if EID:getLanguage() ~= "en_us" then
|
||||
EID.Config["Language"] = "en_us"
|
||||
local englishName = desc.PermanentTextEnglish or EID:getObjectName(desc.ObjType, desc.ObjVariant, desc.ObjSubType)
|
||||
EID.Config["Language"] = curLanguage
|
||||
@@ -612,7 +612,7 @@ function EID:printBulletPoints(description, renderPos)
|
||||
local textScale = Vector(EID.Scale, EID.Scale)
|
||||
description = EID:replaceShortMarkupStrings(description)
|
||||
for line in string.gmatch(description, "([^#]+)") do
|
||||
local formatedLines = EID:fitTextToWidth(line, textboxWidth, EID.BreakUtf8CharsLanguage[EID.Config["Language"]])
|
||||
local formatedLines = EID:fitTextToWidth(line, textboxWidth, EID.BreakUtf8CharsLanguage[EID:getLanguage()])
|
||||
local textColor = EID:getTextColor()
|
||||
for i, lineToPrint in ipairs(formatedLines) do
|
||||
-- render bulletpoint
|
||||
|
||||
Reference in new issue
Block a user