Difference between revisions of "Module:TNT"

Jump to navigation Jump to search
no auto I18n/ prefix, breaks some graphs
en>Yurik
(make i18n/ prefix optional, support for usage from modules)
en>Yurik
(no auto I18n/ prefix, breaks some graphs)
Line 157: Line 157:


formatMessage = function(dataset, key, params, lang)
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
for _, row in pairs(loadData(dataset, lang).data) do
local id, msg = unpack(row)
local id, msg = unpack(row)
Anonymous user

Navigation menu