Pt translations, some helper functions

master
Henrique Santiago 11 years ago
parent c3eede9872
commit bc55cbbbd1

@ -26,8 +26,8 @@ locale = {
["4c) False Report to Gamemaster"] = "4c) Relatório falso para Gamemaster", ["4c) False Report to Gamemaster"] = "4c) Relatório falso para Gamemaster",
["Accept"] = "Aceitar", ["Accept"] = "Aceitar",
["Account name"] = "Nome da conta", ["Account name"] = "Nome da conta",
["Account Status:"] = false, ["Account Status:"] = "Estado da Conta:",
["Action:"] = "Ação:", ["Action"] = "Ação",
["Add"] = "Adicionar", ["Add"] = "Adicionar",
["Add new VIP"] = "Adicionar nova VIP", ["Add new VIP"] = "Adicionar nova VIP",
["Addon 1"] = "Addon 1", ["Addon 1"] = "Addon 1",
@ -41,7 +41,6 @@ locale = {
["Allow auto chase override"] = "Permitir sobrescrever o modo de perseguição", ["Allow auto chase override"] = "Permitir sobrescrever o modo de perseguição",
["Also known as dash in tibia community, recommended\nfor playing characters with high speed"] = "Também conhecido como dash na comunidade tibiana, recomendado\npara jogar com personagem que possuam velocidade alta", ["Also known as dash in tibia community, recommended\nfor playing characters with high speed"] = "Também conhecido como dash na comunidade tibiana, recomendado\npara jogar com personagem que possuam velocidade alta",
["Ambient light: %s%%"] = "Luz ambiente: %s%%", ["Ambient light: %s%%"] = "Luz ambiente: %s%%",
["Amount:"] = "Quantidade:",
["Amount"] = "Quantidade", ["Amount"] = "Quantidade",
["Anonymous"] = "Anônimo", ["Anonymous"] = "Anônimo",
["Are you sure you want to logout?"] = "Você tem certeza que quer sair?", ["Are you sure you want to logout?"] = "Você tem certeza que quer sair?",
@ -52,7 +51,7 @@ locale = {
["Auto login"] = "Entrar automaticamente", ["Auto login"] = "Entrar automaticamente",
["Auto login selected character on next charlist load"] = "Entrar automaticamente com o personagem quando reabrir a lista de personagens", ["Auto login selected character on next charlist load"] = "Entrar automaticamente com o personagem quando reabrir a lista de personagens",
["Axe Fighting"] = "Combate com Machado", ["Axe Fighting"] = "Combate com Machado",
["Balance:"] = "Saldo:", ["Balance"] = "Saldo",
["Banishment"] = "Banimento", ["Banishment"] = "Banimento",
["Banishment + Final Warning"] = "Banimento + Aviso final", ["Banishment + Final Warning"] = "Banimento + Aviso final",
["Battle"] = "Batalha", ["Battle"] = "Batalha",
@ -79,11 +78,11 @@ locale = {
["Close this channel"] = "Fechar esse canal", ["Close this channel"] = "Fechar esse canal",
["Club Fighting"] = "Combate com Porrete", ["Club Fighting"] = "Combate com Porrete",
["Combat Controls"] = "Controles de combate", ["Combat Controls"] = "Controles de combate",
["Comment:"] = "Comentário:", ["Comment"] = "Comentário",
["Connecting to game server..."] = "Conectando no servidor do jogo...", ["Connecting to game server..."] = "Conectando no servidor do jogo...",
["Connecting to login server..."] = "Conectando no servidor de autenticação...", ["Connecting to login server..."] = "Conectando no servidor de autenticação...",
["Console"] = "Console", ["Console"] = "Console",
["Cooldowns"] = false, ["Cooldowns"] = "Cooldowns",
["Copy message"] = "Copiar mensagem", ["Copy message"] = "Copiar mensagem",
["Copy name"] = "Copiar nome", ["Copy name"] = "Copiar nome",
["Copy Name"] = "Copiar Nome", ["Copy Name"] = "Copiar Nome",
@ -105,7 +104,7 @@ locale = {
["Dismount"] = "Desmontar", ["Dismount"] = "Desmontar",
["Display connection speed to the server (milliseconds)"] = "Exibir a velocidade de conexão com o servidor (milisegundos)", ["Display connection speed to the server (milliseconds)"] = "Exibir a velocidade de conexão com o servidor (milisegundos)",
["Distance Fighting"] = "Combate a Distância", ["Distance Fighting"] = "Combate a Distância",
["Don't stretch/shrink Game Window"] = "Não esticar a janela do game", ["Don't stretch or shrink Game Window"] = "Não esticar ou contrair a janela do game",
["Edit hotkey text:"] = "Editar texto do atalho", ["Edit hotkey text:"] = "Editar texto do atalho",
["Edit List"] = "Editar lista", ["Edit List"] = "Editar lista",
["Edit Text"] = "Editar Texto", ["Edit Text"] = "Editar Texto",
@ -118,61 +117,60 @@ locale = {
["Enter one name per line."] = "Entre somente um nome por linha.", ["Enter one name per line."] = "Entre somente um nome por linha.",
["Enter with your account again to update your client."] = "Entre com sua conta denovo para atualizar o client.", ["Enter with your account again to update your client."] = "Entre com sua conta denovo para atualizar o client.",
["Error"] = "Erro", ["Error"] = "Erro",
["Error"] = "Erro",
["Excessive Unjustified Player Killing"] = "Assassinato em excesso, sem justificativa, de jogadores", ["Excessive Unjustified Player Killing"] = "Assassinato em excesso, sem justificativa, de jogadores",
["Exclude from private chat"] = "Excluir do canal privado", ["Exclude from private chat"] = "Excluir do canal privado",
["Exit"] = "Sair", ["Exit"] = "Sair",
["Experience"] = "Experiência", ["Experience"] = "Experiência",
["Filter list to match your level"] = "Filtrar a lista para o seu level", ["Filter list to match your level"] = "Filtrar a lista para o seu level",
["Filter list to match your vocation"] = "Filtrar a lista para a sua vocação", ["Filter list to match your vocation"] = "Filtrar a lista para a sua vocação",
["Find:"] = "Procurar", ["Find"] = "Procurar",
["Fishing"] = "Pesca", ["Fishing"] = "Pesca",
["Fist Fighting"] = "Porrada", ["Fist Fighting"] = "Porrada",
["Follow"] = "Seguir", ["Follow"] = "Seguir",
["Force Exit"] = "Forçar Saida", ["Force Exit"] = "Forçar Saida",
["For Your Information"] = "Para sua informação", ["For Your Information"] = "Para sua informação",
["Free Account"] = false, ["Free Account"] = "Conta Grátis",
["Fullscreen"] = "Tela cheia", ["Fullscreen"] = "Tela cheia",
["Game"] = "Jogo", ["Game"] = "Jogo",
["Game framerate limit: %s"] = "Limite da taxa de quadros do jogo: %s", ["Game framerate limit: %s"] = "Limite da taxa de quadros do jogo: %s",
["Graphics"] = "Gráficos", ["Graphics"] = "Gráficos",
["Graphics card driver not detected"] = false, ["Graphics card driver not detected"] = "Driver da placa de vídeo não detectado",
["Graphics Engine:"] = "Motor Gráfico:", ["Graphics Engine:"] = "Motor Gráfico:",
["Head"] = "Cabeça", ["Head"] = "Cabeça",
["Healing"] = false, ["Healing"] = "Curando",
["Health Info"] = "Barra de Vida", ["Health Info"] = "Barra de Vida",
["Health Information"] = "Informação de vida", ["Health Information"] = "Informação de vida",
["Hide monsters"] = "Esconder montros", ["Hide monsters"] = "Esconder montros",
["Hide non-skull players"] = "Esconder jogadores sem caveira", ["Hide non-skull players"] = "Esconder jogadores sem caveira",
["Hide Npcs"] = "Esconder NPCs", ["Hide Npcs"] = "Esconder NPCs",
["Hide Offline"] = false, ["Hide Offline"] = "Esconder Offline",
["Hide party members"] = "Esconder membros do grupo", ["Hide party members"] = "Esconder membros do grupo",
["Hide players"] = "Esconder jogadores", ["Hide players"] = "Esconder jogadores",
["Hide spells for higher exp. levels"] = false, ["Hide spells for higher exp. levels"] = "Esconder feitiços de nível maior",
["Hide spells for other vocations"] = false, ["Hide spells for other vocations"] = "Esconder feitiços de outras vocações",
["Hit Points"] = "Pontos de Vida", ["Hit Points"] = "Pontos de Vida",
["Hold left mouse button to navigate\nScroll mouse middle button to zoom\nRight mouse button to create map marks"] = false, ["Hold left mouse button to navigate\nScroll mouse middle button to zoom\nRight mouse button to create map marks"] = "Segure o botão esquerdo para navegar\nGire o botão do centro do mouse para ampliar\nClique com o botão direito do mouse para criar marcas",
["Hotkeys"] = "Atalhos", ["Hotkeys"] = "Atalhos",
["If you shut down the program, your character might stay in the game.\nClick on 'Logout' to ensure that you character leaves the game properly.\nClick on 'Exit' if you want to exit the program without logging out your character."] = "Se você desligar o programa o seu personagem pode continuar no jogo.\nClique em 'Sair' para assegurar que seu personagem saia do jogo adequadamente.\nClique em 'Forçar Saida' para fechar o programa sem desconectar seu personagem.", ["If you shut down the program, your character might stay in the game.\nClick on 'Logout' to ensure that you character leaves the game properly.\nClick on 'Exit' if you want to exit the program without logging out your character."] = "Se você desligar o programa o seu personagem pode continuar no jogo.\nClique em 'Sair' para assegurar que seu personagem saia do jogo adequadamente.\nClique em 'Forçar Saida' para fechar o programa sem desconectar seu personagem.",
["Ignore"] = false, ["Ignore"] = "Ignorar",
["Ignore capacity"] = "Ignorar capacidade", ["Ignore capacity"] = "Ignorar capacidade",
["Ignored players:"] = false, ["Ignored players:"] = "Joadores ignorados:",
["Ignore equipped"] = "Ignorar equipado", ["Ignore equipped"] = "Ignorar equipado",
["Ignore List"] = false, ["Ignore List"] = "Lista de Ignorados",
["Ignore players"] = false, ["Ignore players"] = "Jogadores ignorados",
["Ignore Private Messages"] = false, ["Ignore Private Messages"] = "Ignorar mensagens privadas",
["Ignore Yelling"] = false, ["Ignore Yelling"] = "Ignorar gritos",
["Interface framerate limit: %s"] = "Limite da taxa de quadros da interface: %s", ["Interface framerate limit: %s"] = "Limite da taxa de quadros da interface: %s",
["Inventory"] = "Inventário", ["Inventory"] = "Inventário",
["Invite to Party"] = "Convidar para o grupo", ["Invite to Party"] = "Convidar para o grupo",
["Invite to private chat"] = "Convidar para o canal privado", ["Invite to private chat"] = "Convidar para o canal privado",
["IP Address Banishment"] = "Banimento de endereço IP", ["IP Address Banishment"] = "Banimento de endereço IP",
["Item Offers"] = "Ofertas de items", ["Item Offers"] = "Ofertas de items",
["It is empty."] = false, ["It is empty."] = "Está vazio.",
["Join %s's Party"] = "Entrar na party do %s", ["Join %s's Party"] = "Entrar na party do %s",
["Leave Party"] = "Sair do grupo", ["Leave Party"] = "Sair do grupo",
["Level"] = "Nível", ["Level"] = "Nível",
["Lifetime Premium Account"] = false, ["Lifetime Premium Account"] = "Conta Premium para a vida toda.",
["Limits FPS to 60"] = "Limita o FPS para 60", ["Limits FPS to 60"] = "Limita o FPS para 60",
["List of items that you're able to buy"] = "Lista de itens que você pode comprar", ["List of items that you're able to buy"] = "Lista de itens que você pode comprar",
["List of items that you're able to sell"] = "Lista de itens que você pode vender", ["List of items that you're able to sell"] = "Lista de itens que você pode vender",
@ -180,7 +178,6 @@ locale = {
["Logging out..."] = "Saindo...", ["Logging out..."] = "Saindo...",
["Login"] = "Entrar", ["Login"] = "Entrar",
["Login Error"] = "Erro de Autenticação", ["Login Error"] = "Erro de Autenticação",
["Login Error"] = "Erro de Autenticação",
["Logout"] = "Sair", ["Logout"] = "Sair",
["Look"] = "Olhar", ["Look"] = "Olhar",
["Magic Level"] = "Nível Mágico", ["Magic Level"] = "Nível Mágico",
@ -195,11 +192,11 @@ locale = {
["Minimap"] = "Minimapa", ["Minimap"] = "Minimapa",
["Module Manager"] = "Gerenciador de Módulos", ["Module Manager"] = "Gerenciador de Módulos",
["Module name"] = "Nome do módulo", ["Module name"] = "Nome do módulo",
["Mount"] = false, ["Mount"] = "Montar",
["Move Stackable Item"] = "Mover item contável", ["Move Stackable Item"] = "Mover item contável",
["Move up"] = "Mover para cima", ["Move up"] = "Mover para cima",
["My Offers"] = "Minhas ofertas", ["My Offers"] = "Minhas ofertas",
["Name:"] = "Nome:", ["Name"] = "Nome",
["Name Report"] = "Reportar Nome", ["Name Report"] = "Reportar Nome",
["Name Report + Banishment"] = "Reportar Nome + Banimento", ["Name Report + Banishment"] = "Reportar Nome + Banimento",
["Name Report + Banishment + Final Warning"] = "Reportar Nome + Banimento + Aviso Final", ["Name Report + Banishment + Final Warning"] = "Reportar Nome + Banimento + Aviso Final",
@ -213,42 +210,42 @@ locale = {
["NPC Trade"] = "Troca com NPC", ["NPC Trade"] = "Troca com NPC",
["Offer History"] = "Histórico de ofertas", ["Offer History"] = "Histórico de ofertas",
["Offers"] = "Ofertas", ["Offers"] = "Ofertas",
["Offer Type:"] = "Tipo de oferta:", ["Offer Type"] = "Tipo de oferta",
["Offline Training"] = "Treino Offline", ["Offline Training"] = "Treino Offline",
["Ok"] = "Ok", ["Ok"] = "Ok",
["on %s.\n"] = "em %s.\n", ["on %s.\n"] = "em %s.\n",
["Open"] = "Abrir", ["Open"] = "Abrir",
["Open a private message channel:"] = "Abrir um canal privado:", ["Open a private message channel:"] = "Abrir um canal privado:",
["Open charlist automatically when starting client"] = false, ["Open charlist automatically when starting client"] = "Abrir lista de personagens ao iniciar o cliente",
["Open in new window"] = "Abrir em nova janela", ["Open in new window"] = "Abrir em nova janela",
["Open new channel"] = "Abrir novo canal", ["Open new channel"] = "Abrir novo canal",
["Options"] = "Opções", ["Options"] = "Opções",
["Overview"] = "Visão geral", ["Overview"] = "Visão geral",
["Pass Leadership to %s"] = "Passar liderança para %s", ["Pass Leadership to %s"] = "Passar liderança para %s",
["Password"] = "Senha", ["Password"] = "Senha",
["Piece Price:"] = "Preço por peça:", ["Piece Price"] = "Preço por peça",
["Please enter a character name:"] = "Por favor, entre com o nome do personagem:", ["Please enter a character name:"] = "Por favor, entre com o nome do personagem:",
["Please, press the key you wish to add onto your hotkeys manager"] = "Por favor, pressione a tecla que você deseja\nadicionar no gerenciador de atalhos", ["Please, press the key you wish to add onto your hotkeys manager"] = "Por favor, pressione a tecla que você deseja\nadicionar no gerenciador de atalhos",
["Please Select"] = "Por favor, selecione algo", ["Please Select"] = "Por favor, selecione algo",
["Please use this dialog to only report bugs. Do not report rule violations here!"] = "Por favor, use este campo apenas para reportar defeitos. Não reporte violação de regras aqui!", ["Please use this dialog to only report bugs. Do not report rule violations here!"] = "Por favor, use este campo apenas para reportar defeitos. Não reporte violação de regras aqui!",
["Please wait"] = "Por favor, espere", ["Please wait"] = "Por favor, espere",
["Port"] = "Porta", ["Port"] = "Porta",
["Position:"] = false, ["Position"] = "Posição",
["Position: %i %i %i"] = false, ["Position: %i %i %i"] = "Posição: %i %i %i",
["Premium Account (%s) days left"] = false, ["Premium Account (%s) days left"] = "Conta Premium (%s) dias faltando",
["Price:"] = "Preço", ["Price"] = "Preço",
["Primary"] = "Primário", ["Primary"] = "Primário",
["Protocol"] = "Protocolo", ["Protocol"] = "Protocolo",
["Quest Log"] = "Registro de Quest", ["Quest Log"] = "Registro de Quest",
["Randomize"] = "Embaralhar", ["Randomize"] = "Embaralhar",
["Randomize characters outfit"] = "Gerar roupa aleatória", ["Randomize characters outfit"] = "Gerar roupa aleatória",
["Reason:"] = "Motivo:", ["Reason"] = "Motivo",
["Refresh"] = "Atualizar", ["Refresh"] = "Atualizar",
["Refresh Offers"] = "Atualizar Ofertas", ["Refresh Offers"] = "Atualizar Ofertas",
["Regeneration Time"] = "Tempo de Regeneração", ["Regeneration Time"] = "Tempo de Regeneração",
["Reject"] = "Rejeitar", ["Reject"] = "Rejeitar",
["Reload All"] = "Recarregar Todos", ["Reload All"] = "Recarregar Todos",
["Remember account and password when starts client"] = false, ["Remember account and password when starts client"] = "Lembrar conta e senha quando iniciar o cliente",
["Remember password"] = "Lembrar senha", ["Remember password"] = "Lembrar senha",
["Remove"] = "Remover", ["Remove"] = "Remover",
["Remove %s"] = "Remover %s", ["Remove %s"] = "Remover %s",
@ -258,20 +255,20 @@ locale = {
["Revoke %s's Invitation"] = "Não aceitar o convite do %s", ["Revoke %s's Invitation"] = "Não aceitar o convite do %s",
["Rotate"] = "Girar", ["Rotate"] = "Girar",
["Rule Violation"] = "Violação de regra", ["Rule Violation"] = "Violação de regra",
["Save"] = false, ["Save"] = "Salvar",
["Save Messages"] = false, ["Save Messages"] = "Salvar Mensagens",
["Search:"] = "Procurar:", ["Search"] = "Procurar",
["Search all items"] = "Procurar todos os items", ["Search all items"] = "Procurar todos os items",
["Secondary"] = "Secundário", ["Secondary"] = "Secundário",
["Select object"] = "Selecionar objeto", ["Select object"] = "Selecionar objeto",
["Select Outfit"] = "Selecionar Roupa", ["Select Outfit"] = "Selecionar Roupa",
["Select your language"] = false, ["Select your language"] = "Selecione sua língua",
["Sell"] = "Vender", ["Sell"] = "Vender",
["Sell Now"] = "Vender agora", ["Sell Now"] = "Vender agora",
["Sell Offers"] = "Ofertas de venda", ["Sell Offers"] = "Ofertas de venda",
["Send"] = "Enviar", ["Send"] = "Enviar",
["Send automatically"] = "Enviar automaticamente", ["Send automatically"] = "Enviar automaticamente",
["Send Message"] = false, ["Send Message"] = "Enviar Mensagem",
["Server"] = "Servidor", ["Server"] = "Servidor",
["Server Log"] = "Registro do servidor", ["Server Log"] = "Registro do servidor",
["Set Outfit"] = "Escolher Roupa", ["Set Outfit"] = "Escolher Roupa",
@ -284,10 +281,10 @@ locale = {
["Show info messages in console"] = "Exibir mensagens informativas no console", ["Show info messages in console"] = "Exibir mensagens informativas no console",
["Show left panel"] = "Mostrar barra lateral esquerda", ["Show left panel"] = "Mostrar barra lateral esquerda",
["Show levels in console"] = "Exibir níveis no console", ["Show levels in console"] = "Exibir níveis no console",
["Show Offline"] = false, ["Show Offline"] = "Mostrar Offline",
["Show private messages in console"] = "Exibir mensagens privadas no console", ["Show private messages in console"] = "Exibir mensagens privadas no console",
["Show private messages on screen"] = "Exibir mensagens na tela", ["Show private messages on screen"] = "Exibir mensagens na tela",
["Show Server Messages"] = false, ["Show Server Messages"] = "Mostrar Mensagens do Servidor",
["Show status messages in console"] = "Exibir mensagens de estado no console", ["Show status messages in console"] = "Exibir mensagens de estado no console",
["Show Text"] = "Mostrar texto", ["Show Text"] = "Mostrar texto",
["Show timestamps in console"] = "Exibir o horário no console", ["Show timestamps in console"] = "Exibir o horário no console",
@ -295,17 +292,17 @@ locale = {
["Skills"] = "Habilidades", ["Skills"] = "Habilidades",
["Soul"] = "Alma", ["Soul"] = "Alma",
["Soul Points"] = "Pontos de Alma", ["Soul Points"] = "Pontos de Alma",
["Special"] = false, ["Special"] = "Especial",
["Speed"] = "Velocidade", ["Speed"] = "Velocidade",
["Spell Cooldowns"] = false, ["Spell Cooldowns"] = "",
["Spell List"] = false, ["Spell List"] = "Lista de Feitiços",
["Stamina"] = "Vigor", ["Stamina"] = "Vigor",
["Statement:"] = "Afirmação:", ["Statement"] = "Afirmação",
["Statement Report"] = "Afirmar Relato", ["Statement Report"] = "Afirmar Relato",
["Statistics"] = "Estatísticas", ["Statistics"] = "Estatísticas",
["Stop Attack"] = "Parar de Atacar", ["Stop Attack"] = "Parar de Atacar",
["Stop Follow"] = "Parar de Seguir", ["Stop Follow"] = "Parar de Seguir",
["Support"] = false, ["Support"] = "Suporte",
["%s: (use object)"] = "%s: (usar objeto)", ["%s: (use object)"] = "%s: (usar objeto)",
["%s: (use object on target)"] = "%s: (usar objeto no alvo)", ["%s: (use object on target)"] = "%s: (usar objeto no alvo)",
["%s: (use object on yourself)"] = "%s: (usar objeto em si)", ["%s: (use object on yourself)"] = "%s: (usar objeto em si)",
@ -313,17 +310,17 @@ locale = {
["Sword Fighting"] = "Combate com Espada", ["Sword Fighting"] = "Combate com Espada",
["Terminal"] = "Terminal", ["Terminal"] = "Terminal",
["There is no way."] = "Não há rota", ["There is no way."] = "Não há rota",
["Title"] = false, ["Title"] = "Título",
["Total Price:"] = "Preço total:", ["Total Price"] = "Preço total",
["Trade"] = "Trocar", ["Trade"] = "Trocar",
["Trade with ..."] = "Trocar com ...", ["Trade with ..."] = "Trocar com ...",
["Trying to reconnect in %s seconds."] = "Tentando reconectar em %s segundos.", ["Trying to reconnect in %s seconds."] = "Tentando reconectar em %s segundos.",
["Unable to load dat file, please place a valid dat in '%s'"] = "Não foi possível carregar o arquivo dat, por favor coloque um arquivo válido em %s", ["Unable to load dat file, please place a valid dat in '%s'"] = "Não foi possível carregar o arquivo dat, por favor coloque um arquivo válido em %s",
["Unable to load spr file, please place a valid spr in '%s'"] = "Não foi possível carregar o arquivo spr, por favor coloque um arquivo válido em %s", ["Unable to load spr file, please place a valid spr in '%s'"] = "Não foi possível carregar o arquivo spr, por favor coloque um arquivo válido em %s",
["Unable to logout."] = "Não é possivel sair", ["Unable to logout."] = "Não é possivel sair",
["Unignore"] = false, ["Unignore"] = "Designorar",
["Unload"] = "Descarregar", ["Unload"] = "Descarregar",
["Update needed"] = false, ["Update needed"] = "Atualização necessária",
["Use"] = "Usar", ["Use"] = "Usar",
["Use on target"] = "Usar no alvo", ["Use on target"] = "Usar no alvo",
["Use on yourself"] = "Usar em si", ["Use on yourself"] = "Usar em si",
@ -331,10 +328,10 @@ locale = {
["Version"] = "Versão", ["Version"] = "Versão",
["VIP List"] = "Lista VIP", ["VIP List"] = "Lista VIP",
["Voc."] = "Voc.", ["Voc."] = "Voc.",
["Vocation"] = false, ["Vocation"] = "Vocação",
["Waiting List"] = "Lista de espera", ["Waiting List"] = "Lista de espera",
["Website"] = "Website", ["Website"] = "Website",
["Weight:"] = "Peso", ["Weight"] = "Peso",
["Will detect when to use diagonal step based on the\nkeys you are pressing"] = "Detectar quando usar o passo diagonal\nbaseado nas teclas pressionadas", ["Will detect when to use diagonal step based on the\nkeys you are pressing"] = "Detectar quando usar o passo diagonal\nbaseado nas teclas pressionadas",
["With crosshair"] = "Com mira", ["With crosshair"] = "Com mira",
["Yes"] = "Sim", ["Yes"] = "Sim",
@ -363,10 +360,11 @@ locale = {
["You must enter a comment."] = "Você precisa entrar com um comentário", ["You must enter a comment."] = "Você precisa entrar com um comentário",
["You must enter a valid server address and port."] = "Você precisa colocar um endereço e uma porta do servidor válidos.", ["You must enter a valid server address and port."] = "Você precisa colocar um endereço e uma porta do servidor válidos.",
["You must select a character to login!"] = "Você deve selecionar um personagem para entrar!", ["You must select a character to login!"] = "Você deve selecionar um personagem para entrar!",
["Your Capacity:"] = "Sua capacidade:", ["Your Capacity"] = "Sua capacidade",
["You read the following, written by \n%s\n"] = "Você lê o seguinte, escrito por \n%s\n", ["You read the following, written by \n%s\n"] = "Você lê o seguinte, escrito por \n%s\n",
["You read the following, written on \n%s.\n"] = false, ["You read the following, written on \n%s.\n"] = "Você lê o seguinte, escrito em \n%s.\n",
["Your Money:"] = "Seu dinheiro:", ["Your Money"] = "Seu dinheiro",
["Change language"] = "Trocar língua",
} }
} }

@ -130,6 +130,7 @@ end
function setLocale(name) function setLocale(name)
local locale = installedLocales[name] local locale = installedLocales[name]
if locale == currentLocale then return end
if not locale then if not locale then
pwarning("Locale " .. name .. ' does not exist.') pwarning("Locale " .. name .. ' does not exist.')
return false return false

@ -20,10 +20,6 @@ function init()
addEvent(listModules) addEvent(listModules)
end end
function hideButton()
moduleManagerButton:hide()
end
function terminate() function terminate()
moduleManagerWindow:destroy() moduleManagerWindow:destroy()
moduleManagerWindow = nil moduleManagerWindow = nil
@ -32,6 +28,10 @@ function terminate()
moduleList = nil moduleList = nil
end end
function disable()
moduleManagerButton:hide()
end
function hide() function hide()
moduleManagerWindow:hide() moduleManagerWindow:hide()
end end

@ -37,3 +37,4 @@ Panel
anchors.top: prev.bottom anchors.top: prev.bottom
anchors.left: prev.left anchors.left: prev.left
margin-top: 5 margin-top: 5
width: 120

@ -178,6 +178,11 @@ function hide()
terminalWindow:hide() terminalWindow:hide()
end end
function disable()
terminalButton:hide()
g_keyboard.unbindKeyDown('Ctrl+T')
end
function addLine(text, color) function addLine(text, color)
-- delete old lines if needed -- delete old lines if needed
local numLines = terminalBuffer:getChildCount() + 1 local numLines = terminalBuffer:getChildCount() + 1

@ -50,7 +50,7 @@ function init()
gameBottomPanel = gameRootPanel:getChildById('gameBottomPanel') gameBottomPanel = gameRootPanel:getChildById('gameBottomPanel')
connect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange }) connect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
logoutButton = modules.client_topmenu.addLeftButton('logoutButton', 'Exit', '/images/topbuttons/logout', tryLogout, true) logoutButton = modules.client_topmenu.addLeftButton('logoutButton', tr('Exit'), '/images/topbuttons/logout', tryLogout, true)
bindKeys() bindKeys()

@ -15,13 +15,15 @@ quantityScroll = nil
nameLabel = nil nameLabel = nil
priceLabel = nil priceLabel = nil
moneyLabel = nil moneyLabel = nil
weightDesc = nil
weightLabel = nil weightLabel = nil
capacityDesc = nil
capacityLabel = nil capacityLabel = nil
tradeButton = nil tradeButton = nil
buyTab = nil buyTab = nil
sellTab = nil sellTab = nil
showCapacity = true showWeight = true
buyWithBackpack = nil buyWithBackpack = nil
ignoreCapacity = nil ignoreCapacity = nil
ignoreEquipped = nil ignoreEquipped = nil
@ -47,7 +49,9 @@ function init()
nameLabel = setupPanel:getChildById('name') nameLabel = setupPanel:getChildById('name')
priceLabel = setupPanel:getChildById('price') priceLabel = setupPanel:getChildById('price')
moneyLabel = setupPanel:getChildById('money') moneyLabel = setupPanel:getChildById('money')
weightDesc = setupPanel:getChildById('weightDesc')
weightLabel = setupPanel:getChildById('weight') weightLabel = setupPanel:getChildById('weight')
capacityDesc = setupPanel:getChildById('capacityDesc')
capacityLabel = setupPanel:getChildById('capacity') capacityLabel = setupPanel:getChildById('capacity')
tradeButton = npcWindow:recursiveGetChildById('tradeButton') tradeButton = npcWindow:recursiveGetChildById('tradeButton')
@ -195,8 +199,16 @@ function setCurrency(currency)
CURRENCY = currency CURRENCY = currency
end end
function showCapacity(state) function setShowWeight(state)
showCapacity = state showWeight = state
weightDesc:setVisible(state)
weightLabel:setVisible(state)
end
function setShowYourCapacity(state)
capacityDesc:setVisible(state)
capacityLabel:setVisible(state)
ignoreCapacity:setVisible(state)
end end
function clearSelectedItem() function clearSelectedItem()
@ -320,7 +332,7 @@ function refreshTradeItems()
local text = '' local text = ''
local name = item.name local name = item.name
text = text .. name text = text .. name
if showCapacity then if showWeight then
local weight = string.format('%.2f', item.weight) .. ' ' .. WEIGHT_UNIT local weight = string.format('%.2f', item.weight) .. ' ' .. WEIGHT_UNIT
text = text .. '\n' .. weight text = text .. '\n' .. weight
end end
@ -378,7 +390,6 @@ function onOpenNpcTrade(items)
tradeItems[SELL] = {} tradeItems[SELL] = {}
for key,item in pairs(items) do for key,item in pairs(items) do
if item[4] > 0 then if item[4] > 0 then
local newItem = {} local newItem = {}
newItem.ptr = item[1] newItem.ptr = item[1]
@ -387,7 +398,7 @@ function onOpenNpcTrade(items)
newItem.price = item[4] newItem.price = item[4]
table.insert(tradeItems[BUY], newItem) table.insert(tradeItems[BUY], newItem)
end end
if item[5] > 0 then if item[5] > 0 then
local newItem = {} local newItem = {}
newItem.ptr = item[1] newItem.ptr = item[1]

@ -134,6 +134,7 @@ MainWindow
id: money id: money
Label Label
id: weightDesc
!text: tr('Weight') .. ':' !text: tr('Weight') .. ':'
anchors.left: parent.left anchors.left: parent.left
anchors.top: prev.bottom anchors.top: prev.bottom
@ -145,6 +146,7 @@ MainWindow
id: weight id: weight
Label Label
id: capacityDesc
!text: tr('Your Capacity') .. ':' !text: tr('Your Capacity') .. ':'
anchors.left: parent.left anchors.left: parent.left
anchors.top: prev.bottom anchors.top: prev.bottom

@ -88,6 +88,8 @@ function setOptions()
end end
function init() function init()
if g_game.getProtocolVersion() < 870 then return end
connect(g_game, { onGameStart = setOptions, connect(g_game, { onGameStart = setOptions,
onGameEnd = resetWindow }) onGameEnd = resetWindow })
@ -160,6 +162,8 @@ function init()
end end
function terminate() function terminate()
if g_game.getProtocolVersion() < 870 then return end
disconnect(g_game, { onGameStart = setOptions, disconnect(g_game, { onGameStart = setOptions,
onGameEnd = resetWindow, onGameEnd = resetWindow,
onSpellGroupCooldown = modules.game_interface.setGroupCooldown, onSpellGroupCooldown = modules.game_interface.setGroupCooldown,

Loading…
Cancel
Save