Adição de sistema de tradução

master
BrunoMine 2018-07-13 01:13:10 -03:00
parent 4543703cb8
commit e09af0bfe7
30 changed files with 1740 additions and 60 deletions

View File

@ -9,6 +9,8 @@
Balao
]]
local S = telepro.S
-- Pegar node distante nao carregado
local function pegar_node(pos)
local node = minetest.get_node(pos)
@ -21,7 +23,7 @@ end
-- Node
minetest.register_node("telepro:balao_jogador", {
description = "Balao Decorativo",
description = S("Balao Decorativo"),
tiles = {"telepro_balao.png"},
paramtype = "light",
paramtype2 = "facedir",

View File

@ -9,9 +9,11 @@
Balao Decorativo para Spawn
]]
local S = telepro.S
-- Node
minetest.register_node("telepro:node_balao_decorativo", {
description = "Node de Balao Decorativo",
description = S("Node de Balao Decorativo"),
tiles = {"telepro_balao.png"},
paramtype = "light",
paramtype2 = "facedir",
@ -26,7 +28,7 @@ minetest.register_node("telepro:node_balao_decorativo", {
-- Node de inventario
minetest.register_node("telepro:balao_decorativo", {
description = "Balao Decorativo",
description = S("Balao Decorativo"),
tiles = {"telepro_balao.png"},
paramtype = "light",
paramtype2 = "facedir",

View File

@ -9,6 +9,8 @@
Bau do balao
]]
local S = telepro.S
-- Pegar node distante nao carregado
local function pegar_node(pos)
local node = minetest.get_node(pos)
@ -21,7 +23,7 @@ end
-- Node
minetest.register_node("telepro:bau", {
description = "Bau do Balao",
description = S("Bau do Balao"),
tiles = {
"default_chest_top.png^telepro_bau_cima.png", -- Cima
"default_chest_top.png", -- Baixo
@ -38,7 +40,7 @@ minetest.register_node("telepro:bau", {
if (meta:get_string("dono") or "") == player:get_player_name() then
telepro.acessar_bau(player)
else
minetest.chat_send_player(player:get_player_name(), "Esse Balao nao lhe pertence.")
minetest.chat_send_player(player:get_player_name(), S("Esse Balao nao lhe pertence"))
end
end,
drop = "",

View File

@ -9,9 +9,11 @@
Bau do balao do spawn
]]
local S = telepro.S
-- Node
minetest.register_node("telepro:bau_spawn", {
description = "Bau do Balao do Centro",
description = S("Bau do Balao do Centro"),
tiles = {
"default_chest_top.png^telepro_bau_cima.png", -- Cima
"default_chest_top.png", -- Baixo
@ -32,9 +34,9 @@ minetest.register_node("telepro:bau_spawn", {
if pointed_thing and pointed_thing.above and minetest.check_player_privs(placer:get_player_name(), {server=true}) == true then
telepro.spawn = pos
telepro.bd.salvar("centro", "pos", {x=pos.x, y=pos.y+2, z=pos.z})
minetest.chat_send_all("Novo centro definido")
minetest.chat_send_player(placer:get_player_name(), S("Novo centro definido"))
else
minetest.chat_send_all("Precisa do privilegio 'server' para colocar esse bau")
minetest.chat_send_player(placer:get_player_name(), S("Precisa do privilegio 'server' para colocar esse bau"))
minetest.remove_node(pos)
end
end,

View File

@ -9,6 +9,8 @@
Funções simples e comuns
]]
local S = telepro.S
-- Verificar se o bau de balaode um jogador está perto
telepro.verif_prox_bau = function(player)

View File

@ -9,12 +9,14 @@
Corda do Balao
]]
local S = telepro.S
-- Variavel que impede que cordas sejam colocadas (ativa as verificações da fisica das cordas)
telepro.cordas_f = true
-- Node
minetest.register_node("telepro:corda_balao", {
description = "Corda de Balao",
description = S("Corda de Balao"),
drawtype = "torchlike",
tiles = {"telepro_corda_balao.png"},
paramtype = "light",

View File

@ -1 +1,2 @@
default
intllib?

View File

@ -9,6 +9,8 @@
Gerar um Balao Aleatorio
]]
local S = telepro.S
-- Tabela de jogadores que estão em precesso de geração de balao (evitar geração dupla)
local gerando = {}
@ -76,7 +78,7 @@ local finalizar = function(name, spos)
minetest.after(3600, telepro.destravar, name)
-- Finaliza
minetest.chat_send_player(name, "Novo local gerado. Mantenha o local do balao bem aberto.")
minetest.chat_send_player(name, S("Novo local encontrado"))
gerando[name] = nil
end

View File

@ -33,6 +33,7 @@ if telepro.bd.verif("centro", "pos") == true then
end
-- Funções
dofile(modpath.."/tradutor.lua")
dofile(modpath.."/online.lua")
dofile(modpath.."/reivindicar.lua")
dofile(modpath.."/ir_balao.lua")

View File

@ -9,6 +9,7 @@
Interface do Bau do balao
]]
local S = telepro.S
-- Acessar um Bau de Balao
telepro.acessar_bau = function(player)
@ -19,7 +20,7 @@ telepro.acessar_bau = function(player)
-- Verificar se tem um Bau de Balao perto do jogador que pertenca a ele
if telepro.verif_prox_bau(player) == false then
minetest.chat_send_player(player:get_player_name(), "Muito distante do seu Bau de Balao")
minetest.chat_send_player(player:get_player_name(), S("Muito distante do seu Bau de Balao"))
return false
end
@ -30,13 +31,13 @@ telepro.acessar_bau = function(player)
..default.gui_bg
..default.gui_bg_img
.."image[1.7,-0.25;3,3;telepro_ir_centro.png]"
.."button_exit[0,2.4;6,1;ir_centro;Ir para Centro]"
.."button_exit[0,2.4;6,1;ir_centro;"..S("Ir para Centro").."]"
.."image[0.1,3.7;1,1;screwdriver.png]"
.."button_exit[1,3.7;5,1;reparar;Reparar Balao]"
.."button_exit[1,3.7;5,1;reparar;"..S("Reparar Balao").."]"
.."image[0.1,5;1,1;telepro_aceitar_visita.png]"
.."button[1,5;5,1;visitas;Receber seguidor]"
.."button[1,5;5,1;visitas;"..S("Receber seguidor").."]"
-- Exibir formspec
minetest.show_formspec(player:get_player_name(), "telepro:bau", formspec)
@ -57,9 +58,9 @@ telepro.acessar_bau_spawn = function(player)
..default.gui_bg
..default.gui_bg_img
.."image[0.1,-0.2;3,3;telepro_ir_casa.png]"
.."button_exit[0,2;3,1;ir_balao;Ir para seu Balao]"
.."button_exit[0,2;3,1;ir_balao;"..S("Ir para seu Balao").."]"
.."image[3.1,-0.2;3,3;telepro_visitar.png]"
.."button[3,2;3,1;visitas;Seguir jogador]"
.."button[3,2;3,1;visitas;"..S("Seguir jogador").."]"
-- Exibir formspec
@ -88,13 +89,13 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Verificar se o jogador tem um balao
if telepro.bd.verif("jogador_"..name, "pos") ~= true then
minetest.chat_send_player(name, "Precisas ter um balao ativo")
minetest.chat_send_player(name, S("Precisas ter um balao ativo"))
return
end
-- Verificar se tem um Bau de Balao perto do jogador que pertenca a ele
if telepro.verif_prox_bau(player) == false then
minetest.chat_send_player(name, "Muito distante do seu Bau de Balao")
minetest.chat_send_player(name, S(telepro.msg.longe_do_balao_proprio))
return
end
@ -104,14 +105,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
local meta = minetest.get_meta(telepro.bd.pegar("jogador_"..name, "pos"))
if meta:get_string("status") ~= "ativo" then
minetest.chat_send_player(name, "Balao inoperante. Aguarde mantenha o local limpo e aberto e aguarde ele ficar pronto.")
minetest.chat_send_player(name, S(telepro.msg.balao_inativo))
minetest.chat_send_player(name, S(telepro.msg.recomendacoes_limpezas_balao))
return
end
end
-- Teleportar jogador
player:setpos(telepro.spawn)
minetest.chat_send_player(name, "Viagem ao Centro realizada.")
minetest.chat_send_player(name, S("Viagem ao Centro realizada"))
elseif fields.reparar then
-- Pegar nome do jogador
@ -119,7 +121,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Verificar se tem um Bau de Balao perto do jogador que pertenca a ele
if telepro.verif_prox_bau(player) == false then
minetest.chat_send_player(name, "Muito distante do seu Bau de Balao")
minetest.chat_send_player(name, S(telepro.msg.ao_ir_centro))
return
end
@ -129,7 +131,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Verificar se o balao ja esta ativo
local meta = minetest.get_meta(pos)
if meta:get_string("status") == "ativo" then
minetest.chat_send_player(name, "O Balao ja esta ativo. Nao precisa reparar.")
minetest.chat_send_player(name, S("Balao ativo"))
return
end
@ -156,19 +158,18 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Verificar se tem um Bau de Centro de Balao por perto
if not minetest.find_node_near({x=pos.x, y=pos.y-2, z=pos.z}, 8, {"telepro:bau_spawn"}) then
minetest.chat_send_player(name, "Muito distante do Bau de Balao do Centro")
minetest.chat_send_player(name, S(telepro.msg.longe_do_balao_centro))
return
end
-- Verificar se o jogador tem um balao
if telepro.bd.verif("jogador_"..name, "pos") ~= true then
minetest.chat_send_all("dados de jogador_"..name.." nao encontrado")
return telepro.acessar(minetest.get_player_by_name(name))
end
-- Verificar se o balao esta ativo
if minetest.get_meta(telepro.bd.pegar("jogador_"..name, "pos")):get_string("status") ~= "ativo" then
minetest.chat_send_player(name, "O Seu Balao nao esta funcionando. O local foi destruido ou obstruido.")
minetest.chat_send_player(name, S(telepro.msg.balao_inativo))
end
-- Tenta teleportar o jogador

View File

@ -9,6 +9,8 @@
Interface do Jogador
]]
local S = telepro.S
-- Acesar interface do jogador
telepro.acessar = function(player)
if not player then
@ -21,8 +23,8 @@ telepro.acessar = function(player)
..default.gui_bg
..default.gui_bg_img
.."image[0,0;3.5,3.5;telepro_mapa.png]"
.."button_exit[0,3.25;3,1;gerar_balao;Gerar Balao]"
.."button_exit[0,4.25;3,1;por_balao_aqui;Por Balao Aqui]"
.."button_exit[0,3.25;3,1;gerar_balao;"..S("Gerar Balao").."]"
.."button_exit[0,4.25;3,1;por_balao_aqui;"..S("Por Balao Aqui").."]"
-- Exibir formspec
minetest.show_formspec(player:get_player_name(), "telepro:jogador", formspec)
@ -37,15 +39,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
local name = player:get_player_name()
if telepro.travados[name] == true then
minetest.chat_send_player(player:get_player_name(), "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a ultima vez que gerou)")
minetest.chat_send_player(player:get_player_name(), S(telepro.msg.limite_de_usos_por_dia))
return
end
minetest.chat_send_player(player:get_player_name(), "Aguarde alguns segundos enquanto o balao esta endo preparado.")
minetest.chat_send_player(player:get_player_name(), S(telepro.msg.aguardar_gerar_balao))
telepro.gerar_balao_aleatorio(name)
elseif fields.por_balao_aqui then
if telepro.travados[name] == true then
minetest.chat_send_player(name, "Nao pode colocar um novo balao ainda. (sao necessarias 24 horas desde a ultima vez que gerou ou colocou)")
minetest.chat_send_player(name, S(telepro.msg.limite_de_usos_por_dia))
return
end

View File

@ -9,6 +9,8 @@
Função para teleportar para balao
]]
local S = telepro.S
-- Pegar node, mesmo que não esteja na memoria
local function pegar_node(pos)
local node = minetest.get_node(pos)
@ -31,7 +33,7 @@ telepro.ir_balao = function(player)
-- Verifica se o registro de balao existe no banco de dados
if telepro.bd.verif("jogador_"..name, "pos") == false then
minetest.chat_send_player(player:get_player_name(), "Sem nenhum balao ainda.")
minetest.chat_send_player(player:get_player_name(), S("Sem nenhum balao ainda"))
return false
end
@ -43,7 +45,7 @@ telepro.ir_balao = function(player)
-- Verificar se o nome do bloco é o de uma bau
if pegar_node(pos).name ~= "telepro:bau" then
minetest.chat_send_player(player:get_player_name(), "Seu balao foi destruido.")
minetest.chat_send_player(player:get_player_name(), S("Seu balao foi destruido"))
return false
end
@ -55,7 +57,7 @@ telepro.ir_balao = function(player)
-- Verifica se é o mesmo nome do jogador
if n ~= name then
minetest.chat_send_player(player:get_player_name(), "Seu balao foi destruido.")
minetest.chat_send_player(player:get_player_name(), S("Seu balao foi destruido"))
return false
end
@ -65,7 +67,7 @@ telepro.ir_balao = function(player)
player:setpos({x=pos.x, y=pos.y+1.5, z=pos.z})
-- Finaliza
minetest.chat_send_player(player:get_player_name(), "Viagem para o posto de seu balao realizada.")
minetest.chat_send_player(player:get_player_name(), S("Viagem para o posto de seu balao realizada"))
return true
end

45
lib/intllib.lua Normal file
View File

@ -0,0 +1,45 @@
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl(escape, open, num, close)
if escape == "" then
local replacement = tostring(args[tonumber(num)])
if open == "" then
replacement = replacement..close
end
return replacement
else
return "@"..open..num..close
end
end
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
end
local gettext, ngettext
if minetest.get_modpath("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
gettext, ngettext = intllib.make_gettext_pair()
else
-- Old method using text files.
gettext = intllib.Getter()
end
end
-- Fill in missing functions.
gettext = gettext or function(msgid, ...)
return format(msgid, ...)
end
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
return format(n==1 and msgid or msgid_plural, ...)
end
return gettext, ngettext

View File

@ -0,0 +1 @@
autogen.lua balao.lua balao_decor.lua bau.lua bau_spawn.lua check_balao_proprio.lua comandos.lua compatibilidade.lua comum.lua corda.lua gerar_balao_aleatorio.lua interface_bau.lua interface_jogador.lua ir_balao.lua online.lua reivindicar.lua reparar_balao.lua visitas.lua mensagens.lua

BIN
locale/en.mo Normal file

Binary file not shown.

238
locale/en.po Normal file
View File

@ -0,0 +1,238 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-13 00:49-0300\n"
"PO-Revision-Date: 2018-07-13 00:59-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.6\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: balao.lua balao_decor.lua
msgid "Balao Decorativo"
msgstr "Decorative Balloon"
#: balao_decor.lua
msgid "Node de Balao Decorativo"
msgstr "Decorative Balloon Node"
#: bau.lua
msgid "Bau do Balao"
msgstr "Balloon Box"
#: bau.lua
msgid "Esse Balao nao lhe pertence"
msgstr "This Balloon is not yours"
#: bau_spawn.lua
msgid "Bau do Balao do Centro"
msgstr "Balloon Box of Center Spawn"
#: bau_spawn.lua
msgid "Novo centro definido"
msgstr "New spawn center defined"
#: bau_spawn.lua
msgid "Precisa do privilegio 'server' para colocar esse bau"
msgstr "Need the 'server' privilege to put this Balloon Box"
#: corda.lua
msgid "Corda de Balao"
msgstr "Balloon Rope"
#: gerar_balao_aleatorio.lua
msgid "Novo local encontrado"
msgstr "New place found"
#: interface_bau.lua
msgid "Muito distante do seu Bau de Balao"
msgstr "Far away from your Balloon Box"
#: interface_bau.lua
msgid "Ir para Centro"
msgstr "Go to Center"
#: interface_bau.lua
msgid "Reparar Balao"
msgstr "Repair Balloon"
#: interface_bau.lua visitas.lua
msgid "Receber seguidor"
msgstr "Receive follower"
#: interface_bau.lua
msgid "Ir para seu Balao"
msgstr "Go to your balloon"
#: interface_bau.lua visitas.lua
msgid "Seguir jogador"
msgstr "Follow a player"
#: interface_bau.lua
msgid "Precisas ter um balao ativo"
msgstr "You need to have an active balloon"
#: interface_bau.lua mensagens.lua
msgid "Viagem ao Centro realizada"
msgstr "Journey to the Center held"
#: interface_bau.lua
msgid "Balao ativo"
msgstr "Balloon is active"
#: interface_jogador.lua
msgid "Gerar Balao"
msgstr "Generate a Balloon"
#: interface_jogador.lua
msgid "Por Balao Aqui"
msgstr "Place Balloon here"
#: ir_balao.lua
msgid "Sem nenhum balao ainda"
msgstr "No balloon yet"
#: ir_balao.lua
msgid "Seu balao foi destruido"
msgstr "Your balloon has been destroyed"
#: ir_balao.lua
msgid "Viagem para o posto de seu balao realizada"
msgstr "Trip to the post of your balloon was held"
#: reivindicar.lua
msgid "Balao reivindicado com sucesso"
msgstr "Balloon successfully claimed"
#: reparar_balao.lua
msgid "O caminho para cima esta obstruido (corda) portanto abra mais o local"
msgstr "The way up is obstructed (rope) so open the place further"
#: reparar_balao.lua
msgid ""
"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"
msgstr ""
"Top is obstructed (where the balloon is) so wipe the top or go to a highest "
"location"
#: visitas.lua
msgid "Pedidos recebidos"
msgstr "Requests received"
#: visitas.lua
msgid "Voltar"
msgstr "Return"
#: visitas.lua
msgid "Enviar pedido"
msgstr "Send request"
#: visitas.lua
msgid "Nao podes seguir a si mesmo"
msgstr "You can not follow yourself"
#: visitas.lua
msgid "@1 offline ou inexistente"
msgstr "@1 offline or nonexistent"
#: visitas.lua
msgid "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido"
msgstr ""
"Request sent to @1 ... Now you need to advise him to accept your request"
#: visitas.lua
msgid "Pedido invalido"
msgstr "Invalid request"
#: visitas.lua
msgid "@1 offline"
msgstr "@1 offline"
#: visitas.lua
msgid "@1 saiu de perto do balao do centro"
msgstr "@1 left close to the center balloon"
#: visitas.lua
msgid "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao"
msgstr ""
"Your request to follow @1 was accepted but you walked away from the balloon"
#: visitas.lua
msgid "@1 te seguiu"
msgstr "@1 followed you"
#: visitas.lua
msgid "Voce seguiu @1"
msgstr "You followed @1"
#: mensagens.lua
msgid ""
"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima "
"vez que gerou)"
msgstr ""
"It can not generate a new balloon yet (it is necessary 24 hours since the "
"last time it generated)"
#: mensagens.lua
msgid "Aguarde alguns segundos enquanto o balao esta endo preparado"
msgstr "Wait a few seconds while the balloon is being prepared"
#: mensagens.lua
msgid "O Seu Balao ficou inoperante"
msgstr "Your Balloon was inoperative"
#: mensagens.lua
msgid "Muito distante do Bau de Balao do Centro"
msgstr "Far away from the Balloon Box of Spawn Center."
#: mensagens.lua
msgid "Muito distante do seu proprio Bau de Balao"
msgstr "Far away from the your Balloon Box"
#: mensagens.lua
msgid ""
"Mantenha o local limpo e aberto para levantar que o balao seja levantado "
"automaticamente"
msgstr ""
"Keep the place clean and open to raise the balloon to be lifted automatically"
#: mensagens.lua
msgid "Viagem para seu proprio balao realizada"
msgstr "Travel to your own balloon held"
#: mensagens.lua
msgid "Precisa subir para um local mais alto"
msgstr "You need to climb to a higher location"
#: mensagens.lua
msgid "Precisa estar num lugar mais aberto"
msgstr "You need to be in a cleaner and more open place"
#: mensagens.lua
msgid "Objetos obstruem a parte de cima portanto libere o local ou suba"
msgstr "Objects obstruct the top so remove the objects and try again"
#~ msgid ""
#~ "Objetos obstruem a parte de cima portanto remova os objetos e tente "
#~ "novamente"
#~ msgstr "Objects obstruct the top so remove the objects and try again"
#~ msgid "Precisa estar em local aberto"
#~ msgstr "It needs to be in a clean and open place"
#~ msgid ""
#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou)"
#~ msgstr ""
#~ "Can not generate a new balloon yet. (it is necessary 24 hours since the "
#~ "last time it generated)"

239
locale/en.po~ Normal file
View File

@ -0,0 +1,239 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-13 00:36-0300\n"
"PO-Revision-Date: 2018-07-13 00:36-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.6\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: balao.lua balao_decor.lua
msgid "Balao Decorativo"
msgstr "Decorative Balloon"
#: balao_decor.lua
msgid "Node de Balao Decorativo"
msgstr "Decorative Balloon Node"
#: bau.lua
msgid "Bau do Balao"
msgstr "Balloon Box"
#: bau.lua
msgid "Esse Balao nao lhe pertence"
msgstr "This Balloon is not yours"
#: bau_spawn.lua
msgid "Bau do Balao do Centro"
msgstr "Balloon Box of Center Spawn"
#: bau_spawn.lua
msgid "Novo centro definido"
msgstr "New spawn center defined"
#: bau_spawn.lua
msgid "Precisa do privilegio 'server' para colocar esse bau"
msgstr "Need the 'server' privilege to put this Balloon Box"
#: corda.lua
msgid "Corda de Balao"
msgstr "Balloon Rope"
#: gerar_balao_aleatorio.lua
msgid "Novo local encontrado"
msgstr "New place found"
#: interface_bau.lua
msgid "Muito distante do seu Bau de Balao"
msgstr "Far away from your Balloon Box"
#: interface_bau.lua
msgid "Ir para Centro"
msgstr "Go to Center"
#: interface_bau.lua
msgid "Reparar Balao"
msgstr "Repair Balloon"
#: interface_bau.lua visitas.lua
msgid "Receber seguidor"
msgstr "Receive follower"
#: interface_bau.lua
msgid "Ir para seu Balao"
msgstr "Go to your balloon"
#: interface_bau.lua visitas.lua
msgid "Seguir jogador"
msgstr "Follow a player"
#: interface_bau.lua
msgid "Precisas ter um balao ativo"
msgstr "You need to have an active balloon"
#: interface_bau.lua mensagens.lua
msgid "Viagem ao Centro realizada"
msgstr "Journey to the Center held"
#: interface_bau.lua
msgid "Balao ativo"
msgstr "Balloon is active"
#: interface_jogador.lua
msgid "Gerar Balao"
msgstr "Generate a Balloon"
#: interface_jogador.lua
msgid "Por Balao Aqui"
msgstr "Place Balloon here"
#: ir_balao.lua
msgid "Sem nenhum balao ainda"
msgstr "No balloon yet"
#: ir_balao.lua
msgid "Seu balao foi destruido"
msgstr "Your balloon has been destroyed"
#: ir_balao.lua
msgid "Viagem para o posto de seu balao realizada"
msgstr "Trip to the post of your balloon was held"
#: reivindicar.lua
msgid "Balao reivindicado com sucesso"
msgstr "Balloon successfully claimed"
#: reparar_balao.lua
msgid "O caminho para cima esta obstruido (corda) portanto abra mais o local"
msgstr "The way up is obstructed (rope) so open the place further"
#: reparar_balao.lua
msgid ""
"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"
msgstr ""
"Top is obstructed (where the balloon is) so wipe the top or go to a highest "
"location"
#: reparar_balao.lua
msgid ""
"Objetos obstruem a parte de cima portanto remova os objetos e tente novamente"
msgstr "Objects obstruct the top so remove the objects and try again"
#: visitas.lua
msgid "Pedidos recebidos"
msgstr "Requests received"
#: visitas.lua
msgid "Voltar"
msgstr "Return"
#: visitas.lua
msgid "Enviar pedido"
msgstr "Send request"
#: visitas.lua
msgid "Nao podes seguir a si mesmo"
msgstr "You can not follow yourself"
#: visitas.lua
msgid "@1 offline ou inexistente"
msgstr "@1 offline or nonexistent"
#: visitas.lua
msgid "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido"
msgstr ""
"Request sent to @1 ... Now you need to advise him to accept your request"
#: visitas.lua
msgid "Pedido invalido"
msgstr "Invalid request"
#: visitas.lua
msgid "@1 offline"
msgstr "@1 offline"
#: visitas.lua
msgid "@1 saiu de perto do balao do centro"
msgstr "@1 left close to the center balloon"
#: visitas.lua
msgid "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao"
msgstr ""
"Your request to follow @1 was accepted but you walked away from the balloon"
#: visitas.lua
msgid "@1 te seguiu"
msgstr "@1 followed you"
#: visitas.lua
msgid "Voce seguiu @1"
msgstr "You followed @1"
#: mensagens.lua
msgid ""
"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima "
"vez que gerou)"
msgstr ""
"It can not generate a new balloon yet (it is necessary 24 hours since the "
"last time it generated)"
#: mensagens.lua
msgid "Aguarde alguns segundos enquanto o balao esta endo preparado"
msgstr "Wait a few seconds while the balloon is being prepared"
#: mensagens.lua
msgid "O Seu Balao ficou inoperante"
msgstr "Your Balloon was inoperative"
#: mensagens.lua
msgid "Muito distante do Bau de Balao do Centro"
msgstr "Far away from the Balloon Box of Spawn Center."
#: mensagens.lua
msgid "Muito distante do seu proprio Bau de Balao"
msgstr "Far away from the your Balloon Box"
#: mensagens.lua
msgid ""
"Mantenha o local limpo e aberto para levantar que o balao seja levantado "
"automaticamente"
msgstr ""
"Keep the place clean and open to raise the balloon to be lifted automatically"
#: mensagens.lua
msgid "Viagem para seu proprio balao realizada"
msgstr "Travel to your own balloon held"
#: mensagens.lua
msgid "Precisa subir para um local mais alto"
msgstr "You need to climb to a higher location"
#: mensagens.lua
msgid "Precisa estar num lugar mais aberto"
msgstr "You need to be in a cleaner and more open place"
#: mensagens.lua
#, fuzzy
msgid "Objetos obstruem a parte de cima portanto libere o local ou suba"
msgstr "Objects obstruct the top so remove the objects and try again"
#~ msgid "Precisa estar em local aberto"
#~ msgstr "It needs to be in a clean and open place"
#~ msgid ""
#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou)"
#~ msgstr ""
#~ "Can not generate a new balloon yet. (it is necessary 24 hours since the "
#~ "last time it generated)"

BIN
locale/pt.mo Normal file

Binary file not shown.

269
locale/pt.po Normal file
View File

@ -0,0 +1,269 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-13 00:49-0300\n"
"PO-Revision-Date: 2018-07-13 00:45-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.6\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: balao.lua balao_decor.lua
msgid "Balao Decorativo"
msgstr "Balao Decorativo"
#: balao_decor.lua
msgid "Node de Balao Decorativo"
msgstr "Node de Balao Decorativo"
#: bau.lua
msgid "Bau do Balao"
msgstr "Bau do Balao"
#: bau.lua
msgid "Esse Balao nao lhe pertence"
msgstr "Esse Balao nao lhe pertence"
#: bau_spawn.lua
msgid "Bau do Balao do Centro"
msgstr "Bau do Balao do Centro"
#: bau_spawn.lua
msgid "Novo centro definido"
msgstr "Novo centro definido"
#: bau_spawn.lua
msgid "Precisa do privilegio 'server' para colocar esse bau"
msgstr "Precisa do privilegio 'server' para colocar esse bau"
#: corda.lua
msgid "Corda de Balao"
msgstr "Corda de Balao"
#: gerar_balao_aleatorio.lua
msgid "Novo local encontrado"
msgstr "Novo local encontrado"
#: interface_bau.lua
msgid "Muito distante do seu Bau de Balao"
msgstr "Muito distante do seu Bau de Balao"
#: interface_bau.lua
msgid "Ir para Centro"
msgstr "Ir para Centro"
#: interface_bau.lua
msgid "Reparar Balao"
msgstr "Reparar Balao"
#: interface_bau.lua visitas.lua
msgid "Receber seguidor"
msgstr "Receber seguidor"
#: interface_bau.lua
msgid "Ir para seu Balao"
msgstr "Ir para seu Balao"
#: interface_bau.lua visitas.lua
msgid "Seguir jogador"
msgstr "Seguir jogador"
#: interface_bau.lua
msgid "Precisas ter um balao ativo"
msgstr "Precisas ter um balao ativo"
#: interface_bau.lua mensagens.lua
msgid "Viagem ao Centro realizada"
msgstr "Viagem ao Centro realizada"
#: interface_bau.lua
msgid "Balao ativo"
msgstr "Balao ativo"
#: interface_jogador.lua
msgid "Gerar Balao"
msgstr "Gerar Balao"
#: interface_jogador.lua
msgid "Por Balao Aqui"
msgstr "Por Balao Aqui"
#: ir_balao.lua
msgid "Sem nenhum balao ainda"
msgstr "Sem nenhum balao ainda"
#: ir_balao.lua
msgid "Seu balao foi destruido"
msgstr "Seu balao foi destruido"
#: ir_balao.lua
msgid "Viagem para o posto de seu balao realizada"
msgstr "Viagem para o posto de seu balao realizada"
#: reivindicar.lua
msgid "Balao reivindicado com sucesso"
msgstr "Balao reivindicado com sucesso"
#: reparar_balao.lua
msgid "O caminho para cima esta obstruido (corda) portanto abra mais o local"
msgstr "O caminho para cima esta obstruido (corda) portanto abra mais o local"
#: reparar_balao.lua
msgid ""
"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"
msgstr ""
"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"
#: visitas.lua
msgid "Pedidos recebidos"
msgstr "Pedidos recebidos"
#: visitas.lua
msgid "Voltar"
msgstr "Voltar"
#: visitas.lua
msgid "Enviar pedido"
msgstr "Enviar pedido"
#: visitas.lua
msgid "Nao podes seguir a si mesmo"
msgstr "Nao podes seguir a si mesmo"
#: visitas.lua
msgid "@1 offline ou inexistente"
msgstr "@1 offline ou inexistente"
#: visitas.lua
msgid "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido"
msgstr "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido"
#: visitas.lua
msgid "Pedido invalido"
msgstr "Pedido invalido"
#: visitas.lua
msgid "@1 offline"
msgstr "@1 offline"
#: visitas.lua
msgid "@1 saiu de perto do balao do centro"
msgstr "@1 saiu de perto do balao do centro"
#: visitas.lua
msgid "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao"
msgstr "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao"
#: visitas.lua
msgid "@1 te seguiu"
msgstr "@1 te seguiu"
#: visitas.lua
msgid "Voce seguiu @1"
msgstr "Voce seguiu @1"
#: mensagens.lua
msgid ""
"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima "
"vez que gerou)"
msgstr ""
"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima "
"vez que gerou)"
#: mensagens.lua
msgid "Aguarde alguns segundos enquanto o balao esta endo preparado"
msgstr "Aguarde alguns segundos enquanto o balao esta endo preparado"
#: mensagens.lua
msgid "O Seu Balao ficou inoperante"
msgstr "O Seu Balao ficou inoperante"
#: mensagens.lua
msgid "Muito distante do Bau de Balao do Centro"
msgstr "Muito distante do Bau de Balao do Centro"
#: mensagens.lua
msgid "Muito distante do seu proprio Bau de Balao"
msgstr "Muito distante do seu proprio Bau de Balao"
#: mensagens.lua
msgid ""
"Mantenha o local limpo e aberto para levantar que o balao seja levantado "
"automaticamente"
msgstr ""
"Mantenha o local limpo e aberto para levantar que o balao seja levantado "
"automaticamente"
#: mensagens.lua
msgid "Viagem para seu proprio balao realizada"
msgstr "Viagem para seu proprio balao realizada"
#: mensagens.lua
msgid "Precisa subir para um local mais alto"
msgstr "Precisa subir para um local mais alto"
#: mensagens.lua
msgid "Precisa estar num lugar mais aberto"
msgstr "Precisa estar num lugar mais aberto"
#: mensagens.lua
msgid "Objetos obstruem a parte de cima portanto libere o local ou suba"
msgstr "Objetos obstruem a parte de cima portanto libere o local ou suba"
#~ msgid ""
#~ "Objetos obstruem a parte de cima portanto remova os objetos e tente "
#~ "novamente"
#~ msgstr ""
#~ "Objetos obstruem a parte de cima portanto remova os objetos e tente "
#~ "novamente"
#~ msgid "Precisa estar em local aberto"
#~ msgstr "Precisa estar em local aberto"
#~ msgid ""
#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou)"
#~ msgstr ""
#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou)"
#~ msgid ""
#~ "O caminho para cima esta obstruido. Encontre um lugar onde de para o "
#~ "balao descer"
#~ msgstr ""
#~ "O caminho para cima esta obstruido. Encontre um lugar onde de para o "
#~ "balao descer"
#~ msgid "Parte de cima obstruida. Libere o local ou suba"
#~ msgstr "Parte de cima obstruida. Libere o local ou suba"
#~ msgid ""
#~ "Balao inoperante. Aguarde mantenha o local limpo e aberto e aguarde ele "
#~ "ficar pronto"
#~ msgstr ""
#~ "Balao inoperante. Aguarde mantenha o local limpo e aberto e aguarde ele "
#~ "ficar pronto"
#~ msgid "O Balao ja esta ativo. Nao precisa reparar"
#~ msgstr "O Balao ja esta ativo. Nao precisa reparar"
#~ msgid "O Seu Balao nao esta funcionando. O local foi destruido ou obstruido"
#~ msgstr ""
#~ "O Seu Balao nao esta funcionando. O local foi destruido ou obstruido"
#~ msgid ""
#~ "Nao pode colocar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou ou colocou)"
#~ msgstr ""
#~ "Nao pode colocar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou ou colocou)"

268
locale/pt.po~ Normal file
View File

@ -0,0 +1,268 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-13 00:36-0300\n"
"PO-Revision-Date: 2018-07-13 00:45-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.6\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: balao.lua balao_decor.lua
msgid "Balao Decorativo"
msgstr "Balao Decorativo"
#: balao_decor.lua
msgid "Node de Balao Decorativo"
msgstr "Node de Balao Decorativo"
#: bau.lua
msgid "Bau do Balao"
msgstr "Bau do Balao"
#: bau.lua
msgid "Esse Balao nao lhe pertence"
msgstr "Esse Balao nao lhe pertence"
#: bau_spawn.lua
msgid "Bau do Balao do Centro"
msgstr "Bau do Balao do Centro"
#: bau_spawn.lua
msgid "Novo centro definido"
msgstr "Novo centro definido"
#: bau_spawn.lua
msgid "Precisa do privilegio 'server' para colocar esse bau"
msgstr "Precisa do privilegio 'server' para colocar esse bau"
#: corda.lua
msgid "Corda de Balao"
msgstr "Corda de Balao"
#: gerar_balao_aleatorio.lua
msgid "Novo local encontrado"
msgstr "Novo local encontrado"
#: interface_bau.lua
msgid "Muito distante do seu Bau de Balao"
msgstr "Muito distante do seu Bau de Balao"
#: interface_bau.lua
msgid "Ir para Centro"
msgstr "Ir para Centro"
#: interface_bau.lua
msgid "Reparar Balao"
msgstr "Reparar Balao"
#: interface_bau.lua visitas.lua
msgid "Receber seguidor"
msgstr "Receber seguidor"
#: interface_bau.lua
msgid "Ir para seu Balao"
msgstr "Ir para seu Balao"
#: interface_bau.lua visitas.lua
msgid "Seguir jogador"
msgstr "Seguir jogador"
#: interface_bau.lua
msgid "Precisas ter um balao ativo"
msgstr "Precisas ter um balao ativo"
#: interface_bau.lua mensagens.lua
msgid "Viagem ao Centro realizada"
msgstr "Viagem ao Centro realizada"
#: interface_bau.lua
msgid "Balao ativo"
msgstr "Balao ativo"
#: interface_jogador.lua
msgid "Gerar Balao"
msgstr "Gerar Balao"
#: interface_jogador.lua
msgid "Por Balao Aqui"
msgstr "Por Balao Aqui"
#: ir_balao.lua
msgid "Sem nenhum balao ainda"
msgstr "Sem nenhum balao ainda"
#: ir_balao.lua
msgid "Seu balao foi destruido"
msgstr "Seu balao foi destruido"
#: ir_balao.lua
msgid "Viagem para o posto de seu balao realizada"
msgstr "Viagem para o posto de seu balao realizada"
#: reivindicar.lua
msgid "Balao reivindicado com sucesso"
msgstr "Balao reivindicado com sucesso"
#: reparar_balao.lua
msgid "O caminho para cima esta obstruido (corda) portanto abra mais o local"
msgstr "O caminho para cima esta obstruido (corda) portanto abra mais o local"
#: reparar_balao.lua
msgid ""
"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"
msgstr ""
"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"
#: reparar_balao.lua
msgid ""
"Objetos obstruem a parte de cima portanto remova os objetos e tente novamente"
msgstr ""
"Objetos obstruem a parte de cima portanto remova os objetos e tente novamente"
#: visitas.lua
msgid "Pedidos recebidos"
msgstr "Pedidos recebidos"
#: visitas.lua
msgid "Voltar"
msgstr "Voltar"
#: visitas.lua
msgid "Enviar pedido"
msgstr "Enviar pedido"
#: visitas.lua
msgid "Nao podes seguir a si mesmo"
msgstr "Nao podes seguir a si mesmo"
#: visitas.lua
msgid "@1 offline ou inexistente"
msgstr "@1 offline ou inexistente"
#: visitas.lua
msgid "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido"
msgstr "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido"
#: visitas.lua
msgid "Pedido invalido"
msgstr "Pedido invalido"
#: visitas.lua
msgid "@1 offline"
msgstr "@1 offline"
#: visitas.lua
msgid "@1 saiu de perto do balao do centro"
msgstr "@1 saiu de perto do balao do centro"
#: visitas.lua
msgid "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao"
msgstr "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao"
#: visitas.lua
msgid "@1 te seguiu"
msgstr "@1 te seguiu"
#: visitas.lua
msgid "Voce seguiu @1"
msgstr "Voce seguiu @1"
#: mensagens.lua
msgid ""
"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima "
"vez que gerou)"
msgstr ""
"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima "
"vez que gerou)"
#: mensagens.lua
msgid "Aguarde alguns segundos enquanto o balao esta endo preparado"
msgstr "Aguarde alguns segundos enquanto o balao esta endo preparado"
#: mensagens.lua
msgid "O Seu Balao ficou inoperante"
msgstr "O Seu Balao ficou inoperante"
#: mensagens.lua
msgid "Muito distante do Bau de Balao do Centro"
msgstr "Muito distante do Bau de Balao do Centro"
#: mensagens.lua
msgid "Muito distante do seu proprio Bau de Balao"
msgstr "Muito distante do seu proprio Bau de Balao"
#: mensagens.lua
msgid ""
"Mantenha o local limpo e aberto para levantar que o balao seja levantado "
"automaticamente"
msgstr ""
"Mantenha o local limpo e aberto para levantar que o balao seja levantado "
"automaticamente"
#: mensagens.lua
msgid "Viagem para seu proprio balao realizada"
msgstr "Viagem para seu proprio balao realizada"
#: mensagens.lua
msgid "Precisa subir para um local mais alto"
msgstr "Precisa subir para um local mais alto"
#: mensagens.lua
msgid "Precisa estar num lugar mais aberto"
msgstr "Precisa estar num lugar mais aberto"
#: mensagens.lua
msgid "Objetos obstruem a parte de cima portanto libere o local ou suba"
msgstr "Objetos obstruem a parte de cima portanto libere o local ou suba"
#~ msgid "Precisa estar em local aberto"
#~ msgstr "Precisa estar em local aberto"
#~ msgid ""
#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou)"
#~ msgstr ""
#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou)"
#~ msgid ""
#~ "O caminho para cima esta obstruido. Encontre um lugar onde de para o "
#~ "balao descer"
#~ msgstr ""
#~ "O caminho para cima esta obstruido. Encontre um lugar onde de para o "
#~ "balao descer"
#~ msgid "Parte de cima obstruida. Libere o local ou suba"
#~ msgstr "Parte de cima obstruida. Libere o local ou suba"
#~ msgid ""
#~ "Balao inoperante. Aguarde mantenha o local limpo e aberto e aguarde ele "
#~ "ficar pronto"
#~ msgstr ""
#~ "Balao inoperante. Aguarde mantenha o local limpo e aberto e aguarde ele "
#~ "ficar pronto"
#~ msgid "O Balao ja esta ativo. Nao precisa reparar"
#~ msgstr "O Balao ja esta ativo. Nao precisa reparar"
#~ msgid "O Seu Balao nao esta funcionando. O local foi destruido ou obstruido"
#~ msgstr ""
#~ "O Seu Balao nao esta funcionando. O local foi destruido ou obstruido"
#~ msgid ""
#~ "Nao pode colocar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou ou colocou)"
#~ msgstr ""
#~ "Nao pode colocar um novo balao ainda. (sao necessarias 24 horas desde a "
#~ "ultima vez que gerou ou colocou)"

50
locale/telepro.en.tr Normal file
View File

@ -0,0 +1,50 @@
### Arquivo gerado por telepro apartir de en.po
# textdomain: telepro
Decorative Balloon=Decorative Balloon
Balloon successfully claimed=Balloon successfully claimed
@1 offline or nonexistent=@1 offline or nonexistent
Place Balloon here=Place Balloon here
You can not follow yourself=You can not follow yourself
Far away from your Balloon Box=Far away from your Balloon Box
Decorative Balloon Node=Decorative Balloon Node
Requests received=Requests received
Generate a Balloon=Generate a Balloon
New spawn center defined=New spawn center defined
Balloon is active=Balloon is active
You need to climb to a higher location=You need to climb to a higher location
Far away from the Balloon Box of Spawn Center.=Far away from the Balloon Box of Spawn Center.
You need to be in a cleaner and more open place=You need to be in a cleaner and more open place
Receive follower=Receive follower
Balloon Box of Center Spawn=Balloon Box of Center Spawn
Travel to your own balloon held=Travel to your own balloon held
Trip to the post of your balloon was held=Trip to the post of your balloon was held
Journey to the Center held=Journey to the Center held
You followed @1=You followed @1
This Balloon is not yours=This Balloon is not yours
Your request to follow @1 was accepted but you walked away from the balloon=Your request to follow @1 was accepted but you walked away from the balloon
Request sent to @1 ... Now you need to advise him to accept your request=Request sent to @1 ... Now you need to advise him to accept your request
Send request=Send request
Top is obstructed (where the balloon is) so wipe the top or go to a highest location=Top is obstructed (where the balloon is) so wipe the top or go to a highest location
New place found=New place found
@1 followed you=@1 followed you
Repair Balloon=Repair Balloon
Keep the place clean and open to raise the balloon to be lifted automatically=Keep the place clean and open to raise the balloon to be lifted automatically
Need the 'server' privilege to put this Balloon Box=Need the 'server' privilege to put this Balloon Box
Go to Center=Go to Center
Balloon Box=Balloon Box
Balloon Rope=Balloon Rope
Your balloon has been destroyed=Your balloon has been destroyed
Invalid request=Invalid request
Return=Return
@1 offline=@1 offline
Go to your balloon=Go to your balloon
The way up is obstructed (rope) so open the place further=The way up is obstructed (rope) so open the place further
You need to have an active balloon=You need to have an active balloon
It can not generate a new balloon yet (it is necessary 24 hours since the last time it generated)=It can not generate a new balloon yet (it is necessary 24 hours since the last time it generated)
Wait a few seconds while the balloon is being prepared=Wait a few seconds while the balloon is being prepared
No balloon yet=No balloon yet
Objects obstruct the top so remove the objects and try again=Objects obstruct the top so remove the objects and try again
Far away from the your Balloon Box=Far away from the your Balloon Box
Follow a player=Follow a player
Your Balloon was inoperative=Your Balloon was inoperative
@1 left close to the center balloon=@1 left close to the center balloon

50
locale/telepro.pt.tr Normal file
View File

@ -0,0 +1,50 @@
### Arquivo gerado por telepro apartir de pt.po
# textdomain: telepro
Decorative Balloon=Balao Decorativo
Balloon successfully claimed=Balao reivindicado com sucesso
@1 offline or nonexistent=@1 offline ou inexistente
Place Balloon here=Por Balao Aqui
You can not follow yourself=Nao podes seguir a si mesmo
Far away from your Balloon Box=Muito distante do seu Bau de Balao
Decorative Balloon Node=Node de Balao Decorativo
Requests received=Pedidos recebidos
Generate a Balloon=Gerar Balao
New spawn center defined=Novo centro definido
Balloon is active=Balao ativo
You need to climb to a higher location=Precisa subir para um local mais alto
Far away from the Balloon Box of Spawn Center.=Muito distante do Bau de Balao do Centro
You need to be in a cleaner and more open place=Precisa estar num lugar mais aberto
Receive follower=Receber seguidor
Balloon Box of Center Spawn=Bau do Balao do Centro
Travel to your own balloon held=Viagem para seu proprio balao realizada
Trip to the post of your balloon was held=Viagem para o posto de seu balao realizada
Journey to the Center held=Viagem ao Centro realizada
You followed @1=Voce seguiu @1
This Balloon is not yours=Esse Balao nao lhe pertence
Your request to follow @1 was accepted but you walked away from the balloon=Seu pedido para seguir @1 foi aceito mas voce se afastou do balao
Request sent to @1 ... Now you need to advise him to accept your request=Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido
Send request=Enviar pedido
Top is obstructed (where the balloon is) so wipe the top or go to a highest location=Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba
New place found=Novo local encontrado
@1 followed you=@1 te seguiu
Repair Balloon=Reparar Balao
Keep the place clean and open to raise the balloon to be lifted automatically=Mantenha o local limpo e aberto para levantar que o balao seja levantado automaticamente
Need the 'server' privilege to put this Balloon Box=Precisa do privilegio 'server' para colocar esse bau
Go to Center=Ir para Centro
Balloon Box=Bau do Balao
Balloon Rope=Corda de Balao
Your balloon has been destroyed=Seu balao foi destruido
Invalid request=Pedido invalido
Return=Voltar
@1 offline=@1 offline
Go to your balloon=Ir para seu Balao
The way up is obstructed (rope) so open the place further=O caminho para cima esta obstruido (corda) portanto abra mais o local
You need to have an active balloon=Precisas ter um balao ativo
It can not generate a new balloon yet (it is necessary 24 hours since the last time it generated)=Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima vez que gerou)
Wait a few seconds while the balloon is being prepared=Aguarde alguns segundos enquanto o balao esta endo preparado
No balloon yet=Sem nenhum balao ainda
Objects obstruct the top so remove the objects and try again=Objetos obstruem a parte de cima portanto libere o local ou suba
Far away from the your Balloon Box=Muito distante do seu proprio Bau de Balao
Follow a player=Seguir jogador
Your Balloon was inoperative=O Seu Balao ficou inoperante
@1 left close to the center balloon=@1 saiu de perto do balao do centro

215
locale/template.pot Normal file
View File

@ -0,0 +1,215 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-13 00:49-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: balao.lua balao_decor.lua
msgid "Balao Decorativo"
msgstr ""
#: balao_decor.lua
msgid "Node de Balao Decorativo"
msgstr ""
#: bau.lua
msgid "Bau do Balao"
msgstr ""
#: bau.lua
msgid "Esse Balao nao lhe pertence"
msgstr ""
#: bau_spawn.lua
msgid "Bau do Balao do Centro"
msgstr ""
#: bau_spawn.lua
msgid "Novo centro definido"
msgstr ""
#: bau_spawn.lua
msgid "Precisa do privilegio 'server' para colocar esse bau"
msgstr ""
#: corda.lua
msgid "Corda de Balao"
msgstr ""
#: gerar_balao_aleatorio.lua
msgid "Novo local encontrado"
msgstr ""
#: interface_bau.lua
msgid "Muito distante do seu Bau de Balao"
msgstr ""
#: interface_bau.lua
msgid "Ir para Centro"
msgstr ""
#: interface_bau.lua
msgid "Reparar Balao"
msgstr ""
#: interface_bau.lua visitas.lua
msgid "Receber seguidor"
msgstr ""
#: interface_bau.lua
msgid "Ir para seu Balao"
msgstr ""
#: interface_bau.lua visitas.lua
msgid "Seguir jogador"
msgstr ""
#: interface_bau.lua
msgid "Precisas ter um balao ativo"
msgstr ""
#: interface_bau.lua mensagens.lua
msgid "Viagem ao Centro realizada"
msgstr ""
#: interface_bau.lua
msgid "Balao ativo"
msgstr ""
#: interface_jogador.lua
msgid "Gerar Balao"
msgstr ""
#: interface_jogador.lua
msgid "Por Balao Aqui"
msgstr ""
#: ir_balao.lua
msgid "Sem nenhum balao ainda"
msgstr ""
#: ir_balao.lua
msgid "Seu balao foi destruido"
msgstr ""
#: ir_balao.lua
msgid "Viagem para o posto de seu balao realizada"
msgstr ""
#: reivindicar.lua
msgid "Balao reivindicado com sucesso"
msgstr ""
#: reparar_balao.lua
msgid "O caminho para cima esta obstruido (corda) portanto abra mais o local"
msgstr ""
#: reparar_balao.lua
msgid ""
"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"
msgstr ""
#: visitas.lua
msgid "Pedidos recebidos"
msgstr ""
#: visitas.lua
msgid "Voltar"
msgstr ""
#: visitas.lua
msgid "Enviar pedido"
msgstr ""
#: visitas.lua
msgid "Nao podes seguir a si mesmo"
msgstr ""
#: visitas.lua
msgid "@1 offline ou inexistente"
msgstr ""
#: visitas.lua
msgid "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido"
msgstr ""
#: visitas.lua
msgid "Pedido invalido"
msgstr ""
#: visitas.lua
msgid "@1 offline"
msgstr ""
#: visitas.lua
msgid "@1 saiu de perto do balao do centro"
msgstr ""
#: visitas.lua
msgid "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao"
msgstr ""
#: visitas.lua
msgid "@1 te seguiu"
msgstr ""
#: visitas.lua
msgid "Voce seguiu @1"
msgstr ""
#: mensagens.lua
msgid ""
"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima "
"vez que gerou)"
msgstr ""
#: mensagens.lua
msgid "Aguarde alguns segundos enquanto o balao esta endo preparado"
msgstr ""
#: mensagens.lua
msgid "O Seu Balao ficou inoperante"
msgstr ""
#: mensagens.lua
msgid "Muito distante do Bau de Balao do Centro"
msgstr ""
#: mensagens.lua
msgid "Muito distante do seu proprio Bau de Balao"
msgstr ""
#: mensagens.lua
msgid ""
"Mantenha o local limpo e aberto para levantar que o balao seja levantado "
"automaticamente"
msgstr ""
#: mensagens.lua
msgid "Viagem para seu proprio balao realizada"
msgstr ""
#: mensagens.lua
msgid "Precisa subir para um local mais alto"
msgstr ""
#: mensagens.lua
msgid "Precisa estar num lugar mais aberto"
msgstr ""
#: mensagens.lua
msgid "Objetos obstruem a parte de cima portanto libere o local ou suba"
msgstr ""

41
mensagens.lua Normal file
View File

@ -0,0 +1,41 @@
--[[
Mod Telepro para Minetest
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
Recebeste uma cópia da GNU Lesser General
Public License junto com esse software,
se não, veja em <http://www.gnu.org/licenses/>.
Mensagens padrão
]]
local S = telepro.Sfake
telepro.msg = {
-- Ao tentar gerar um Balão aleatorio antes do termino das 24 horas
limite_de_usos_por_dia = S("Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima vez que gerou)"),
-- Ao iniciar geração de balao proprio
aguardar_gerar_balao = S("Aguarde alguns segundos enquanto o balao esta endo preparado"),
-- O bau informa balao inativo
balao_inativo = S("O Seu Balao ficou inoperante"),
-- Não foi encontrado registro no banco de dados de nenhum balão
balao_inexistente = S("O Seu Balao ficou inoperante"),
-- Muito distante do balão do centro
longe_do_balao_centro = S("Muito distante do Bau de Balao do Centro"),
-- Muito distante do próprio balão
longe_do_balao_proprio = S("Muito distante do seu proprio Bau de Balao"),
-- Recomendações para que o proprio balao seja ativado
recomendacoes_limpezas_balao = S("Mantenha o local limpo e aberto para levantar que o balao seja levantado automaticamente"),
-- Viagem ao centro realizada
ao_ir_centro = S("Viagem ao Centro realizada"),
-- Viagem ao proprio balao
ao_ir_casa = S("Viagem para seu proprio balao realizada"),
-- Problemas ao montar balão
-- Local baixo
local_muito_baixo = S("Precisa subir para um local mais alto"),
-- Local muito fechado (obstruções ao balao)
local_muito_fechado = S("Precisa estar num lugar mais aberto")
-- Objetos estao ocupando a area que o modelo/malha do balão vai ocupar
objetos_obstruem_balao = S("Objetos obstruem a parte de cima portanto libere o local ou suba")
}

View File

@ -9,6 +9,8 @@
Função para Reivindicar balao
]]
local S = telepro.S
-- Lista de jogadores que não podem gerar novo balao
telepro.travados = {}
@ -29,7 +31,7 @@ telepro.reivindicar = function(player)
-- Verificar se está travado
if telepro.travados[name] == true then
minetest.chat_send_player(name, "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a ultima vez que gerou)")
minetest.chat_send_player(name, S(telepro.msg.limite_de_usos_por_dia))
return false
end
@ -38,7 +40,7 @@ telepro.reivindicar = function(player)
-- Verifica se está numa coordenada muito baixa (menor que o nível do mar)
if pos.y < 10 then
minetest.chat_send_player(name, "Local muito baixo. Precisa subir para um local mais alto.")
minetest.chat_send_player(name, S(telepro.msg.local_muito_baixo))
return false
end
@ -46,7 +48,7 @@ telepro.reivindicar = function(player)
do
local luz = minetest.get_node_light(pos, 0.5)
if not luz or luz < 13 then
minetest.chat_send_player(name, "Precisa estar num lugar mais aberto.")
minetest.chat_send_player(name, S(telepro.msg.local_muito_fechado))
return false
end
end
@ -69,7 +71,7 @@ telepro.reivindicar = function(player)
-- Verifica se pegou nodes de ar
if table.maxn(nodes) < 25 then
minetest.chat_send_player(name, "O caminho para cima esta obstruido. Encontre um lugar onde de para o balao descer.")
minetest.chat_send_player(name, S())
return false
end
end
@ -85,7 +87,7 @@ telepro.reivindicar = function(player)
-- Verifica se pegou todos nodes de ar
if table.maxn(nodes) < 5850 then -- 15 * 15 * 26
minetest.chat_send_player(name, "Parte de cima obstruida. Libere o local ou suba.")
minetest.chat_send_player(name, S(telepro.msg.local_muito_fechado))
return false
end
end
@ -104,7 +106,7 @@ telepro.reivindicar = function(player)
-- Verificar entidades na area do balao
if table.maxn(minetest.get_objects_inside_radius({x=pos.x, y=pos.y+23, z=pos.z}, 15)) > 0 then
minetest.chat_send_player(name, "Objetos obstruem a parte de cima. Libere o local ou suba.")
minetest.chat_send_player(name, S(telepro.msg.objetos_obstruem_balao))
return
end
@ -143,6 +145,6 @@ telepro.reivindicar = function(player)
minetest.after(3600, telepro.destravar, name)
-- Finaliza
minetest.chat_send_player(name, "Balao reivindicado com sucesso.")
minetest.chat_send_player(name, S("Balao reivindicado com sucesso"))
return true
end

