The demo object text displayed in MCM can now be translated
This commit is contained in:
1 parent
0ec8a0ae60
commit
390ea68c1b
2 files changed
+13
-4
No files matched your search
@@ -865,3 +865,12 @@ EID.descriptions[languageCode].transformations = {
|
|||||||
"Adult", -- 14
|
"Adult", -- 14
|
||||||
"Stompy" -- 15
|
"Stompy" -- 15
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
---------- MISC ----------
|
||||||
|
|
||||||
|
EID.descriptions[languageCode].MCM = {
|
||||||
|
DemoObjectName = "Demo Object Name",
|
||||||
|
DemoObjectTransformation = "Demo Transformation",
|
||||||
|
DemoObjectText = "This text is in english#A very cool and long description to simulate linebreaks caused by EID textbox width!#\1 This is also a cool line#This line loves you {{Heart}}",
|
||||||
|
}
|
||||||
+4
-4
@@ -27,9 +27,9 @@ local colorNameArray = {}
|
|||||||
local function renderDummyDesc()
|
local function renderDummyDesc()
|
||||||
MCMCompat_oldPermanentObj = EID.permanentDisplayTextObj
|
MCMCompat_oldPermanentObj = EID.permanentDisplayTextObj
|
||||||
local demoDescObj = EID:getDescriptionObj(5, 100, 33)
|
local demoDescObj = EID:getDescriptionObj(5, 100, 33)
|
||||||
demoDescObj.Name = EID:getDescriptionEntry("MCM","demoObjectName")
|
demoDescObj.Name = EID:getDescriptionEntry("MCM","DemoObjectName")
|
||||||
demoDescObj.Transformation = EID:getDescriptionEntry("MCM","demoObjectTransformation")
|
demoDescObj.Transformation = EID:getDescriptionEntry("MCM","DemoObjectTransformation")
|
||||||
demoDescObj.Description = EID:getDescriptionEntry("MCM","demoObjectText")
|
demoDescObj.Description = EID:getDescriptionEntry("MCM","DemoObjectText")
|
||||||
EID:displayPermanentText(demoDescObj)
|
EID:displayPermanentText(demoDescObj)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -219,7 +219,7 @@ if MCMLoaded then
|
|||||||
Minimum = 1,
|
Minimum = 1,
|
||||||
Maximum = #(EID.Languages),
|
Maximum = #(EID.Languages),
|
||||||
Display = function()
|
Display = function()
|
||||||
EID.MCMCompat_isDisplayingEIDTab = "";
|
EID.MCMCompat_isDisplayingEIDTab = "Visuals"
|
||||||
return "Language: " .. displayLanguage[AnIndexOf(EID.Languages, EID.Config["Language"])]
|
return "Language: " .. displayLanguage[AnIndexOf(EID.Languages, EID.Config["Language"])]
|
||||||
end,
|
end,
|
||||||
OnChange = function(currentNum)
|
OnChange = function(currentNum)
|
||||||
|
|||||||
Reference in new issue
Block a user