Module:translations: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 24: Line 24:
local pre = mw.ustring.gmatch(to_process, "^([^%*]+)%*")
local pre = mw.ustring.gmatch(to_process, "^([^%*]+)%*")
local link = mw.ustring.gmatch(to_process, "%*([^%*]+)%*")
local link = mw.ustring.gmatch(to_process, "%*([^%*]+)%*")
bytext = bytext .. pre .. m_links.full_link{term = link, language = language}
to_process = mw.ustring.sub(to_process, mw.ustring.len(pre) + mw.ustring.len(link) + 2)
to_process = mw.ustring.sub(to_process, mw.ustring.len(pre) + mw.ustring.len(link) + 2)
link = m_links.full_link{term = link, language = language}
bytext = bytext .. pre .. link
else
else
bytext = bytext .. to_process
bytext = bytext .. to_process

Navigation menu