Module:Template translation: Difference between revisions
Add dummy Template translation module to fix missing module errors |
Another error to fix |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
-- Dummy "Template translation" module to avoid errors | -- Dummy "Template translation" module to avoid errors | ||
-- This disables multilingual template features, but prevents script errors. | |||
local p = {} | local p = {} | ||
-- Used by some templates to check translation status | |||
function p.checkTranslation(frame) | function p.checkTranslation(frame) | ||
return '' | return '' | ||
end | end | ||
-- Used by some templates to layout multilingual content | |||
function p.layout(frame) | function p.layout(frame) | ||
return '' | return '' | ||
end | end | ||
-- Used by some templates for main entry point | |||
function p.main(frame) | |||
return '' | |||
end | |||
-- Used by license templates to display translated text | |||
function p.renderTranslatedTemplate(frame) | |||
-- Return nothing but avoid errors | |||
return '' | |||
end | |||
-- Always return a table to prevent 'nil value' errors | |||
return p |