From e09af0bfe73bd84a3017474f2d00f8e25893afc1 Mon Sep 17 00:00:00 2001 From: BrunoMine Date: Fri, 13 Jul 2018 01:13:10 -0300 Subject: [PATCH] =?UTF-8?q?Adi=C3=A7=C3=A3o=20de=20sistema=20de=20tradu?= =?UTF-8?q?=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- balao.lua | 4 +- balao_decor.lua | 6 +- bau.lua | 6 +- bau_spawn.lua | 8 +- comum.lua | 2 + corda.lua | 4 +- depends.txt | 1 + gerar_balao_aleatorio.lua | 4 +- init.lua | 1 + interface_bau.lua | 31 ++-- interface_jogador.lua | 12 +- ir_balao.lua | 10 +- lib/intllib.lua | 45 +++++ locale/Arquivos para traduzir.txt | 1 + locale/en.mo | Bin 0 -> 4478 bytes locale/en.po | 238 ++++++++++++++++++++++++++ locale/en.po~ | 239 ++++++++++++++++++++++++++ locale/pt.mo | Bin 0 -> 4630 bytes locale/pt.po | 269 ++++++++++++++++++++++++++++++ locale/pt.po~ | 268 +++++++++++++++++++++++++++++ locale/telepro.en.tr | 50 ++++++ locale/telepro.pt.tr | 50 ++++++ locale/template.pot | 215 ++++++++++++++++++++++++ mensagens.lua | 41 +++++ reivindicar.lua | 16 +- reparar_balao.lua | 10 +- tools/xgettext.bat | 33 ++++ tools/xgettext.sh | 27 +++ tradutor.lua | 177 ++++++++++++++++++++ visitas.lua | 32 ++-- 30 files changed, 1740 insertions(+), 60 deletions(-) create mode 100644 lib/intllib.lua create mode 100644 locale/Arquivos para traduzir.txt create mode 100644 locale/en.mo create mode 100644 locale/en.po create mode 100644 locale/en.po~ create mode 100644 locale/pt.mo create mode 100644 locale/pt.po create mode 100644 locale/pt.po~ create mode 100644 locale/telepro.en.tr create mode 100644 locale/telepro.pt.tr create mode 100644 locale/template.pot create mode 100644 mensagens.lua create mode 100644 tools/xgettext.bat create mode 100755 tools/xgettext.sh create mode 100644 tradutor.lua diff --git a/balao.lua b/balao.lua index b0b2f74..85549c4 100644 --- a/balao.lua +++ b/balao.lua @@ -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", diff --git a/balao_decor.lua b/balao_decor.lua index 3d6fd6b..65a5b1e 100644 --- a/balao_decor.lua +++ b/balao_decor.lua @@ -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", diff --git a/bau.lua b/bau.lua index 7f4b9a3..5d883b8 100644 --- a/bau.lua +++ b/bau.lua @@ -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 = "", diff --git a/bau_spawn.lua b/bau_spawn.lua index 2c219bd..3d984d3 100644 --- a/bau_spawn.lua +++ b/bau_spawn.lua @@ -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, diff --git a/comum.lua b/comum.lua index 72bd7c2..1acaafd 100644 --- a/comum.lua +++ b/comum.lua @@ -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) diff --git a/corda.lua b/corda.lua index 558bfcc..18fa806 100644 --- a/corda.lua +++ b/corda.lua @@ -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", diff --git a/depends.txt b/depends.txt index 4ad96d5..9207dab 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +1,2 @@ default +intllib? diff --git a/gerar_balao_aleatorio.lua b/gerar_balao_aleatorio.lua index 30493da..efdbe80 100644 --- a/gerar_balao_aleatorio.lua +++ b/gerar_balao_aleatorio.lua @@ -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 diff --git a/init.lua b/init.lua index b9bd107..6dc7092 100644 --- a/init.lua +++ b/init.lua @@ -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") diff --git a/interface_bau.lua b/interface_bau.lua index 853d884..1851757 100644 --- a/interface_bau.lua +++ b/interface_bau.lua @@ -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 diff --git a/interface_jogador.lua b/interface_jogador.lua index 3a8f645..a081892 100644 --- a/interface_jogador.lua +++ b/interface_jogador.lua @@ -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 diff --git a/ir_balao.lua b/ir_balao.lua index fd716b2..de3d1c5 100644 --- a/ir_balao.lua +++ b/ir_balao.lua @@ -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 diff --git a/lib/intllib.lua b/lib/intllib.lua new file mode 100644 index 0000000..6669d72 --- /dev/null +++ b/lib/intllib.lua @@ -0,0 +1,45 @@ + +-- Fallback functions for when `intllib` is not installed. +-- Code released under Unlicense . + +-- 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 diff --git a/locale/Arquivos para traduzir.txt b/locale/Arquivos para traduzir.txt new file mode 100644 index 0000000..eb7ef1c --- /dev/null +++ b/locale/Arquivos para traduzir.txt @@ -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 diff --git a/locale/en.mo b/locale/en.mo new file mode 100644 index 0000000000000000000000000000000000000000..f662b56695d368502d64fae37393125ba8c26a7c GIT binary patch literal 4478 zcmZ{m&yO5O701g?NWy~oVG>9HLnZw1uH)J4+D>AxV=3#OEY7YMdvO91KWe&bX4>?0 zjjOt6ygo$%32ul;MB<(c5*IFT2?r#OoIwbM8wbP<{sBI(s(W_VHm&Xbc2~c8_1^b= ztKR(M=;OasT&vt)JKL+WKv z;#~*%Q{QXx4k&(Spv?b8JN|zA{#$U9@jrpf;8Bv4`mTdgj~{{t{4ps0{|QRIhe$^1 z@f;{|o&qJFi{Lr%2cYQZSKto#7w{Y4ix`W2%|FTGC!oaj9(Wr3HTV+vA^3Ih2;!4C z&VZuBH~EJvH3BhFv-bU`;Fo!S54;Zk4wO0^W|1ZE7%1PbfiiChN*!h(Wr&yPigLyJ zBk#!T2@n&t!Y%$Zw_J~LBaz63)VI5Y1Ej2a+)~G{a?2%a%SBiRu9Lhy-;N;F7%LRV z*hF7)2|vQcGWTI_;eC-?u2t@1+>}p!hFfa=BDY+kE8$Z3l1q4$OZJUiQs?fH+6ph~ z^;PW#gR-dXzDMmE&B(nX)V8YQmtcxU=T=Xwubs}F?wiuYhYS<%WOi+Ju*0Tk)cUY7 z9&1w$n<~W7DtAHK>TY8y9CY(-s12j|n|M1h-sDbQjGiys%z0B6({5n@v$w^xsPZDi zUT1EsLzCGM#FQwVjxG+o$mpdM=_TiLBe^82E7i0xp2YHk#jk|We$W;9m7|ohtum{w zS&w0wwZRO+?R<8x!8WbICVARwWJtAinJINyj3-XRNk38;XP0)08BXsucFsw#cZ_bo z5VdJ)HzxVajAJo2n?fo;ZDfU%Z7faVZ7 zDD>Edu~S>JWLGP_PZV3SdeR=>2Sp{-i-U=7D&`QT2HC^0unr0<1uO47%2Y>LnoSKa8}u{8oulkAuja3|%l$>n@* zSx|o|b_$bVLen>D`+#+~Hk`T&7ep;W>dVg97svne6{XC!Lf9f8&E8yIUe@bFiXj^< zD*}jBD`Jz`LR2XFX!pT(@=;V%Qwp=`J!mG|J_A8*yLK<=^}9`>wp+I>hvLyU45~pP;8Mlk-uVfeAHbho~5&x?Px|D5g80;26&D8y0OpMPXZ_Ev}vqkyNMsNOJT?{O_1ugE1@3x+#Q?My^Xwg+xk$rYE3Ud6N>L`hGCKSE;hr^ z+i?tU-{{@6(?X1TmrZTg^r@BAv%Qs9d#k7Q%F5cy=XxurS5_9@AkW?oyDXHZcAlAU zn2N?Qw7nf`#{1sa(CWhG#^#m1#aEYC7A~=YIr4ftyAu|v?Y;V?Ny$-jUS}iYgRL)o zd*^EJ?4F&hHL$*Sg}t8_)o@Lp?HBdJTfJ+xV!Ov6wjIi@^{M5RRow{vQI6$7Q5 zSgLcwW94c|$p?C6WLysY_Pe?U8%g8Vw=ZHl=jFP!lbAC_W~*eSHI+83#8yhqF83NGNvf+HBW7lH^}zG{K+4d?NxG6^%&kpy`2q77*FO6PK8v@9Og5-G z0Sg7gz2qyZ+HcFUYiqqot%azzOYWu~31hT8eq+QyOE!+CQCf|0=PO@Q-{I8gmPiUp zWZQD^2sLPFooY)|B~|QH7<(nfmk){PforNTwK36-~ zJ+R&krw27qgt-2!n51!WPHP%QwHZAsh9jgJ8%E8M#o-^d%U-Ks*>MQQ=D6i%!X}j= zErw0b5oei>cz9#`Op>w!tW8W-|fgy2-$A&*yt1s zSNt;IOM70W&PlIqQ&LysIYu}vyi2vWVo!?_LhMOXo%%;;s&5H0_D;78KT&h-St2pE zqNXAuz{ELp^&v${Gc)Cncs;nQTleal=(n=F;zsC|-}=xqvSqGze8Itz#-)eK?#JK! g, 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)" diff --git a/locale/en.po~ b/locale/en.po~ new file mode 100644 index 0000000..29d0a7a --- /dev/null +++ b/locale/en.po~ @@ -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 , 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)" diff --git a/locale/pt.mo b/locale/pt.mo new file mode 100644 index 0000000000000000000000000000000000000000..5810b192a1c0766ee18366e95dc78b7b70c3924e GIT binary patch literal 4630 zcmeH~PmCN#6^D!1CT1W648e{=;&L!}ZRpMH+K$cImTYgS?8(gS(-`m%%yseRu}mh70gMya@O0tmFSFe3tw7 zq4;qRir@F)QTTT#d3f$~#00+!W&R&S$;0bV;`=3(es4jE|2?=H{t=#qpTNCvFG-eo zj=_WQCs6wR0uqY43tvW?cOXCYA;}Uw{tU&Be?rM~i<9WF8;T!GkXOn=(PItrQ@1&Z zKfi`D&mW-p`zI)I+=tTdLG%70lsxRjNc7kXCt!r4$J_8Qyaz>(e?u8(j=@C_14WNp zQ1o~MiXQJm(c>d{2JR&33veD@gm>XA{0HQx4ic33aU9Y`%|p@S29!Mf3W^>dK$-t9 zke~VwCtOn7=`8(rL5Y7q6g^Hr(PI&c9(SO`^Lr?Id;+DP+EwfEEJTiUNL7u4+GTwfg9NTD=PMTBlC+kiQ$;A$u_(Br7gTJI< z0c(@@t0JbSMbAfVi?zxW3^49*V`+HGc*9_aCYYXA=hDcp*{%2(_7ksEnBTYEa|L(fPowbfiPawZU1&oTL2jLi#O5MRDhhir?k zRTpf)uL(-td+P;=ikxz62S=ruX%q!gy!xgBA~plg*~&q=ha zMmKNp+Ek?<5Pa7Rk{An>69v#lW~if0($sm|i1Ts7+Pe*7^<>;B_ZEAOwaJ zd2Bu8df(ikzldGCi8Hb4m`^c4umeA$tYor!Qp?JdQb3TVMiw8LdmIT0`2vT?fs|!O z*4d`0{*PyiX<@KPSte4Bnw35|IjPU~kye&%*F}g`vm{K{I;m-?wq{i|W4K~ua?z>2 zkDAW5!-J?6eY3Lk*|o~4#b#J0q!dRkw|xroV6FDVSD#ggrqYQ2-l7j!|1 z=2f4oq*T4^)@?}o*k7?rE3~%DOZ=;+k0dr|-ltUQdI!2HKJz$jbv+-{)wFSqH->An z0|ve7`(!JqYt%x)KCm%}EEOJC&7jNP$?~X6Ej_PuR>zno36gTLOPTe=6ZOb}oe;)5l45 z-RGp9^!ZiWEwlMvcHM^Pd@-Y2q>1&DEyTX-W#_7X%$7Wl7q4Vj?Z}By_L?c}jGk^! zoygk9v#BGx-JUsmENdTWw_BHpGh1TK#@v)X(DRZh_{{Wewq(s<)BTJdmaT>Pg}IH% zrzYF2S+)a~Nw)N}A(NE$X8Fo6XX84lyDKI{Tb};G()sMfhMml{Y(qB3PSSHle@36^ zxUzL4yI>18kL1Lnr|wHVJ=vaowY8X6!Q|O_9|mzo7sGTLPfwrJ_2ub_LhnDVrw*NL t$>(zGySw$>UH^t}USwO}-L3DgX}*zL-(CLXNdE, 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)" diff --git a/locale/pt.po~ b/locale/pt.po~ new file mode 100644 index 0000000..bc5aee9 --- /dev/null +++ b/locale/pt.po~ @@ -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 , 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)" diff --git a/locale/telepro.en.tr b/locale/telepro.en.tr new file mode 100644 index 0000000..bff4b8b --- /dev/null +++ b/locale/telepro.en.tr @@ -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 diff --git a/locale/telepro.pt.tr b/locale/telepro.pt.tr new file mode 100644 index 0000000..4a1f6be --- /dev/null +++ b/locale/telepro.pt.tr @@ -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 diff --git a/locale/template.pot b/locale/template.pot new file mode 100644 index 0000000..ad4e078 --- /dev/null +++ b/locale/template.pot @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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 "" diff --git a/mensagens.lua b/mensagens.lua new file mode 100644 index 0000000..7ca9a05 --- /dev/null +++ b/mensagens.lua @@ -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 . + + 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") +} diff --git a/reivindicar.lua b/reivindicar.lua index 9f34b30..23b25ec 100644 --- a/reivindicar.lua +++ b/reivindicar.lua @@ -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 diff --git a/reparar_balao.lua b/reparar_balao.lua index 3fe8d96..d6788ad 100644 --- a/reparar_balao.lua +++ b/reparar_balao.lua @@ -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 diff --git a/tools/xgettext.bat b/tools/xgettext.bat new file mode 100644 index 0000000..18403db --- /dev/null +++ b/tools/xgettext.bat @@ -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 diff --git a/tools/xgettext.sh b/tools/xgettext.sh new file mode 100755 index 0000000..1504f42 --- /dev/null +++ b/tools/xgettext.sh @@ -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; diff --git a/tradutor.lua b/tradutor.lua new file mode 100644 index 0000000..d4bba28 --- /dev/null +++ b/tradutor.lua @@ -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 . + + 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 + + diff --git a/visitas.lua b/visitas.lua index 92ecaf1..842842e 100644 --- a/visitas.lua +++ b/visitas.lua @@ -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)