Modulo:Software: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+p.hasAFreeLicense +p.hasAProprietaryLicense
+yesNo +yesNoNil; bool2human → yesNoNil
Riga 62:
end
 
--[[
local function bool2human(v)
* @param v bool
* @return string
]]
local function bool2humanyesNo(v)
return v and 'sì' or 'no'
end
 
--[[
* @param v bool
* @return string|nil
]]
local function yesNoNil(v)
if v == nil then
return nil
end
return yesNo(v and 'sì' or 'no')
end
 
function p.isFreeSoftware(frame)
return bool2humanyesNoNil( p._isFreeSoftware(frame) )
end
 
Riga 99 ⟶ 111:
 
function p.specifiesALanguage(frame)
return yesNo( p._specifiesALanguage(frame) and 'sì' or 'no')
end
 
Riga 112 ⟶ 124:
 
function p.shouldHaveALanguage(frame)
return yesNo( p._shouldHaveALanguage(frame) and 'sì' or 'no')
end
 
Riga 231 ⟶ 243:
 
function p.hasAFreeLicense(frame)
return bool2humanyesNoNil( p._hasAFreeLicense(frame) )
end
 
function p.hasAProprietaryLicense(frame)
return bool2humanyesNoNil( p._hasAProprietaryLicense(frame) )
end