Skip to content

Commit

Permalink
remove old language module and add pt-br language
Browse files Browse the repository at this point in the history
  • Loading branch information
Swellington-Soares committed Sep 30, 2024
1 parent 214f27f commit 19ee7cf
Show file tree
Hide file tree
Showing 15 changed files with 185 additions and 196 deletions.
6 changes: 3 additions & 3 deletions client/camera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ CreateThread(function()
end
local vehicle = cache.vehicle
local cam2 = CreateCam('DEFAULT_SCRIPTED_FLY_CAMERA', true)
local msg = Lang:t('info.title_breaking_news')
local bottom = Lang:t('info.bottom_breaking_news')
local title = Lang:t('info.breaking_news')
local msg =locale('info.title_breaking_news')
local bottom =locale('info.bottom_breaking_news')
local title =locale('info.breaking_news')
AttachCamToEntity(cam2, cache.ped, 0.0,0.0,1.0, true)
SetCamRot(cam2, 2.0,1.0,GetEntityHeading(cache.ped), 0)
SetCamFov(cam2, fov)
Expand Down
14 changes: 7 additions & 7 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local function setLocationBlip()
end

local function takeOutVehicle(vehType, coords)
local netId = lib.callback.await('qbx_newsjob:server:spawnVehicle', false, vehType, coords, Lang:t('info.news_plate')..tostring(math.random(1000, 9999)), true)
local netId = lib.callback.await('qbx_newsjob:server:spawnVehicle', false, vehType, coords,locale('info.news_plate')..tostring(math.random(1000, 9999)), true)
local timeout = 100
while not NetworkDoesEntityExistWithNetworkId(netId) and timeout > 0 do
Wait(10)
Expand Down Expand Up @@ -59,7 +59,7 @@ local function menuVehicleGarage()

lib.registerContext({
id = 'weazel_garage_context_menu',
title = Lang:t('info.weazel_news_vehicles'),
title =locale('info.weazel_news_vehicles'),
options = optionsMenu
})

Expand All @@ -82,7 +82,7 @@ local function menuHeliGarage()

lib.registerContext({
id = 'weazel_heli_context_menu',
title = Lang:t('info.weazel_news_helicopters'),
title =locale('info.weazel_news_helicopters'),
options = optionsMenu
})

Expand All @@ -104,7 +104,7 @@ local function registerMainEntrance()
icon = 'fa-solid fa-house',
type = 'client',
event = 'qbx_newsjob:client:target:enterLocation',
label = Lang:t("info.enter"),
label =locale("info.enter"),
distance = 1
},
},
Expand Down Expand Up @@ -146,7 +146,7 @@ local function registerMainExit()
icon = 'fa-solid fa-house',
type = 'client',
event = 'qbx_newsjob:client:target:exitLocation',
label = Lang:t("info.go_outside"),
label =locale("info.go_outside"),
distance = 1
},
},
Expand Down Expand Up @@ -202,7 +202,7 @@ local function registerEnterRoof()
icon = 'fa-solid fa-house',
type = 'client',
event = 'qbx_newsjob:client:target:enterRoof',
label = Lang:t("info.roof_enter"),
label =locale("info.roof_enter"),
distance = 1
},
},
Expand Down Expand Up @@ -258,7 +258,7 @@ local function registerExitRoof()
icon = 'fa-solid fa-house',
type = 'client',
event = 'qbx_newsjob:client:target:exitRoof',
label = Lang:t("info.roof_exit"),
label =locale("info.roof_exit"),
distance = 1
},
},
Expand Down
7 changes: 3 additions & 4 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ version '1.0.1'
shared_scripts {
'@ox_lib/init.lua',
'@qbx_core/modules/lib.lua',
'@qbx_core/shared/locale.lua',
'locales/en.lua',
'locales/*.lua',

}

client_scripts {
Expand All @@ -28,4 +26,5 @@ files {
}

lua54 'yes'
use_experimental_fxv2_oal 'yes'
use_experimental_fxv2_oal 'yes'
ox_lib 'locale'
28 changes: 28 additions & 0 deletions locales/cs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"error": {
"cant_spawn_vehicle": "Něco se pokazilo při spawnování vozidla",
"no_access": "K tomuto příkazu nemáte přístup."
},
"info": {
"weazle_overlay": "Weazel Overlay: \nFilm Overlay: [E] \nFilm Overlay: [M]",
"weazel_news_vehicles": "Weazel News Vozidlo",
"close_menu": "⬅ Zavřít menu",
"weazel_news_helicopters": "Weazel News Helikoptéra",
"store_vehicle": "[E] - Uložit vozidlo",
"vehicles": "[E] - Vehicles",
"store_helicopters": "[E] - Vytáhnout helikoptéru",
"helicopters": "[E] - Helikoptéra",
"enter": "[E] - Vstupte",
"go_outside": "[E] - Jdi ven",
"roof_enter": "[E] - Vstup na střechu",
"roof_exit": "[E] - Opustit střechu",
"breaking_news": "BREAKING NEWS",
"title_breaking_news": "Weazel Today - Breaking News Výhradní",
"bottom_breaking_news": "Přinášíme vám NEJVĚTŠÍ ZPRÁVY živě, jak se dějí",
"newscam": "Uchopte zpravodajskou kameru",
"newsmic": "Chyťte si zpravodajský mikrofon",
"newsbmic": "Uchopte mikrofon Boom",
"news_plate": "WZNW",
"blip_name": "Weazel News"
}
}
37 changes: 0 additions & 37 deletions locales/cs.lua

This file was deleted.

