Skip to content

Commit

Permalink
Merge pull request #121 from Swellington-Soares/main
Browse files Browse the repository at this point in the history
Fix language load pt-br.lua
  • Loading branch information
GhzGarage authored Oct 1, 2023
2 parents 32152c3 + 00479c9 commit 10f6614
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions locales/pt-br.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ local Translations = {
nobody_at_door = 'Não há ninguém na porta...'
},
success = {
receive_apart = 'Você conseguiu um apartamento',
receive_apart = 'Você recebeu um apartamento',
changed_apart = 'Você mudou de apartamento',
},
info = {
at_the_door = 'Alguém está na porta!',
},
text = {
options = '[E] Opções de Apartamento',
options = '[E] Opções do Apartamento',
enter = 'Entrar no Apartamento',
ring_doorbell = 'Tocar Interfone',
ring_doorbell = 'Tocar a Campainha',
logout = 'Sair do Personagem',
change_outfit = 'Trocar Visual',
change_outfit = 'Trocar de Roupa',
open_stash = 'Abrir Esconderijo',
move_here = 'Mover para Cá',
open_door = 'Abrir Porta',
Expand All @@ -26,7 +26,10 @@ local Translations = {
},
}

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

0 comments on commit 10f6614

Please sign in to comment.