Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Module:Calcsellprice
(view source)
Revision as of 17:24, 3 May 2023
370 bytes added
,
17:24, 3 May 2023
decimal separator for ES numbers
Line 70:
Line 70:
elseif (ulang == "EN" or ulang == "JA" or ulang == "HU" or ulang == "TR") then
elseif (ulang == "EN" or ulang == "JA" or ulang == "HU" or ulang == "TR") then
return formattedSum .. "g"
return formattedSum .. "g"
−
elseif ulang == "ES" then return formattedSum .. "[[File:Gold.png|18px|link=]]"
+
elseif ulang == "ES"
then
+
if (sum < 1000)
then return formattedSum .. "[[File:Gold.png|18px|link=]]"
+
elseif (sum < 10000) then
+
local length = #(tostring(sum))
+
local temp = string.sub(tostring(sum), -3)
+
return string.sub(tostring(sum), 1, (length-3)) .. "." .. temp .. "[[File:Gold.png|18px|link=]]"
+
else
+
local temp = {mw.ustring.gsub(tostring(formattedSum), "%s" , ".")}
+
return temp[1] .. "[[File:Gold.png|18px|link=]]"
+
end
elseif ulang == "FR" then return formattedSum .. "po"
elseif ulang == "FR" then return formattedSum .. "po"
elseif ulang == "IT" then return formattedSum .. "o"
elseif ulang == "IT" then return formattedSum .. "o"
Margotbean
Interface administrators
, patroller,
Suppressors
,
Administrators
, translators
106,358
edits