Skip to content

Commit

Permalink
Add Brazilian Portuguese translations (#85)
Browse files Browse the repository at this point in the history
* add pt-br language support

* add pt-br language support (wrong file added fix)

* Bump

---------

Co-authored-by: zwkf <[email protected]>
  • Loading branch information
ggfto and S33G authored Feb 24, 2023
1 parent 7dd6c1b commit 74d3ed1
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fx_version 'cerulean'
game 'gta5'

description 'QB-Diving'
version '1.2.0'
version '1.2.1'

shared_script {
'@qb-core/shared/locale.lua',
Expand Down
43 changes: 43 additions & 0 deletions locales/pt-br.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
local Translations = {
error = {
["canceled"] = "Cancelado",
["911_chatmessage"] = "911 MENSAGEM",
["take_off"] = "/divingsuit para tirar a roupa de mergulho",
["not_wearing"] = "Você não está usando equipamento de mergulho..",
["no_coral"] = "Você não tem nenhum coral para vender..",
["not_standing_up"] = "Você precisa estar de pé para colocar o equipamento de mergulho",
["need_otube"] = "você precisa de tubo de oxigênio",
["oxygenlevel"] = 'o nível do equipamento é %{oxygenlevel}, deve ser 0%'
},
success = {
["took_out"] = "Você tirou sua roupa de mergulho",
["tube_filled"] = "O tubo foi preenchido com sucesso"
},
info = {
["collecting_coral"] = "Coletando coral",
["diving_area"] = "Área de mergulho",
["collect_coral"] = "Colete o Coral",
["collect_coral_dt"] = "[E] - Colete o Coral",
["checking_pockets"] = "Verificando bolsos para vender coral",
["sell_coral"] = "Vender Coral",
["sell_coral_dt"] = "[E] - Vender Coral",
["blip_text"] = "911 - Local de Mergulho",
["put_suit"] = "Vestir traje de mergulho",
["pullout_suit"] = "Retirar traje de mergulho ..",
["cop_msg"] = "Este coral pode ser roubado",
["cop_title"] = "Mergulho ilegal",
["command_diving"] = "Remova seu traje de mergulho",
},
warning = {
["oxygen_one_minute"] = "Você tem menos de 1 minuto de ar restante",
["oxygen_running_out"] = "Seu equipamento de mergulho está ficando sem ar",
},
}

if GetConvar('qb_locale', 'en') == 'pt-br' then
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true,
fallbackLang = Lang,
})
end

0 comments on commit 74d3ed1

Please sign in to comment.