Skip to content

Commit

Permalink
fix: more locale issues
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Jan 19, 2024
1 parent b67cf21 commit 32ae064
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/job.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ RegisterNetEvent('hospital:client:CheckStatus', function()
TriggerEvent('chat:addMessage', {
color = { 255, 0, 0 },
multiline = false,
args = { locale('info.status'), locale('info.is_status', { status = status.bleedState }) }
args = { locale('info.status'), locale('info.is_status', status.bleedState) }
})
end

Expand Down
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RegisterNetEvent('hospital:client:ambulanceAlert', function(coords, text)
local transG = 250
local blip = AddBlipForCoord(coords.x, coords.y, coords.z)
local blip2 = AddBlipForCoord(coords.x, coords.y, coords.z)
local blipText = locale('info.ems_alert', { text = text })
local blipText = locale('info.ems_alert', text)
SetBlipSprite(blip, 153)
SetBlipSprite(blip2, 161)
SetBlipColour(blip, 1)
Expand Down Expand Up @@ -75,7 +75,7 @@ RegisterNetEvent('hospital:client:SendBillEmail', function(amount)
TriggerServerEvent('qb-phone:server:sendNewMail', {
sender = locale('mail.sender'),
subject = locale('mail.subject'),
message = locale('mail.message', { gender = gender, lastname = charInfo.lastname, costs = amount }),
message = locale('mail.message', gender, charInfo.lastname, amount),
button = {}
})
end)
Expand Down
8 changes: 4 additions & 4 deletions client/setdownedstate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ end
local function displayRespawnText()
local deathTime = exports.qbx_medical:getDeathTime()
if deathTime > 0 and doctorCount > 0 then
DrawText2D(locale('info.respawn_txt', { deathtime = math.ceil(deathTime) }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
DrawText2D(locale('info.respawn_txt', math.ceil(deathTime)), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
else
DrawText2D(locale('info.respawn_revive', { holdtime = exports.qbx_medical:getRespawnHoldTimeDeprecated(), cost = sharedConfig.checkInCost }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
DrawText2D(locale('info.respawn_revive', exports.qbx_medical:getRespawnHoldTimeDeprecated(), sharedConfig.checkInCost), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
end
end

Expand Down Expand Up @@ -52,9 +52,9 @@ end
local function handleLastStand()
local laststandTime = exports.qbx_medical:getLaststandTime()
if laststandTime > config.laststandTimer or doctorCount == 0 then
DrawText2D(locale('info.bleed_out', { time = math.ceil(laststandTime) }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
DrawText2D(locale('info.bleed_out', math.ceil(laststandTime)), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
else
DrawText2D(locale('info.bleed_out_help', { time = math.ceil(laststandTime) }), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
DrawText2D(locale('info.bleed_out_help', math.ceil(laststandTime)), vec2(1.0, 1.44), 1.0, 1.0, 0.6, 4, 255, 255, 255, 255)
handleRequestingEms()
end

Expand Down

0 comments on commit 32ae064

Please sign in to comment.