Module:sish-headword: Difference between revisions

No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 124: Line 124:
}
}


local sc = lang:findBestScript(pagename, "forceDetect")
local sc = lang:findBestScript(pagename)
data.sc = sc
local other_sc
local other_sc
if sc:getCode() == "Latn" then
if sc:getCode() == "Latn" then
other_sc = "Armn"
other_sc = "sish-Armn"
elseif sc:getCode() == "Armn" then
elseif sc:getCode() == "sish-Armn" then
other_sc = "Latn"
other_sc = "Latn"
end
end