Editing Module:Localization
From Eco - English Wiki
Your changes will be displayed to readers once an authorized user accepts them. (help)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
end | end | ||
l = mw.loadData('Module: | l = mw.loadData('Module:Localization/data') | ||
local msgs = l.msgs[msg] | local msgs = l.msgs[msg] | ||
Line 24: | Line 24: | ||
return lang:plural(count, msgs) | return lang:plural(count, msgs) | ||
end | end | ||
end | |||
function p.tag(tag) | |||
l = mw.loadData('Module:Localization/tag_data') | |||
local translatedTag = l[tag] | |||
if translatedTag == nil then | |||
return tag | |||
end | |||
return translatedTag | |||
end | end | ||