Changes

Module:Template translation

138 bytes added, 18:24, 10 June 2013
m
no edit summary
-- Get the last subpage (this function isolated for debugging purpose)
local subpage = mw.title.getCurrentTitle().subpageText
--[[Check first if there's an apostrophe, because they break the isKnownLanguageTag isKnownLanguageTag function. THIS TEST DOES NOT WORKThis test does not work with regexps, use plain search instead (no need to use Unicode parser, apostrophes can only appear isolated as one byte in UTF-8).
]]
if (string.find(subpage, "'", 1, true) == nil)
Anonymous user