Difference between revisions of "Module:TNT"

Jump to navigation Jump to search
143 bytes removed ,  05:32, 28 April 2019
no auto I18n/ prefix, breaks some graphs
>Yurik
(make i18n/ prefix optional, support for usage from modules)
>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