Module:Template translation: Difference between revisions
Try to fix error |
Another error to fix |
||
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) | function p.main(frame) | ||
return '' | return '' | ||
end | 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 | return p |