Module:translations: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 16: Line 16:
elseif type(k) == "string" and type(v) == "string" then
elseif type(k) == "string" and type(v) == "string" then
local language = m_languages.get_by_code(k)
local language = m_languages.get_by_code(k)
-- m_links.full_link{term = word, language = m_languages.get_by_code("rad")} --
-- divide v into pieces in order to be linked --
local to_process = v
local to_process = v
local bytext = ""
local bytext = ""
-- add links between *asterisks* --
while #to_process > 0 do
while #to_process > 0 do
if mw.ustring.match(to_process, "%*[^%*]+%*") then
if mw.ustring.match(to_process, "%*[^%*]+%*") then