Modul:TNT: Unterschied zwischen den Versionen

and one more optimization
(sync from wmw)
(and one more optimization)
Zeile 36: Zeile 36:
local p = {}
local p = {}
local i18nDataset = 'I18n/Module:TNT.tab'
local i18nDataset = 'I18n/Module:TNT.tab'
local checkType = require('libraryUtil').checkType


-- Forward declaration of the local functions
-- Forward declaration of the local functions
Zeile 61: Zeile 60:
-- Identical to p.msg() above, but used from other lua modules
-- Identical to p.msg() above, but used from other lua modules
function p.format(dataset, key, params, lang)
function p.format(dataset, key, params, lang)
local checkType = require('libraryUtil').checkType
checkType('format', 1, dataset, 'string')
checkType('format', 1, dataset, 'string')
checkType('format', 2, key, 'string')
checkType('format', 2, key, 'string')
Anonymer Benutzer