Module:TNT: Difference between revisions

143 bytes removed ,  5 years ago
no auto I18n/ prefix, breaks some graphs
(make i18n/ prefix optional, support for usage from modules)
(no auto I18n/ prefix, breaks some graphs)
Line 157:
 
formatMessage = function(dataset, key, params, lang)
-- Message tables must always start with I18n/...
if dataset and string.sub(dataset,1,5) ~= 'I18n/' then
dataset = 'I18n/' .. dataset
end
for _, row in pairs(loadData(dataset, lang).data) do
local id, msg = unpack(row)
Anonymous user