28 changes: 28 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"error": {
"cant_spawn_vehicle": "Something went wrong spawning the vehicle",
"no_access": "You don't have access to this command."
},
"info": {
"weazle_overlay": "Weazel Overlay: [E] \nFilm Overlay: [M]",
"weazel_news_vehicles": "Weazel News Vehicles",
"close_menu": "⬅ Close Menu",
"weazel_news_helicopters": "Weazel News Helicopters",
"store_vehicle": "[E] - Store the Vehicle",
"vehicles": "[E] - Vehicles",
"store_helicopters": "[E] - Store the Helicopters",
"helicopters": "[E] - Helicopters",
"enter": "[E] - Enter",
"go_outside": "[E] - Go outside",
"roof_enter": "[E] - Enter roof",
"roof_exit": "[E] - Exit roof",
"breaking_news": "BREAKING NEWS",
"title_breaking_news": "Weazel Today - Breaking News Exclusive",
"bottom_breaking_news": "We bring you the LATEST NEWS live as it happens",
"newscam": "Grab a news camera",
"newsmic": "Grab a news microphone",
"newsbmic": "Grab a Boom microphone",
"news_plate": "WZNW",
"blip_name": "Weazel News"
}
}
33 changes: 0 additions & 33 deletions locales/en.lua

This file was deleted.

27 changes: 27 additions & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"error": {
"cant_spawn_vehicle": "Something went wrong spawning the vehicle",
"no_access": "You don't have access to this command."
},
"info": {
"weazle_overlay": "Transmitir noticia en vivo ~INPUT_PICKUP~ \nGrabar noticia: ~INPUT_INTERACTION_MENU~",
"weazel_news_vehicles": "Vehículos Weazel News",
"close_menu": "⬅ Cerrar menu",
"weazel_news_helicopters": "Helicopteros Weazel News",
"store_vehicle": "[E] - Guardar vehículo",
"vehicles": "[E] - Vehículos",
"store_helicopters": "[E] - Guardar Helicoptero",
"helicopters": "[E] - Helicopteros",
"enter": "[E] - Entrar",
"go_outside": "[E] - Salir",
"roof_enter": "[E] - Enter roof",
"roof_exit": "[E] - Exit roof",
"breaking_news": "¡NOTICIA DE ULTIMA HORA!",
"title_breaking_news": "Weazel Today - Noticia de ultima hora",
"bottom_breaking_news": "Te traemos las ultimas noticias en vivo",
"newscam": "Grab a news camera",
"newsmic": "Grab a news microphone",
"newsbmic": "Grab a Boom microphone",
"news_plate": "WZNW"
}
}
35 changes: 0 additions & 35 deletions locales/es.lua

This file was deleted.

27 changes: 27 additions & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"error": {
"cant_spawn_vehicle": "Something went wrong spawning the vehicle",
"no_access": "You don't have access to this command."
},
"info": {
"weazle_overlay": "Overlay Weazel ~INPUT_PICKUP~ \nOverlay Film: ~INPUT_INTERACTION_MENU~",
"weazel_news_vehicles": "Vehicules Weazel-News",
"close_menu": "⬅ Fermer Menu",
"weazel_news_helicopters": "Hélicoptère Weazel News",
"store_vehicle": "[E] - Garer le véhicule",
"vehicles": "[E] - Véhicules",
"store_helicopters": "[E] - Garer l'hélicoptère",
"helicopters": "[E] - Hélicoptères",
"enter": "[E] - Entrer",
"go_outside": "[E] - Sortir",
"roof_enter": "[E] - Enter roof",
"roof_exit": "[E] - Exit roof",
"breaking_news": "BREAKING NEWS",
"title_breaking_news": "Weazel Today - Breaking News Exclusive",
"bottom_breaking_news": "We bring you the LATEST NEWS live as it happens",
"newscam": "Grab a news camera",
"newsmic": "Grab a news microphone",
"newsbmic": "Grab a Boom microphone",
"news_plate": "WZNW"
}
}
35 changes: 0 additions & 35 deletions locales/fr.lua

This file was deleted.

28 changes: 28 additions & 0 deletions locales/pt-br.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"error": {
"cant_spawn_vehicle": "Algo deu errado ao spawnar o veículo",
"no_access": "Você não tem acesso a este comando."
},
"info": {
"weazle_overlay": "Sobreposição Weazel: [E] \nSobreposição de Filme: [M]",
"weazel_news_vehicles": "Veículos da Weazel News",
"close_menu": "⬅ Fechar Menu",
"weazel_news_helicopters": "Helicópteros da Weazel News",
"store_vehicle": "[E] - Guardar o Veículo",
"vehicles": "[E] - Veículos",
"store_helicopters": "[E] - Guardar os Helicópteros",
"helicopters": "[E] - Helicópteros",
"enter": "[E] - Entrar",
"go_outside": "[E] - Sair",
"roof_enter": "[E] - Entrar no telhado",
"roof_exit": "[E] - Sair do telhado",
"breaking_news": "NOTÍCIAS DE URGÊNCIA",
"title_breaking_news": "Weazel Hoje - Exclusivo de Notícias de Urgência",
"bottom_breaking_news": "Trazemos as NOTÍCIAS MAIS RECENTES ao vivo conforme acontecem",
"newscam": "Pegue uma câmera de notícias",
"newsmic": "Pegue um microfone de notícias",
"newsbmic": "Pegue um microfone Boom",
"news_plate": "WZNW",
"blip_name": "Weazel News"
}
}
Loading

0 comments on commit 19ee7cf

Please sign in to comment.