Content deleted Content added
ensure f is always a string |
don't load internationalisation module for English Wikipedia |
||
Line 80:
}
if wiki.langcode ~= "en" then
--require("Module:i18n").loadI18n("Module:Wikidata/i18n", i18n)
-- got idea from [[:w:Module:Wd]]
local module_title; if ... == nil then▼
local module_title;
module_title = mw.getCurrentFrame():getTitle()
else
end
require('Module:i18n').loadI18n(module_title..'/i18n', i18n)▼
end
▲require('Module:i18n').loadI18n(module_title..'/i18n', i18n)
-- this function needs to be internationalised along with the above:
|