Content deleted Content added
No edit summary |
No edit summary |
||
Line 342:
local args = require ('Module:Arguments').getArgs (frame);
local err = false; -- boolean set true when an error is detected; one error message only
local cat_page_title = mw.title.getCurrentTitle().text; -- get the category title
local lang_name;
mw.logObject (cat_page_title, 'cat_page_title')
for i, v in ipairs (args) do
if lang_module._is_ietf_tag (v) then
local t = {v}
lang_name = lang_module._name_from_tag (
else
lang_name = v;
end
mw.logObject (lang_name, 'lang_name ' .. i .. ' ' .. v )
if not mw.ustring.find (cat_page_title, lang_name, 1, true) then
err = true;
|