Module:Lang/documentor tool and Module:Lang/documentor tool/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
fix expandTemplate |
sync with live |
||
Line 139: | Line 139: | ||
local error_messages = { |
local error_messages = { |
||
["ASSISTANCE"] = "Please see [[Template talk:Lang]] for assistance.", |
["ASSISTANCE"] = "Please see [[Template talk:Lang]] for assistance.", |
||
["INCORRECT_CATEGORY_TITLE"] = "[[:%s]] is not the category being populated by the %s template. The correct category is located at: [[:%s]].", |
["INCORRECT_CATEGORY_TITLE"] = "[[:%s]] is not the category being populated by the {{tlx|%s}} template. The correct category is located at: [[:%s]].", |
||
["NO_CATEGORY_TITLE_FOUND"] = "No language category found for '''%s.'''" .. error_assistance, |
["NO_CATEGORY_TITLE_FOUND"] = "No language category found for '''%s.'''" .. error_assistance, |
||
["NOT_VALID_CATEGORY_FORMAT"] = "'''%s''' is not a a valid category title." .. error_assistance, |
["NOT_VALID_CATEGORY_FORMAT"] = "'''%s''' is not a a valid category title." .. error_assistance, |
||
Line 389: | Line 389: | ||
-- Error: The current title used is not in the supported format. TODO: can this still be reached? |
-- Error: The current title used is not in the supported format. TODO: can this still be reached? |
||
return make_error( |
return make_error( |
||
string.format(error_messages["INCORRECT_CATEGORY_TITLE"], current_category_title, |
string.format(error_messages["INCORRECT_CATEGORY_TITLE"], current_category_title, non_english_language_text_strings["TEMPLATE"], correct_language_category_title), |
||
layout, parent_category, args.nocat) |
layout, parent_category, args.nocat) |
||
end |
end |
||
Line 479: | Line 479: | ||
-- Error: The current title used is not in the supported format. |
-- Error: The current title used is not in the supported format. |
||
return make_error( |
return make_error( |
||
string.format(error_messages["INCORRECT_CATEGORY_TITLE"], current_category_title, |
string.format(error_messages["INCORRECT_CATEGORY_TITLE"], current_category_title, non_english_language_sources_strings["TEMPLATE"], correct_language_category_title), |
||
layout, parent_category, args.nocat) |
layout, parent_category, args.nocat) |
||
end |
end |