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",
["Accept"] = "Aceitar",
["Account name"] = "Nome da conta",
["Account Status:"] = false,
["Action:"] = "Ação:",
["Account Status:"] = "Estado da Conta:",
["Action"] = "Ação",
["Add"] = "Adicionar",
["Add new VIP"] = "Adicionar nova VIP",
["Addon 1"] = "Addon 1",
@ -41,7 +41,6 @@ locale = {
["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",
["Ambient light: %s%%"] = "Luz ambiente: %s%%",
["Amount:"] = "Quantidade:",
["Amount"] = "Quantidade",
["Anonymous"] = "Anônimo",
["Are you sure you want to logout?"] = "Você tem certeza que quer sair?",
@ -52,7 +51,7 @@ locale = {
["Auto login"] = "Entrar automaticamente",
["Auto login selected character on next charlist load"] = "Entrar automaticamente com o personagem quando reabrir a lista de personagens",
["Axe Fighting"] = "Combate com Machado",
["Balance:"] = "Saldo:",
["Balance"] = "Saldo",
["Banishment"] = "Banimento",
["Banishment + Final Warning"] = "Banimento + Aviso final",
["Battle"] = "Batalha",
@ -79,11 +78,11 @@ locale = {
["Close this channel"] = "Fechar esse canal",
["Club Fighting"] = "Combate com Porrete",
["Combat Controls"] = "Controles de combate",
["Comment:"] = "Comentário:",
["Comment"] = "Comentário",
["Connecting to game server..."] = "Conectando no servidor do jogo...",
["Connecting to login server..."] = "Conectando no servidor de autenticação...",
["Console"] = "Console",
["Cooldowns"] = false,
["Cooldowns"] = "Cooldowns",
["Copy message"] = "Copiar mensagem",
["Copy name"] = "Copiar nome",
["Copy Name"] = "Copiar Nome",
@ -105,7 +104,7 @@ locale = {
["Dismount"] = "Desmontar",
["Display connection speed to the server (milliseconds)"] = "Exibir a velocidade de conexão com o servidor (milisegundos)",
["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 List"] = "Editar lista",
["Edit Text"] = "Editar Texto",
@ -118,61 +117,60 @@ locale = {
["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.",
["Error"] = "Erro",
["Error"] = "Erro",
["Excessive Unjustified Player Killing"] = "Assassinato em excesso, sem justificativa, de jogadores",
["Exclude from private chat"] = "Excluir do canal privado",
["Exit"] = "Sair",
["Experience"] = "Experiência",
["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",
["Find:"] = "Procurar",
["Find"] = "Procurar",
["Fishing"] = "Pesca",
["Fist Fighting"] = "Porrada",
["Follow"] = "Seguir",
["Force Exit"] = "Forçar Saida",
["For Your Information"] = "Para sua informação",
["Free Account"] = false,
["Free Account"] = "Conta Grátis",
["Fullscreen"] = "Tela cheia",
["Game"] = "Jogo",
["Game framerate limit: %s"] = "Limite da taxa de quadros do jogo: %s",
["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:",
["Head"] = "Cabeça",
["Healing"] = false,
["Healing"] = "Curando",
["Health Info"] = "Barra de Vida",
["Health Information"] = "Informação de vida",
["Hide monsters"] = "Esconder montros",
["Hide non-skull players"] = "Esconder jogadores sem caveira",
["Hide Npcs"] = "Esconder NPCs",
["Hide Offline"] = false,
["Hide Offline"] = "Esconder Offline",
["Hide party members"] = "Esconder membros do grupo",
["Hide players"] = "Esconder jogadores",
["Hide spells for higher exp. levels"] = false,
["Hide spells for other vocations"] = false,
["Hide spells for higher exp. levels"] = "Esconder feitiços de nível maior",
["Hide spells for other vocations"] = "Esconder feitiços de outras vocações",
["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",
["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",
["Ignored players:"] = false,
["Ignored players:"] = "Joadores ignorados:",
["Ignore equipped"] = "Ignorar equipado",
["Ignore List"] = false,
["Ignore players"] = false,
["Ignore Private Messages"] = false,
["Ignore Yelling"] = false,
["Ignore List"] = "Lista de Ignorados",
["Ignore players"] = "Jogadores ignorados",
["Ignore Private Messages"] = "Ignorar mensagens privadas",
["Ignore Yelling"] = "Ignorar gritos",
["Interface framerate limit: %s"] = "Limite da taxa de quadros da interface: %s",
["Inventory"] = "Inventário",
["Invite to Party"] = "Convidar para o grupo",
["Invite to private chat"] = "Convidar para o canal privado",
["IP Address Banishment"] = "Banimento de endereço IP",
["Item Offers"] = "Ofertas de items",
["It is empty."] = false,
["It is empty."] = "Está vazio.",
["Join %s's Party"] = "Entrar na party do %s",
["Leave Party"] = "Sair do grupo",
["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",
["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",
@ -180,7 +178,6 @@ locale = {
["Logging out..."] = "Saindo...",
["Login"] = "Entrar",
["Login Error"] = "Erro de Autenticação",
["Login Error"] = "Erro de Autenticação",
["Logout"] = "Sair",
["Look"] = "Olhar",
["Magic Level"] = "Nível Mágico",
@ -195,11 +192,11 @@ locale = {
["Minimap"] = "Minimapa",
["Module Manager"] = "Gerenciador de Módulos",
["Module name"] = "Nome do módulo",
["Mount"] = false,
["Mount"] = "Montar",
["Move Stackable Item"] = "Mover item contável",
["Move up"] = "Mover para cima",
["My Offers"] = "Minhas ofertas",
["Name:"] = "Nome:",
["Name"] = "Nome",
["Name Report"] = "Reportar Nome",
["Name Report + Banishment"] = "Reportar Nome + Banimento",
["Name Report + Banishment + Final Warning"] = "Reportar Nome + Banimento + Aviso Final",
@ -213,42 +210,42 @@ locale = {
["NPC Trade"] = "Troca com NPC",
["Offer History"] = "Histórico de ofertas",
["Offers"] = "Ofertas",
["Offer Type:"] = "Tipo de oferta:",
["Offer Type"] = "Tipo de oferta",
["Offline Training"] = "Treino Offline",
["Ok"] = "Ok",
["on %s.\n"] = "em %s.\n",
["Open"] = "Abrir",
["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 new channel"] = "Abrir novo canal",
["Options"] = "Opções",
["Overview"] = "Visão geral",
["Pass Leadership to %s"] = "Passar liderança para %s",
["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, 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 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",
["Port"] = "Porta",
["Position:"] = false,
["Position: %i %i %i"] = false,
["Premium Account (%s) days left"] = false,
["Price:"] = "Preço",
["Position"] = "Posição",
["Position: %i %i %i"] = "Posição: %i %i %i",
["Premium Account (%s) days left"] = "Conta Premium (%s) dias faltando",
["Price"] = "Preço",
["Primary"] = "Primário",
["Protocol"] = "Protocolo",
["Quest Log"] = "Registro de Quest",
["Randomize"] = "Embaralhar",
["Randomize characters outfit"] = "Gerar roupa aleatória",
["Reason:"] = "Motivo:",
["Reason"] = "Motivo",
["Refresh"] = "Atualizar",
["Refresh Offers"] = "Atualizar Ofertas",
["Regeneration Time"] = "Tempo de Regeneração",
["Reject"] = "Rejeitar",
["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",
["Remove"] = "Remover",
["Remove %s"] = "Remover %s",
@ -258,20 +255,20 @@ locale = {
["Revoke %s's Invitation"] = "Não aceitar o convite do %s",
["Rotate"] = "Girar",
["Rule Violation"] = "Violação de regra",
["Save"] = false,
["Save Messages"] = false,
["Search:"] = "Procurar:",
["Save"] = "Salvar",
["Save Messages"] = "Salvar Mensagens",
["Search"] = "Procurar",
["Search all items"] = "Procurar todos os items",
["Secondary"] = "Secundário",
["Select object"] = "Selecionar objeto",
["Select Outfit"] = "Selecionar Roupa",
["Select your language"] = false,
["Select your language"] = "Selecione sua língua",
["Sell"] = "Vender",
["Sell Now"] = "Vender agora",
["Sell Offers"] = "Ofertas de venda",
["Send"] = "Enviar",
["Send automatically"] = "Enviar automaticamente",
["Send Message"] = false,
["Send Message"] = "Enviar Mensagem",
["Server"] = "Servidor",
["Server Log"] = "Registro do servidor",
["Set Outfit"] = "Escolher Roupa",
@ -284,10 +281,10 @@ locale = {
["Show info messages in console"] = "Exibir mensagens informativas no console",
["Show left panel"] = "Mostrar barra lateral esquerda",
["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 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 Text"] = "Mostrar texto",
["Show timestamps in console"] = "Exibir o horário no console",
@ -295,17 +292,17 @@ locale = {
["Skills"] = "Habilidades",
["Soul"] = "Alma",
["Soul Points"] = "Pontos de Alma",
["Special"] = false,
["Special"] = "Especial",
["Speed"] = "Velocidade",
["Spell Cooldowns"] = false,
["Spell List"] = false,
["Spell Cooldowns"] = "",
["Spell List"] = "Lista de Feitiços",
["Stamina"] = "Vigor",
["Statement:"] = "Afirmação:",
["Statement"] = "Afirmação",
["Statement Report"] = "Afirmar Relato",
["Statistics"] = "Estatísticas",
["Stop Attack"] = "Parar de Atacar",
["Stop Follow"] = "Parar de Seguir",
["Support"] = false,
["Support"] = "Suporte",
["%s: (use object)"] = "%s: (usar objeto)",
["%s: (use object on target)"] = "%s: (usar objeto no alvo)",
["%s: (use object on yourself)"] = "%s: (usar objeto em si)",
@ -313,17 +310,17 @@ locale = {
["Sword Fighting"] = "Combate com Espada",
["Terminal"] = "Terminal",
["There is no way."] = "Não há rota",
["Title"] = false,
["Total Price:"] = "Preço total:",
["Title"] = "Título",
["Total Price"] = "Preço total",
["Trade"] = "Trocar",
["Trade with ..."] = "Trocar com ...",
["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 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",
["Unignore"] = false,
["Unignore"] = "Designorar",
["Unload"] = "Descarregar",
["Update needed"] = false,
["Update needed"] = "Atualização necessária",
["Use"] = "Usar",
["Use on target"] = "Usar no alvo",
["Use on yourself"] = "Usar em si",
@ -331,10 +328,10 @@ locale = {
["Version"] = "Versão",
["VIP List"] = "Lista VIP",
["Voc."] = "Voc.",
["Vocation"] = false,
["Vocation"] = "Vocação",
["Waiting List"] = "Lista de espera",
["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",
["With crosshair"] = "Com mira",
["Yes"] = "Sim",
@ -363,10 +360,11 @@ locale = {
["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 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 on \n%s.\n"] = false,
["Your Money:"] = "Seu dinheiro:",
["You read the following, written on \n%s.\n"] = "Você lê o seguinte, escrito em \n%s.\n",
["Your Money"] = "Seu dinheiro",
["Change language"] = "Trocar língua",
}
}

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

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

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

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

@ -50,7 +50,7 @@ function init()
gameBottomPanel = gameRootPanel:getChildById('gameBottomPanel')
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()

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

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

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

Loading…
Cancel
Save