Cambios

20 bytes añadidos ,  13:35 12 may 2023
sin resumen de edición
Línea 46: Línea 46:  
end
 
end
 
 
if ((tonumber(price) * 5) <= 1000) then
+
if (((tonumber(price) * 5) <= 1000) or (ulang ~= "ES")) then
 
formattedprice = formattedprice .. tostring(mw.language.getContentLanguage():formatNum(1000))
 
formattedprice = formattedprice .. tostring(mw.language.getContentLanguage():formatNum(1000))
 
else
 
else
Línea 53: Línea 53:  
length = #(tostring(temp))
 
length = #(tostring(temp))
 
local temp2 = string.sub(tostring(temp), -3)
 
local temp2 = string.sub(tostring(temp), -3)
formattedprice = formattedprice .. string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
+
formattedprice = formattedprice .. string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
 
else
 
else
 
temp = {mw.ustring.gsub(tostring(temp), "%s" , ".")}
 
temp = {mw.ustring.gsub(tostring(temp), "%s" , ".")}
105 900

ediciones