View File

@ -9,6 +9,8 @@
Reparar Balao
]]
local S = telepro.S
-- Metodo para reparar o balao
telepro.reparar_balao = function(name, pos)
@ -16,7 +18,7 @@ telepro.reparar_balao = function(name, pos)
do
local luz = minetest.get_node_light({x=pos.x, y=pos.y+1, z=pos.z+1}, 0.5)
if not luz or luz < 13 then
minetest.chat_send_player(name, "Precisa estar em local aberto.")
minetest.chat_send_player(name, S(telepro.msg.local_muito_fechado))
return false
end
end
@ -32,7 +34,7 @@ telepro.reparar_balao = function(name, pos)
-- Verifica se pegou nodes de ar
if table.maxn(nodes) < 24 then
minetest.chat_send_player(name, "O caminho para cima esta obstruido (corda). Abra mais o local."..table.maxn(nodes))
minetest.chat_send_player(name, S("O caminho para cima esta obstruido (corda) portanto abra mais o local"))
return false
end
end
@ -48,14 +50,14 @@ telepro.reparar_balao = function(name, pos)
-- Verifica se pegou todos nodes de ar
if table.maxn(nodes) < 5850 then -- 15 * 15 * 26
minetest.chat_send_player(name, "Parte de cima obstruida (onde fica o balao). Libere o local ou suba.")
minetest.chat_send_player(name, S("Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba"))
return false
end
end
-- Verificar entidades na area do balao
if table.maxn(minetest.get_objects_inside_radius({x=pos.x, y=pos.y+23, z=pos.z}, 15)) > 0 then
minetest.chat_send_player(name, "Objetos obstruem a parte de cima. remova os objetos e tente novamente.")
minetest.chat_send_player(name, S(telepro.msg.objetos_obstruem_balao))
return
end

