Skip to content

Commit

Permalink
Add pt language (#122)
Browse files Browse the repository at this point in the history
* Update version

* Update package.json

* Create pt_lang.lua

* Update fxmanifest.lua

* Update stables.lua

* Update main.lua
  • Loading branch information
JusCampin authored Sep 20, 2024
1 parent 22a3614 commit 82d2eff
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 7 deletions.
10 changes: 7 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ CreateThread(function()
local distance = #(playerCoords - siteCfg.npc.coords)
-- Stable Closed
if (siteCfg.shop.hours.active and hour >= siteCfg.shop.hours.close) or (siteCfg.shop.hours.active and hour < siteCfg.shop.hours.open) then
ManageStableBlip(site, true)
if siteCfg.blip.show then
ManageStableBlip(site, true)
end
RemoveStableNPC(site)
if distance <= siteCfg.shop.distance then
sleep = 0
Expand All @@ -73,7 +75,9 @@ CreateThread(function()
end
-- Stable Open
else
ManageStableBlip(site, false)
if siteCfg.blip.show then
ManageStableBlip(site, false)
end
if distance <= siteCfg.npc.distance then
if siteCfg.npc.active then
AddStableNPC(site)
Expand Down Expand Up @@ -2004,7 +2008,7 @@ function ManageStableBlip(site, closed)
if not Stables[site].Blip then
siteCfg.Blip = Citizen.InvokeNative(0x554d9d53f696d002, 1664425300, siteCfg.npc.coords) -- BlipAddForCoords
SetBlipSprite(siteCfg.Blip, siteCfg.blip.sprite, true)
Citizen.InvokeNative(0x9CB1A1623062F402, siteCfg.Blip, siteCfg.blip.name) -- SetBlipNameFromPlayerString
Citizen.InvokeNative(0x9CB1A1623062F402, siteCfg.Blip, siteCfg.blip.name) -- SetBlipName
end

local color = siteCfg.blip.color.open
Expand Down
2 changes: 1 addition & 1 deletion config/stables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Stables = {
},
blip = {
show = true, -- Show Blip On Map
showClosed = true, -- Show Blip On Map when Closed
showClosed = true, -- Show Blip On Map when Closed (if true, 'show' must be true)
name = 'Valentine Stable', -- Name of Blip on Map
sprite = 1938782895, -- Default: 1258184551
color = {
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ files {
"ui/img/*.*"
}

version '1.4.17'
version '1.4.18'

69 changes: 69 additions & 0 deletions languages/pt_lang.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---------------------------------- PORTUGUÊS -------------------------------------------
Locales["pt_lang"] = {
shopPrompt = "Abrir Estábulo",
callPrompt = "Chamar Cavalo",
returnPrompt = "Guardar Cavalo",
sellPrompt = "Vender",
keepPrompt = "Registar: $",
tradePrompt = "Negociar Cavalo",
drinkPrompt = "Beber",
restPrompt = "Descansar",
sleepPrompt = "Dormir",
wallowPrompt = "Chafurdar",
invPrompt = "Horse Cargo",
lootHorsePrompt = 'Abrir',
lootInventory = 'Horse Cargo',
closed = " ~o~: ~e~Fechado",
to = ":00~q~ to ~o~",
hundred = ":00",
hours = " Abre as ~o~",
shortGold = "Não tens ouro suficiente",
shortCash = "Não tens dinheiro suficiente",
needJob = "Não tens o emprego necessário!",
needJobGrade = "Não tens a classificação profissional exigida!",
horseLimit = "Podes ter no máximo ~o~",
horses = "~q~ Cavalos!",
soldHorse = "Vendes-te um cavalo por: $~t6~",
horseReturned = "O teu cavalo foi devolvido",
noHorse = "Não tens um cavalo!",
tamedCooldown = "Podes vender outro cavalo dentro de ~o~",
minutes = "~q~ minutos",
sellCooldown = "Vendes-te recentemente um cavalo, volta mais tarde!",
notDirty = " ainda não está pronto para ser escovado",
notHungry = " não tem fome!",
horseInv = "Alforjes",
noSaddlebags = "Precisas de umas alforges para armazenar os teus itens",
noHorses = "Não possuis nenhum cavalo",
noSelectedHorse = "Precisas de selecionar um cavalo!",
purchaseSuccessful = "Compra bem-sucedida!",
tooFar = "Não estás perto o suficiente do teu cavalo",
nameHorse = "Dá um nome ao teu cavalo:",
stableSpawn = "Deves ir a um estábulo para chamar o teu cavalo!",
standingInv = "Desce do cavalo para abrir as alforges",
youGave = "Des-te ",
aHorse = " um cavalo",
gaveHorse = " dei-te um cavalo",
needWater = " precisa de estar na água!",
trainerBuyHorse = "Só os Treinadores podem comprar cavalos!",
trainerSellHorse = "Só os Treinadores podem vender cavalos!",
trainerRegHorse = "Só os Treinadores podem registar cavalos!",
horsebrushDesc = "Escova de cavalos utilizada.",
durability = "Durabilidade: ",
noReviver = "Precisas de um medicamento para reviver cavalos!",
horseInfoCoat = 'Pelagem: ',
horseInfoHealth = 'Vida: ',
horseInfoStamina = 'Stamina: ',
horseInfoLevel = "Nível: ",
horseInfoCurXp = "XP: ",
horseInfoBondLevels = "Níveis",
horseInfoLvl_1 = "Nível 1: ",
horseInfoLvl_2 = "Nível 2: ",
horseInfoLvl_3 = "Nível 3: ",
horseInfoLvl_4 = "Nível 4: ",
horseInfoXp = " xp",
horseInfoTrickLvl_2 = "Truque: Rear-Up | left-ctrl + space",
horseInfoTrickLvl_3 = "Truque: Skid/Slide | left-ctrl",
horseInfoTrickLvl_4a = "Truque: Dance | space",
horseInfoTrickLvl_4b = "Andar para o lado | space + A or D",
horseDied = "O teu cavalo morreu, volta ao estábulo para selecionar um cavalo.",
}
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bcc-stables",

"version": "1.4.17",
"version": "1.4.18",

"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<1.4.17>
<1.4.18>
See GitHub for details!

0 comments on commit 82d2eff

Please sign in to comment.