Skip to content

Commit

Permalink
Merge pull request #908 from bitpredator/dev
Browse files Browse the repository at this point in the history
fix+feat: correct Turkish translation + creation of Italian translation
  • Loading branch information
bitpredator authored Dec 2, 2024
2 parents fcd7cd7 + 57868b9 commit adb92ca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---@diagnostic disable: undefined-global
ESX = exports["es_extended"]:getSharedObject()

RegisterNetEvent("esx_contract:getVehicle")
Expand Down
2 changes: 1 addition & 1 deletion server-data/resources/[esx_addons]/esx_contract/config.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Config = {}

Config.Locale = "en"
Config.Locale = "it"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Locales["it"] = {
["writingcontract"] = "Contratto per la seguente targa: %s",
["soldvehicle"] = "Hai venduto il veicolo con il numero di targa ~r~%s~s~",
["boughtvehicle"] = "Hai acquistato il veicolo con il numero di targa ~g~%s~s~",
["notyourcar"] = "Questo veicolo non è tuo",
["nonearby"] = "Nessun veicolo nelle vicinanze",
["nonearbybuyer"] = "Nessun acquirente nelle vicinanze",
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Locales["en"] = {
Locales["tr"] = {
["writingcontract"] = "%s plakası için kontrat yazılıyor.",
["soldvehicle"] = "Aracı sicil numarasıyla sattınız. ~r~%s~s~",
["boughtvehicle"] = "Aracı sicil numarasıyla satın aldınız. ~g~%s~s~",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---@diagnostic disable: undefined-global
ESX = exports["es_extended"]:getSharedObject()

RegisterServerEvent("esx_clothes:sellVehicle")
Expand Down Expand Up @@ -33,6 +34,6 @@ end)

ESX.RegisterUsableItem("contract", function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local _ = ESX.GetPlayerFromId(_source)
TriggerClientEvent("esx_contract:getVehicle", _source)
end)

0 comments on commit adb92ca

Please sign in to comment.