33
tools/xgettext.bat Normal file
View File

@ -0,0 +1,33 @@
@echo off
setlocal
set me=%~n0
rem # Uncomment the following line if gettext is not in your PATH.
rem # Value must be absolute and end in a backslash.
rem set gtprefix=C:\path\to\gettext\bin\
if "%1" == "" (
echo Usage: %me% FILE... 1>&2
exit 1
)
set xgettext=%gtprefix%xgettext.exe
set msgmerge=%gtprefix%msgmerge.exe
md locale > nul 2>&1
echo Generating template... 1>&2
echo %xgettext% --from-code=UTF-8 -kS -kNS:1,2 -k_ -o locale/template.pot %*
%xgettext% --from-code=UTF-8 -kS -kNS:1,2 -k_ -o locale/template.pot %*
if %ERRORLEVEL% neq 0 goto done
cd locale
for %%f in (*.po) do (
echo Updating %%f... 1>&2
%msgmerge% --update %%f template.pot
)
echo DONE! 1>&2
:done

27
tools/xgettext.sh Executable file
View File

@ -0,0 +1,27 @@
#! /bin/bash
me=$(basename "${BASH_SOURCE[0]}");
if [[ $# -lt 1 ]]; then
echo "Usage: $me FILE..." >&2;
exit 1;
fi
mkdir -p locale;
echo "Generating template..." >&2;
xgettext --from-code=UTF-8 \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
"$@" \
|| exit;
find locale -name '*.po' -type f | while read -r file; do
echo "Updating $file..." >&2;
msgmerge --update "$file" locale/template.pot;
done
echo "DONE!" >&2;

177
tradutor.lua Normal file
View File

@ -0,0 +1,177 @@
--[[
Mod telepro para Minetest
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
Recebeste uma cópia da GNU Lesser General
Public License junto com esse software,
se não, veja em <http://www.gnu.org/licenses/>.
Sistema de tradução
]]
-- Modpath
local modpath = minetest.get_modpath("telepro")
-- Tradução intllib
telepro.intllib = {}
telepro.intllib.S, telepro.intllib.NS = dofile(modpath.."/lib/intllib.lua")
-- Configura tradutor opicional
telepro.S = telepro.intllib.S
telepro.NS = telepro.intllib.NS
--
-- Ajustes devido ao bug de tradutor ler apenas traduzir do ingles
--
-- Strings para repassar textos em ingles
local pt_to_en = {}
-- Gera arquivos de tradução telepro.*.tr
do
local file_to_tb = function(file)
local msgid = nil
local msgstr = nil
local tb = {}
for line in io.lines(file) do
-- Iniciando 'msgid'
if string.sub(line, 1, 5) == "msgid" then
-- Escrever no catalogo a anterior
if msgid ~= nil and msgstr ~= nil then
if msgid ~= "" then
tb[msgid] = msgstr
end
msgid = nil
msgstr = nil
end
if line == "msgid \"\"" then
msgid = ""
else
msgid = string.sub(line, 8, (string.len(line)-1))
end
-- Continuando 'msgid'
elseif string.sub(line, 1, 1) == "\"" and msgstr == nil and msgid ~= nil then
msgid = msgid .. string.sub(line, 2, (string.len(line)-1))
-- Iniciando 'msgstr'
elseif string.sub(line, 1, 6) == "msgstr" then
if line == "msgstr \"\"" then
msgstr = ""
else
msgstr = string.sub(line, 9, (string.len(line)-1))
end
-- Continuando 'msgstr'
elseif string.sub(line, 1, 1) == "\"" and msgstr ~= nil then
msgstr = msgstr .. string.sub(line, 2, (string.len(line)-1))
end
end
-- Escrever ultima
if msgid ~= nil and msgstr ~= nil then
if msgid ~= "" then
tb[msgid] = msgstr
end
msgid = nil
msgstr = nil
end
return tb
end
-- Pegar strings principais en-pt para realizar as trocas
pt_to_en = file_to_tb(modpath.."/locale/en.po")
--minetest.log("error", "pt_to_en = "..dump(pt_to_en))
local list = minetest.get_dir_list(modpath.."/locale")
for _,file in ipairs(list) do
if string.match(file, "~") == nil then
-- Traduções ".po"
if string.match(file, ".pot") == nil and string.match(file, ".po") then
local lang_code = string.gsub(file, ".po", "")
local pt_to_lang = file_to_tb(modpath.."/locale/"..file)
-- tabela desejada
local en_to_lang = {}
for pt,en in pairs(pt_to_en) do
en_to_lang[en] = pt_to_lang[pt]
end
-- Novo arquivo
local new_file = "### Arquivo gerado por telepro apartir de "..file.."\n# textdomain: telepro\n"
for en,lang in pairs(en_to_lang) do
new_file = new_file .. en .. "=" .. lang .. "\n"
end
-- Escrever arquivo
local saida = io.open(modpath.."/locale/telepro."..lang_code..".tr", "w")
saida:write(new_file)
io.close(saida)
end
end
end
end
-- Ajuste para repassar termos em ingles
local s
if minetest.get_translator ~= nil then
s = minetest.get_translator("telepro")
else
s = telepro.intllib.S
end
telepro.s = function(...)
local args = { ... }
if pt_to_en[args[1]] ~= nil then
return s(pt_to_en[args[1]], unpack(args, 2))
end
minetest.log("error", "[telepro] String "..dump(args[1]).." nao catalogada")
return s(...)
end
-- Não troca string caso esteja trabalhando com intllib
if minetest.get_modpath("intllib") ~= nil
and minetest.get_translator == nil
then
telepro.s = s
end
telepro.S = function(...)
local args = { ... }
if type(args[1]) == "table" then
local r = {}
for n,a in ipairs(args[1]) do
if n ~= 1 then -- Não traduz o primeiro
table.insert(r, telepro.S(a))
else
table.insert(r, a)
end
end
return telepro.s(unpack(r))
elseif type(args[1]) == "string" then
-- Não traduz caso faltem argumentos (devido strings ilustrativas)
return telepro.s(...)
else
return args[1]
end
end
-- Função que retorna a string inalterada para passar pela checagem
telepro.Sfake = function(s) return s end

View File

@ -9,6 +9,8 @@
Visitas
]]
local S = telepro.S
-- Acesar interface do jogador para visitas
telepro.acessar_visitas = function(player, tipo)
if not player then
@ -32,23 +34,23 @@ telepro.acessar_visitas = function(player, tipo)
formspec = "size[5,3]"
..default.gui_bg
..default.gui_bg_img
.."label[0,0;Pedidos recebidos]"
.."label[0,0;"..S("Pedidos recebidos").."]"
.."dropdown[0,0.5;5.25,1;visita;"..visitas..";]"
.."button[0,1.15;5,1;receber_visita;Receber seguidor]"
.."button[0,1.15;5,1;receber_visita;"..S("Receber seguidor").."]"
.."image[0.4,2;1.5,1.5;telepro_aceitar_visita.png]"
.."button[2,2.25;3,1;voltar;Voltar]"
.."button[2,2.25;3,1;voltar;"..S("Voltar").."]"
elseif tipo == "centro" then
-- Cria formspec
formspec = "size[5,3]"
..default.gui_bg
..default.gui_bg_img
.."field[0.28,0.8;5,1;visitado;Seguir jogador;]"
.."button_exit[0,1.25;5,1;enviar_pedido;Enviar pedido]"
.."field[0.28,0.8;5,1;visitado;"..S("Seguir jogador")..";]"
.."button_exit[0,1.25;5,1;enviar_pedido;"..S("Enviar pedido").."]"
.."image[0.4,2;1.5,1.5;telepro_visitar.png]"
.."button[2,2.25;3,1;voltar;Voltar]"
.."button[2,2.25;3,1;voltar;"..S("Voltar").."]"
end
-- Exibir formspec
@ -66,12 +68,12 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
local name = player:get_player_name()
if name == fields.visitado then
minetest.chat_send_player(name, "Nao podes seguir a si mesmo")
minetest.chat_send_player(name, S("Nao podes seguir a si mesmo"))
return
end
if not telepro.online[fields.visitado] then
minetest.chat_send_player(name, "\""..fields.visitado.."\" offline ou inexistente")
minetest.chat_send_player(name, S("@1 offline ou inexistente", "'"..fields.visitado.."'"))
return
end
@ -82,7 +84,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Insere nome na tabela de pedidos
temp.pedidos_visita[name] = true
minetest.chat_send_player(name, "Pedido enviado a \""..fields.visitado.."\". Avise para aceitar")
minetest.chat_send_player(name, S("Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido", "'"..fields.visitado.."'"))
elseif fields.voltar then
telepro.acessar_bau_spawn(player)
@ -99,13 +101,13 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Verifica se pedido ainda existe
if not fields.visita or not temp.pedidos_visita[fields.visita] then
minetest.chat_send_player(name, "Pedido invalido "..dump(fields.visita))
minetest.chat_send_player(name, S("Pedido invalido"))
return
end
-- Verifica se o visitante ainda esta online
if not telepro.online[fields.visita] then
minetest.chat_send_player(name, "\""..fields.visita.."\" offline")
minetest.chat_send_player(name, S("@1 offline", "'"..fields.visita.."'"))
return
end
@ -113,16 +115,16 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
-- Verifica se visitante esta perto do balao de centro
if not minetest.find_node_near(visitante:getpos(), 25, {"telepro:bau_spawn"}) then
minetest.chat_send_player(name, "\""..fields.visita.."\" saiu de perto do balao do centro")
minetest.chat_send_player(fields.visita, "Seu pedido para seguir \""..name.."\" foi aceito mas voce se afastou do balao")
minetest.chat_send_player(name, S("@1 saiu de perto do balao do centro", "'"..fields.visita.."'"))
minetest.chat_send_player(fields.visita, S("Seu pedido para seguir @1 foi aceito mas voce se afastou do balao", "'"..name.."'"))
return
end
-- Teleporta jogador
visitante:setpos(player:getpos())
temp.pedidos_visita[fields.visita] = nil
minetest.chat_send_player(name, "\""..fields.visita.."\" te seguiu")
minetest.chat_send_player(fields.visita, "Voce seguiu \""..name.."\"")
minetest.chat_send_player(name, S("@1 te seguiu", "'"..fields.visita.."'"))
minetest.chat_send_player(fields.visita, S("Voce seguiu @1", "'"..name.."'"))
elseif fields.voltar then
telepro.acessar_bau(player)