Module:Lang: Difference between revisions

Jump to navigation Jump to search
Added checks for nil lang override, in the case the argument is not used
Return empty string if key not found
Line 28: Line 28:
local label = data[key]
local label = data[key]
if (label == nil) then  
if (label == nil) then  
return string.format("Key '%s' not found", key)
return ''
end
end