Update to minetest builtin’s translation api (#12)

This will allow client side translation.

I did not found how to export translations files from
https://hosted.weblate.org/projects/minetest/mod-hopper/ but if you need
to add translations from this website, please provide exports and I
convert them.
This commit is contained in:
Louis Royer 2020-02-19 00:47:23 +01:00 committed by GitHub
parent 1ee79fb94a
commit 75e2bdb934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 173 additions and 1074 deletions

@ -1,6 +0,0 @@
default?
lucky_block?
doc?
intllib?
protector?
wine?

@ -1,3 +0,0 @@
Adds hoppers to transport items between chests/furnace etc.
Forum: https://forum.minetest.net/viewtopic.php?f=9&t=20058

@ -5,8 +5,7 @@ if not minetest.get_modpath("doc") then
end
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator("hopper")
hopper.doc.hopper_long_desc = S("Hopper to transfer items between neighboring blocks' inventories.")
hopper.doc.hopper_usage = S("Items are transfered from the block at the wide end of the hopper to the block at the narrow end of the hopper at a rate of one per second. Items can also be placed directly into the hopper's inventory, or they can be dropped into the space above a hopper and will be sucked into the hopper's inventory automatically.\n\n")
@ -21,4 +20,4 @@ hopper.doc.chute_long_desc = S("A chute to transfer items over longer distances.
hopper.doc.chute_usage = S("Chutes operate much like hoppers but do not have their own intake capability. Items can only be inserted into a chute manually or by a hopper connected to a chute. They transfer items in the direction indicated by the arrow on their narrow segment at a rate of one item per second. They have a small buffer capacity, and any items that can't be placed into the target block's inventory will remain lodged in the chute's buffer until manually removed or their destination becomes available.")
hopper.doc.sorter_long_desc = S("A sorter to redirect certain items to an alternate target.")
hopper.doc.sorter_usage = S("This is similar to a chute but has a secondary output that is used to shunt specific items to an alternate destination. There is a set of inventory slots labeled \"Filter\" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides.\n\nIf the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.\n\nIn addition, there is a button labeled \"Filter All\" that will tell the sorter to not use the filter list and instead first attempt to shunt all items out of the filter, only sending items along the non-filter path if the target cannot accept it for whatever reason. This feature is useful for handling \"overflow\" (when the target's inventory fills up) or for dealing with targets that are selective about what they accept (for example, a furnace's fuel slot).")
hopper.doc.sorter_usage = S("This is similar to a chute but has a secondary output that is used to shunt specific items to an alternate destination. There is a set of inventory slots labeled \"Filter\" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides.\n\nIf the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.\n\nIn addition, there is a button labeled \"Filter All\" that will tell the sorter to not use the filter list and instead first attempt to shunt all items out of the filter, only sending items along the non-filter path if the target cannot accept it for whatever reason. This feature is useful for handling \"overflow\" (when the target's inventory fills up) or for dealing with targets that are selective about what they accept (for example, a furnace's fuel slot).")

@ -3,7 +3,7 @@ hopper = {}
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator("hopper")
if minetest.get_modpath("default") then
hopper.formspec_bg = default.gui_bg .. default.gui_bg_img .. default.gui_slots
@ -58,4 +58,4 @@ if minetest.get_modpath("lucky_block") then
})
end
print (S("[MOD] Hopper loaded"))
print (S("[MOD] Hopper loaded"))

@ -1,45 +0,0 @@
-- 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

@ -1,212 +0,0 @@
# Internationalization template for Hopper mod.
# Copyright (C) 2017
# This file is distributed under the same license as the PACKAGE package.
# FaceDeer
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-06 08:42-0700\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: doc.lua:11
msgid "Hopper to transfer items between neighboring blocks' inventories."
msgstr ""
#: doc.lua:12
msgid ""
"Items are transfered from the block at the wide end of the hopper to the "
"block at the narrow end of the hopper at a rate of one per second. Items can "
"also be placed directly into the hopper's inventory, or they can be dropped "
"into the space above a hopper and will be sucked into the hopper's inventory "
"automatically.\n"
"\n"
msgstr ""
#: doc.lua:14
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms, but when in a "
"player's inventory both are represented by a single generic item. The type "
"of hopper block that will be placed when the player uses this item depends "
"on what is pointed at - when the hopper item is pointed at the top or bottom "
"face of a block a vertical hopper is placed, when aimed at the side of a "
"block a side hopper is produced that connects to the clicked-on side.\n"
"\n"
msgstr ""
#: doc.lua:16
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms. They can be "
"interconverted between the two forms via the crafting grid.\n"
"\n"
msgstr ""
#: doc.lua:18
msgid ""
"When used with furnaces, hoppers inject items into the furnace's \"raw "
"material\" inventory slot when the narrow end is attached to the top or "
"bottom and inject items into the furnace's \"fuel\" inventory slot when "
"attached to the furnace's side.\n"
"\n"
"Items that cannot be placed in a target block's inventory will remain in the "
"hopper.\n"
"\n"
"Hoppers have the same permissions as the player that placed them. Hoppers "
"placed by you are allowed to take items from or put items into locked chests "
"that you own, but hoppers placed by other players will be unable to do so. A "
"hopper's own inventory is not not owner-locked, though, so you can use this "
"as a way to allow other players to deposit items into your locked chests."
msgstr ""
#: doc.lua:20
msgid "A chute to transfer items over longer distances."
msgstr ""
#: doc.lua:21
msgid ""
"Chutes operate much like hoppers but do not have their own intake "
"capability. Items can only be inserted into a chute manually or by a hopper "
"connected to a chute. They transfer items in the direction indicated by the "
"arrow on their narrow segment at a rate of one item per second. They have a "
"small buffer capacity, and any items that can't be placed into the target "
"block's inventory will remain lodged in the chute's buffer until manually "
"removed or their destination becomes available."
msgstr ""
#: doc.lua:23
msgid "A sorter to redirect certain items to an alternate target."
msgstr ""
#: doc.lua:24
msgid ""
"This is similar to a chute but has a secondary output that is used to shunt "
"specific items to an alternate destination. There is a set of inventory "
"slots labeled \"Filter\" at the top of this block's inventory display, if "
"you place an item into one of these slots the sorter will record the item's "
"type (without actually taking it from you). Then when items come through the "
"sorter's inventory that match one of the items in the filter list it will "
"first attempt to send it in the direction marked with an arrow on the "
"sorter's sides.\n"
"\n"
"If the item doesn't match the filter list, or the secondary output is unable "
"to take the item for whatever reason, the sorter will try to send the item "
"out the other output instead.\n"
"\n"
"In addition, there is a button labeled \"Filter All\" that will tell the "
"sorter to not use the filter list and instead first attempt to shunt all "
"items out of the filter, only sending items along the non-filter path if the "
"target cannot accept it for whatever reason. This feature is useful for "
"handling \"overflow\" (when the target's inventory fills up) or for dealing "
"with targets that are selective about what they accept (for example, a "
"furnace's fuel slot)."
msgstr ""
#: init.lua:61
msgid "[MOD] Hopper loaded"
msgstr "[MOD] Trichter geladen"
#: utility.lua:34
msgid ""
"Don't\n"
"Eject"
msgstr ""
#: utility.lua:35
msgid ""
"This hopper is currently set to eject items from its output\n"
"even if there isn't a compatible block positioned to receive it.\n"
"Click this button to disable this feature."
msgstr ""
#: utility.lua:37
msgid ""
"Eject\n"
"Items"
msgstr ""
#: utility.lua:38
msgid ""
"This hopper is currently set to hold on to item if there\n"
"isn't a compatible block positioned to receive it.\n"
"Click this button to have it eject items instead."
msgstr ""
#: nodes\chute.lua:20
msgid "Hopper Chute"
msgstr ""
#: nodes\chute.lua:78
#, fuzzy
msgid "@1 moves stuff to chute at @2"
msgstr "@1 verlagert Dinge in einen Trichter bei @2"
#: nodes\hoppers.lua:60
msgid "Hopper"
msgstr "Trichter"
#: nodes\hoppers.lua:122
#: nodes\hoppers.lua:214
msgid "@1 moves stuff in hopper at @2"
msgstr "@1 bewegt Dinge in einem Trichter bei @2"
#: nodes\hoppers.lua:127
#: nodes\hoppers.lua:219
msgid "@1 moves stuff to hopper at @2"
msgstr "@1 verlagert Dinge in einen Trichter bei @2"
#: nodes\hoppers.lua:132
#: nodes\hoppers.lua:224
msgid "@1 moves stuff from hopper at @2"
msgstr "@1 nimmt Dinge aus einem Trichter bei @2"
#: nodes\hoppers.lua:148
msgid "Side Hopper"
msgstr "Seitentrichter"
#: nodes\sorter.lua:26
msgid ""
"Selective\n"
"Filter"
msgstr ""
#: nodes\sorter.lua:27
msgid ""
"This sorter is currently set to try sending all items\n"
"in the direction of the arrow. Click this button\n"
"to enable an item-type-specific filter."
msgstr ""
#: nodes\sorter.lua:29
msgid "Filter"
msgstr ""
#: nodes\sorter.lua:30
msgid ""
"Filter\n"
"All"
msgstr ""
#: nodes\sorter.lua:31
msgid ""
"This sorter is currently set to only send items listed\n"
"in the filter list in the direction of the arrow.\n"
"Click this button to set it to try sending all\n"
"items that way first."
msgstr ""
#: nodes\sorter.lua:51
msgid "Sorter"
msgstr ""
#: nodes\sorter.lua:144
#, fuzzy
msgid "@1 moves stuff to sorter at @2"
msgstr "@1 verlagert Dinge in einen Trichter bei @2"

34
locale/hopper.de.tr Normal file

@ -0,0 +1,34 @@
# textdomain: hopper
# Internationalization template for Hopper mod.
# Copyright (C) 2017
# This file is distributed under the same license as the PACKAGE package.
# FaceDeer
Hopper to transfer items between neighboring blocks' inventories.=
Items are transfered from the block at the wide end of the hopper to the block at the narrow end of the hopper at a rate of one per second. Items can also be placed directly into the hopper's inventory, or they can be dropped into the space above a hopper and will be sucked into the hopper's inventory automatically.@n@n=
Hopper blocks come in both 'vertical' and 'side' forms, but when in a player's inventory both are represented by a single generic item. The type of hopper block that will be placed when the player uses this item depends on what is pointed at - when the hopper item is pointed at the top or bottom face of a block a vertical hopper is placed, when aimed at the side of a block a side hopper is produced that connects to the clicked-on side.@n@n=
Hopper blocks come in both 'vertical' and 'side' forms. They can be interconverted between the two forms via the crafting grid.@n@n=
When used with furnaces, hoppers inject items into the furnace's "raw material" inventory slot when the narrow end is attached to the top or bottom and inject items into the furnace's "fuel" inventory slot when attached to the furnace's side.@n@nItems that cannot be placed in a target block's inventory will remain in the hopper.@n@nHoppers have the same permissions as the player that placed them. Hoppers placed by you are allowed to take items from or put items into locked chests that you own, but hoppers placed by other players will be unable to do so. A hopper's own inventory is not not owner-locked, though, so you can use this as a way to allow other players to deposit items into your locked chests.=
A chute to transfer items over longer distances.=
Chutes operate much like hoppers but do not have their own intake capability. Items can only be inserted into a chute manually or by a hopper connected to a chute. They transfer items in the direction indicated by the arrow on their narrow segment at a rate of one item per second. They have a small buffer capacity, and any items that can't be placed into the target block's inventory will remain lodged in the chute's buffer until manually removed or their destination becomes available.=
A sorter to redirect certain items to an alternate target.=
This is similar to a chute but has a secondary output that is used to shunt specific items to an alternate destination. There is a set of inventory slots labeled "Filter" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides.@n@nIf the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.@n@nIn addition, there is a button labeled "Filter All" that will tell the sorter to not use the filter list and instead first attempt to shunt all items out of the filter, only sending items along the non-filter path if the target cannot accept it for whatever reason. This feature is useful for handling "overflow" (when the target's inventory fills up) or for dealing with targets that are selective about what they accept (for example, a furnace's fuel slot).=
[MOD] Hopper loaded=[MOD] Trichter geladen
Don't@nEject=
This hopper is currently set to eject items from its output@neven if there isn't a compatible block positioned to receive it.@nClick this button to disable this feature.=
Eject@nItems=
This hopper is currently set to hold on to item if there@nisn't a compatible block positioned to receive it.@nClick this button to have it eject items instead.=
Hopper Chute=
@1 moves stuff to chute at @2=@1 verlagert Dinge in einen Trichter bei @2
Hopper=Trichter
@1 moves stuff in hopper at @2=@1 bewegt Dinge in einem Trichter bei @2
@1 moves stuff to hopper at @2=@1 verlagert Dinge in einen Trichter bei @2
@1 moves stuff from hopper at @2=@1 nimmt Dinge aus einem Trichter bei @2
Side Hopper=Seitentrichter
Selective@nFilter=
This sorter is currently set to try sending all items@nin the direction of the arrow. Click this button@nto enable an item-type-specific filter.=
Filter=
Filter@nAll=
This sorter is currently set to only send items listed@nin the filter list in the direction of the arrow.@nClick this button to set it to try sending all@nitems that way first.=
Sorter=
@1 moves stuff to sorter at @2=@1 verlagert Dinge in einen Trichter bei @2

32
locale/hopper.pt.tr Normal file

@ -0,0 +1,32 @@
# textdomain: hopper
# Lunovox Heavenfinder <lunovox@disroot.org>
Hopper to transfer items between neighboring blocks' inventories.=Funil para transferir itens entre os inventários dos blocos vizinhos.
Items are transfered from the block at the wide end of the hopper to the block at the narrow end of the hopper at a rate of one per second. Items can also be placed directly into the hopper's inventory, or they can be dropped into the space above a hopper and will be sucked into the hopper's inventory automatically.@n@n=Os itens são transferidos do bloco na extremidade larga da tremonha para o bloco na extremidade estreita da tremonha a uma taxa de um por segundo. Os itens também podem ser colocados diretamente no estoque do funil, ou podem ser colocados no espaço acima de um funil e serão sugados para o inventário do funil automaticamente.@n@n
Hopper blocks come in both 'vertical' and 'side' forms, but when in a player's inventory both are represented by a single generic item. The type of hopper block that will be placed when the player uses this item depends on what is pointed at - when the hopper item is pointed at the top or bottom face of a block a vertical hopper is placed, when aimed at the side of a block a side hopper is produced that connects to the clicked-on side.@n@n=Os blocos do funil vêm em formulários "verticais" e "laterais", mas quando no inventário de um jogador ambos são representados por um único item genérico. O tipo de bloco funil que será colocado quando o jogador usa este item depende do que está apontado - quando o item funil é apontado na face superior ou inferior de um bloco, um funil vertical é colocado, quando apontado para o lado de um bloquear um funil lateral é produzido que se conecta ao lado clicado.@n@n
Hopper blocks come in both 'vertical' and 'side' forms. They can be interconverted between the two forms via the crafting grid.@n@n=Os blocos do funil vêm nas formas 'vertical' e 'lateral'. Eles podem ser interconvertidos entre as duas formas através da grade de criação.@n@n
When used with furnaces, hoppers inject items into the furnace's "raw material" inventory slot when the narrow end is attached to the top or bottom and inject items into the furnace's "fuel" inventory slot when attached to the furnace's side.@n@nItems that cannot be placed in a target block's inventory will remain in the hopper.@n@nHoppers have the same permissions as the player that placed them. Hoppers placed by you are allowed to take items from or put items into locked chests that you own, but hoppers placed by other players will be unable to do so. A hopper's own inventory is not not owner-locked, though, so you can use this as a way to allow other players to deposit items into your locked chests.=Quando usados com fornos, os funis injetam itens na fenda de estoque de "matéria-prima" do forno quando a extremidade estreita é presa à parte superior ou inferior e injetam itens na ranhura de estoque "combustível" do forno quando fixados ao lado do forno.@n@nItens que não podem ser colocados no inventário de um bloco de destino permanecerão no depósito.@n@nOs funis têm as mesmas permissões que o jogador que os colocou. Os funis colocados por você podem pegar itens ou colocar itens em caixas bloqueadas que você possui, mas os funis colocados por outros jogadores não poderão fazê-lo. No entanto, o inventário próprio de um depósito não é bloqueado pelo proprietário, portanto você pode usar isso como uma forma de permitir que outros jogadores depositem itens em seus baús bloqueados.
A chute to transfer items over longer distances.=Um chute para transferir itens por longas distâncias.
Chutes operate much like hoppers but do not have their own intake capability. Items can only be inserted into a chute manually or by a hopper connected to a chute. They transfer items in the direction indicated by the arrow on their narrow segment at a rate of one item per second. They have a small buffer capacity, and any items that can't be placed into the target block's inventory will remain lodged in the chute's buffer until manually removed or their destination becomes available.=As calhas funcionam muito bem como tremonhas, mas não possuem sua própria capacidade de admissão. Os itens só podem ser inseridos em um chute manualmente ou por um funil conectado a um chute. Eles transferem itens na direção indicada pela seta em seu segmento estreito a uma taxa de um item por segundo. Eles têm uma capacidade de buffer de memória pequena e todos os itens que não podem ser colocados no inventário do bloco de destino permanecerão alojados no buffer de memória do chute até que sejam removidos manualmente ou seu destino esteja disponível.
A sorter to redirect certain items to an alternate target.=Um classificador para redirecionar determinados itens para um destino alternativo.
This is similar to a chute but has a secondary output that is used to shunt specific items to an alternate destination. There is a set of inventory slots labeled "Filter" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides.@n@nIf the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.@n@nIn addition, there is a button labeled "Filter All" that will tell the sorter to not use the filter list and instead first attempt to shunt all items out of the filter, only sending items along the non-filter path if the target cannot accept it for whatever reason. This feature is useful for handling "overflow" (when the target's inventory fills up) or for dealing with targets that are selective about what they accept (for example, a furnace's fuel slot).=Isso é semelhante a um chute, mas tem uma saída secundária usada para desviar itens específicos para um destino alternativo. Há um conjunto de espaços de inventário rotulados como "Filtro" na parte superior da tela de inventário do bloco, se você colocar um item em um desses slots, o classificador registrará o tipo do item (sem realmente tirá-lo de você). Em seguida, quando os itens passarem pelo inventário do classificador que corresponde a um dos itens da lista de filtros, ele primeiro tentará enviá-lo na direção marcada com uma seta nos lados do classificador.@n@nSe o item não corresponder à lista de filtros ou se a saída secundária não puder receber o item por qualquer motivo, o classificador tentará enviar o item para a outra saída.@n@nAlém disso, há um botão chamado "Filtrar tudo" que informa ao classificador para não usar a lista de filtros e tentar primeiro desviar todos os itens para fora do filtro, enviando apenas itens ao longo do caminho sem filtro se o destino não puder aceitar por qualquer motivo. Esse recurso é útil para manipular "estouro" (quando o estoque do alvo é preenchido) ou para lidar com destinos que são seletivos sobre o que eles aceitam (por exemplo, o compartimento de combustível de um forno).
[MOD] Hopper loaded=[Hopper] Carregado com sucesso!
Don't@nEject=Não@nEjetar
This hopper is currently set to eject items from its output@neven if there isn't a compatible block positioned to receive it.@nClick this button to disable this feature.=Este alimentador está atualmente configurado para ejetar itens de sua saída, mesmo se não houver um bloco compatível posicionado para recebê-lo. Clique neste botão para desativar esse recurso.
Eject@nItems=Ejetar@nItens
This hopper is currently set to hold on to item if there@nisn't a compatible block positioned to receive it.@nClick this button to have it eject items instead.=Este funil está atualmente configurado para segurar o item se não houver um bloco compatível posicionado para recebê-lo. Clique neste botão para ejetar itens.
Hopper Chute=Calha de Funil
@1 moves stuff to chute at @2=@1 moveu coisas para calha em @2
Hopper=Funil
@1 moves stuff in hopper at @2=@1 moveu coisas no funil em @2
@1 moves stuff to hopper at @2=@1 moveu as coisas para o funil em @2
@1 moves stuff from hopper at @2=@1 move as coisas do funil para @2
Side Hopper=Funil Lateral
Selective@nFilter=Filtro@nSeletivo
This sorter is currently set to try sending all items@nin the direction of the arrow. Click this button@nto enable an item-type-specific filter.=Este separador está atualmente configurado para tentar enviar todos os itens na direção da seta. Clique neste botão para ativar um filtro específico para um tipo de item.
Filter=Filtro
Filter@nAll=Filtrar@nTudo
This sorter is currently set to only send items listed@nin the filter list in the direction of the arrow.@nClick this button to set it to try sending all@nitems that way first.=Este separador está atualmente configurado para enviar apenas itens listados na lista de filtros na direção da seta. Clique neste botão para configurá-lo para tentar enviar todos os itens dessa maneira primeiro.
Sorter=Organizador
@1 moves stuff to sorter at @2=@1 move coisas para classificador em @2

31
locale/hopper.pt_BR.tr Normal file

@ -0,0 +1,31 @@
# textdomain: hopper
# Lunovox Heavenfinder <lunovox@disroot.org>
Hopper to transfer items between neighboring blocks' inventories.=Funil para transferir itens entre os inventários dos blocos vizinhos.
Items are transfered from the block at the wide end of the hopper to the block at the narrow end of the hopper at a rate of one per second. Items can also be placed directly into the hopper's inventory, or they can be dropped into the space above a hopper and will be sucked into the hopper's inventory automatically.@n@n=Os itens são transferidos do bloco na extremidade larga da tremonha para o bloco na extremidade estreita da tremonha a uma taxa de um por segundo. Os itens também podem ser colocados diretamente no estoque do funil, ou podem ser colocados no espaço acima de um funil e serão sugados para o inventário do funil automaticamente.@n@n
Hopper blocks come in both 'vertical' and 'side' forms, but when in a player's inventory both are represented by a single generic item. The type of hopper block that will be placed when the player uses this item depends on what is pointed at - when the hopper item is pointed at the top or bottom face of a block a vertical hopper is placed, when aimed at the side of a block a side hopper is produced that connects to the clicked-on side.@n@n=Os blocos do funil vêm em formulários "verticais" e "laterais", mas quando no inventário de um jogador ambos são representados por um único item genérico. O tipo de bloco funil que será colocado quando o jogador usa este item depende do que está apontado - quando o item funil é apontado na face superior ou inferior de um bloco, um funil vertical é colocado, quando apontado para o lado de um bloquear um funil lateral é produzido que se conecta ao lado clicado.@n@n
Hopper blocks come in both 'vertical' and 'side' forms. They can be interconverted between the two forms via the crafting grid.@n@n=Os blocos do funil vêm nas formas 'vertical' e 'lateral'. Eles podem ser interconvertidos entre as duas formas através da grade de criação.@n@n
When used with furnaces, hoppers inject items into the furnace's "raw material" inventory slot when the narrow end is attached to the top or bottom and inject items into the furnace's "fuel" inventory slot when attached to the furnace's side.@n@nItems that cannot be placed in a target block's inventory will remain in the hopper.@n@nHoppers have the same permissions as the player that placed them. Hoppers placed by you are allowed to take items from or put items into locked chests that you own, but hoppers placed by other players will be unable to do so. A hopper's own inventory is not not owner-locked, though, so you can use this as a way to allow other players to deposit items into your locked chests.=Quando usados com fornos, os funis injetam itens na fenda de estoque de "matéria-prima" do forno quando a extremidade estreita é presa à parte superior ou inferior e injetam itens na ranhura de estoque "combustível" do forno quando fixados ao lado do forno.@n@nItens que não podem ser colocados no inventário de um bloco de destino permanecerão no depósito.@n@nOs funis têm as mesmas permissões que o jogador que os colocou. Os funis colocados por você podem pegar itens ou colocar itens em caixas bloqueadas que você possui, mas os funis colocados por outros jogadores não poderão fazê-lo. No entanto, o inventário próprio de um depósito não é bloqueado pelo proprietário, portanto você pode usar isso como uma forma de permitir que outros jogadores depositem itens em seus baús bloqueados.
A chute to transfer items over longer distances.=Um chute para transferir itens por longas distâncias.
Chutes operate much like hoppers but do not have their own intake capability. Items can only be inserted into a chute manually or by a hopper connected to a chute. They transfer items in the direction indicated by the arrow on their narrow segment at a rate of one item per second. They have a small buffer capacity, and any items that can't be placed into the target block's inventory will remain lodged in the chute's buffer until manually removed or their destination becomes available.=As calhas funcionam muito bem como tremonhas, mas não possuem sua própria capacidade de admissão. Os itens só podem ser inseridos em um chute manualmente ou por um funil conectado a um chute. Eles transferem itens na direção indicada pela seta em seu segmento estreito a uma taxa de um item por segundo. Eles têm uma capacidade de buffer de memória pequena e todos os itens que não podem ser colocados no inventário do bloco de destino permanecerão alojados no buffer de memória do chute até que sejam removidos manualmente ou seu destino esteja disponível.
A sorter to redirect certain items to an alternate target.=Um classificador para redirecionar determinados itens para um destino alternativo.
This is similar to a chute but has a secondary output that is used to shunt specific items to an alternate destination. There is a set of inventory slots labeled "Filter" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides.@n@nIf the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.@n@nIn addition, there is a button labeled "Filter All" that will tell the sorter to not use the filter list and instead first attempt to shunt all items out of the filter, only sending items along the non-filter path if the target cannot accept it for whatever reason. This feature is useful for handling "overflow" (when the target's inventory fills up) or for dealing with targets that are selective about what they accept (for example, a furnace's fuel slot).=Isso é semelhante a um chute, mas tem uma saída secundária usada para desviar itens específicos para um destino alternativo. Há um conjunto de espaços de inventário rotulados como "Filtro" na parte superior da tela de inventário do bloco, se você colocar um item em um desses slots, o classificador registrará o tipo do item (sem realmente tirá-lo de você). Em seguida, quando os itens passarem pelo inventário do classificador que corresponde a um dos itens da lista de filtros, ele primeiro tentará enviá-lo na direção marcada com uma seta nos lados do classificador.@n@nSe o item não corresponder à lista de filtros ou se a saída secundária não puder receber o item por qualquer motivo, o classificador tentará enviar o item para a outra saída.@n@nAlém disso, há um botão chamado "Filtrar tudo" que informa ao classificador para não usar a lista de filtros e tentar primeiro desviar todos os itens para fora do filtro, enviando apenas itens ao longo do caminho sem filtro se o destino não puder aceitar por qualquer motivo. Esse recurso é útil para manipular "estouro" (quando o estoque do alvo é preenchido) ou para lidar com destinos que são seletivos sobre o que eles aceitam (por exemplo, o compartimento de combustível de um forno).
[MOD] Hopper loaded=[Hopper] Carregado com sucesso!
Don't@nEject=Não@nEjetar
This hopper is currently set to eject items from its output@neven if there isn't a compatible block positioned to receive it.@nClick this button to disable this feature.=Este alimentador está atualmente configurado para ejetar itens de sua saída, mesmo se não houver um bloco compatível posicionado para recebê-lo. Clique neste botão para desativar esse recurso.
Eject@nItems=Ejetar@nItens
This hopper is currently set to hold on to item if there@nisn't a compatible block positioned to receive it.@nClick this button to have it eject items instead.=Este funil está atualmente configurado para segurar o item se não houver um bloco compatível posicionado para recebê-lo. Clique neste botão para ejetar itens.
Hopper Chute=Calha de Funil
@1 moves stuff to chute at @2=@1 moveu coisas para calha em @2
Hopper=Funil
@1 moves stuff in hopper at @2=@1 moveu coisas no funil em @2
@1 moves stuff to hopper at @2=@1 moveu as coisas para o funil em @2
@1 moves stuff from hopper at @2=@1 move as coisas do funil para @2
Side Hopper=Funil Lateral
Selective@nFilter=Filtro@nSeletivo
This sorter is currently set to try sending all items@nin the direction of the arrow. Click this button@nto enable an item-type-specific filter.=Este separador está atualmente configurado para tentar enviar todos os itens na direção da seta. Clique neste botão para ativar um filtro específico para um tipo de item.
Filter=Filtro
Filter@nAll=Filtrar@nTudo
This sorter is currently set to only send items listed@nin the filter list in the direction of the arrow.@nClick this button to set it to try sending all@nitems that way first.=Este separador está atualmente configurado para enviar apenas itens listados na lista de filtros na direção da seta. Clique neste botão para configurá-lo para tentar enviar todos os itens dessa maneira primeiro.
Sorter=Organizador
@1 moves stuff to sorter at @2=@1 move coisas para classificador em @2

@ -1,285 +0,0 @@
# 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: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-06 08:42-0700\n"
"PO-Revision-Date: 2018-12-06 00:15+0000\n"
"Last-Translator: Lunovox Heavenfinder <lunovox@disroot.org>\n"
"Language-Team: Portuguese <https://hosted.weblate.org/projects/minetest/mod-"
"hopper/pt/>\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.4-dev\n"
#: doc.lua:11
msgid "Hopper to transfer items between neighboring blocks' inventories."
msgstr "Funil para transferir itens entre os inventários dos blocos vizinhos."
#: doc.lua:12
msgid ""
"Items are transfered from the block at the wide end of the hopper to the "
"block at the narrow end of the hopper at a rate of one per second. Items can "
"also be placed directly into the hopper's inventory, or they can be dropped "
"into the space above a hopper and will be sucked into the hopper's inventory "
"automatically.\n"
"\n"
msgstr ""
"Os itens são transferidos do bloco na extremidade larga da tremonha para o "
"bloco na extremidade estreita da tremonha a uma taxa de um por segundo. Os "
"itens também podem ser colocados diretamente no estoque do funil, ou podem "
"ser colocados no espaço acima de um funil e serão sugados para o inventário "
"do funil automaticamente.\n"
"\n"
#: doc.lua:14
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms, but when in a "
"player's inventory both are represented by a single generic item. The type "
"of hopper block that will be placed when the player uses this item depends "
"on what is pointed at - when the hopper item is pointed at the top or bottom "
"face of a block a vertical hopper is placed, when aimed at the side of a "
"block a side hopper is produced that connects to the clicked-on side.\n"
"\n"
msgstr ""
"Os blocos do funil vêm em formulários \"verticais\" e \"laterais\", mas "
"quando no inventário de um jogador ambos são representados por um único item "
"genérico. O tipo de bloco funil que será colocado quando o jogador usa este "
"item depende do que está apontado - quando o item funil é apontado na face "
"superior ou inferior de um bloco, um funil vertical é colocado, quando "
"apontado para o lado de um bloquear um funil lateral é produzido que se "
"conecta ao lado clicado.\n"
"\n"
#: doc.lua:16
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms. They can be "
"interconverted between the two forms via the crafting grid.\n"
"\n"
msgstr ""
"Os blocos do funil vêm nas formas 'vertical' e 'lateral'. Eles podem ser "
"interconvertidos entre as duas formas através da grade de criação.\n"
"\n"
#: doc.lua:18
msgid ""
"When used with furnaces, hoppers inject items into the furnace's \"raw "
"material\" inventory slot when the narrow end is attached to the top or "
"bottom and inject items into the furnace's \"fuel\" inventory slot when "
"attached to the furnace's side.\n"
"\n"
"Items that cannot be placed in a target block's inventory will remain in the "
"hopper.\n"
"\n"
"Hoppers have the same permissions as the player that placed them. Hoppers "
"placed by you are allowed to take items from or put items into locked chests "
"that you own, but hoppers placed by other players will be unable to do so. A "
"hopper's own inventory is not not owner-locked, though, so you can use this "
"as a way to allow other players to deposit items into your locked chests."
msgstr ""
"Quando usados com fornos, os funis injetam itens na fenda de estoque de "
"\"matéria-prima\" do forno quando a extremidade estreita é presa à parte "
"superior ou inferior e injetam itens na ranhura de estoque \"combustível\" "
"do forno quando fixados ao lado do forno.\n"
"\n"
"Itens que não podem ser colocados no inventário de um bloco de destino "
"permanecerão no depósito.\n"
"\n"
"Os funis têm as mesmas permissões que o jogador que os colocou. Os funis "
"colocados por você podem pegar itens ou colocar itens em caixas bloqueadas "
"que você possui, mas os funis colocados por outros jogadores não poderão "
"fazê-lo. No entanto, o inventário próprio de um depósito não é bloqueado "
"pelo proprietário, portanto você pode usar isso como uma forma de permitir "
"que outros jogadores depositem itens em seus baús bloqueados."
#: doc.lua:20
msgid "A chute to transfer items over longer distances."
msgstr "Um chute para transferir itens por longas distâncias."
#: doc.lua:21
msgid ""
"Chutes operate much like hoppers but do not have their own intake "
"capability. Items can only be inserted into a chute manually or by a hopper "
"connected to a chute. They transfer items in the direction indicated by the "
"arrow on their narrow segment at a rate of one item per second. They have a "
"small buffer capacity, and any items that can't be placed into the target "
"block's inventory will remain lodged in the chute's buffer until manually "
"removed or their destination becomes available."
msgstr ""
"As calhas funcionam muito bem como tremonhas, mas não possuem sua própria "
"capacidade de admissão. Os itens só podem ser inseridos em um chute "
"manualmente ou por um funil conectado a um chute. Eles transferem itens na "
"direção indicada pela seta em seu segmento estreito a uma taxa de um item "
"por segundo. Eles têm uma capacidade de buffer de memória pequena e todos os "
"itens que não podem ser colocados no inventário do bloco de destino "
"permanecerão alojados no buffer de memória do chute até que sejam removidos "
"manualmente ou seu destino esteja disponível."
#: doc.lua:23
msgid "A sorter to redirect certain items to an alternate target."
msgstr ""
"Um classificador para redirecionar determinados itens para um destino "
"alternativo."
#: doc.lua:24
msgid ""
"This is similar to a chute but has a secondary output that is used to shunt "
"specific items to an alternate destination. There is a set of inventory "
"slots labeled \"Filter\" at the top of this block's inventory display, if "
"you place an item into one of these slots the sorter will record the item's "
"type (without actually taking it from you). Then when items come through the "
"sorter's inventory that match one of the items in the filter list it will "
"first attempt to send it in the direction marked with an arrow on the "
"sorter's sides.\n"
"\n"
"If the item doesn't match the filter list, or the secondary output is unable "
"to take the item for whatever reason, the sorter will try to send the item "
"out the other output instead.\n"
"\n"
"In addition, there is a button labeled \"Filter All\" that will tell the "
"sorter to not use the filter list and instead first attempt to shunt all "
"items out of the filter, only sending items along the non-filter path if the "
"target cannot accept it for whatever reason. This feature is useful for "
"handling \"overflow\" (when the target's inventory fills up) or for dealing "
"with targets that are selective about what they accept (for example, a "
"furnace's fuel slot)."
msgstr ""
"Isso é semelhante a um chute, mas tem uma saída secundária usada para "
"desviar itens específicos para um destino alternativo. Há um conjunto de "
"espaços de inventário rotulados como \"Filtro\" na parte superior da tela de "
"inventário do bloco, se você colocar um item em um desses slots, o "
"classificador registrará o tipo do item (sem realmente tirá-lo de você). Em "
"seguida, quando os itens passarem pelo inventário do classificador que "
"corresponde a um dos itens da lista de filtros, ele primeiro tentará enviá-"
"lo na direção marcada com uma seta nos lados do classificador.\n"
"\n"
"Se o item não corresponder à lista de filtros ou se a saída secundária não "
"puder receber o item por qualquer motivo, o classificador tentará enviar o "
"item para a outra saída.\n"
"\n"
"Além disso, há um botão chamado \"Filtrar tudo\" que informa ao "
"classificador para não usar a lista de filtros e tentar primeiro desviar "
"todos os itens para fora do filtro, enviando apenas itens ao longo do "
"caminho sem filtro se o destino não puder aceitar por qualquer motivo. Esse "
"recurso é útil para manipular \"estouro\" (quando o estoque do alvo é "
"preenchido) ou para lidar com destinos que são seletivos sobre o que eles "
"aceitam (por exemplo, o compartimento de combustível de um forno)."
#: init.lua:61
msgid "[MOD] Hopper loaded"
msgstr "[Hopper] Carregado com sucesso!"
#: utility.lua:34
msgid ""
"Don't\n"
"Eject"
msgstr "Não\nEjetar"
#: utility.lua:35
msgid ""
"This hopper is currently set to eject items from its output\n"
"even if there isn't a compatible block positioned to receive it.\n"
"Click this button to disable this feature."
msgstr ""
"Este alimentador está atualmente configurado para ejetar itens de sua saída, "
"mesmo se não houver um bloco compatível posicionado para recebê-lo. Clique "
"neste botão para desativar esse recurso."
#: utility.lua:37
msgid ""
"Eject\n"
"Items"
msgstr "Ejetar\nItens"
#: utility.lua:38
msgid ""
"This hopper is currently set to hold on to item if there\n"
"isn't a compatible block positioned to receive it.\n"
"Click this button to have it eject items instead."
msgstr ""
"Este funil está atualmente configurado para segurar o item se não houver um "
"bloco compatível posicionado para recebê-lo. Clique neste botão para ejetar "
"itens."
#: nodes\chute.lua:20
msgid "Hopper Chute"
msgstr "Calha de Funil"
#: nodes\chute.lua:78
msgid "@1 moves stuff to chute at @2"
msgstr "@1 moveu coisas para calha em @2"
#: nodes\hoppers.lua:60
msgid "Hopper"
msgstr "Funil"
#: nodes\hoppers.lua:122
#: nodes\hoppers.lua:214
msgid "@1 moves stuff in hopper at @2"
msgstr "@1 moveu coisas no funil em @2"
#: nodes\hoppers.lua:127
#: nodes\hoppers.lua:219
msgid "@1 moves stuff to hopper at @2"
msgstr "@1 moveu as coisas para o funil em @2"
#: nodes\hoppers.lua:132
#: nodes\hoppers.lua:224
msgid "@1 moves stuff from hopper at @2"
msgstr "@1 move as coisas do funil para @2"
#: nodes\hoppers.lua:148
msgid "Side Hopper"
msgstr "Funil Lateral"
#: nodes\sorter.lua:26
msgid ""
"Selective\n"
"Filter"
msgstr "Filtro\nSeletivo"
#: nodes\sorter.lua:27
msgid ""
"This sorter is currently set to try sending all items\n"
"in the direction of the arrow. Click this button\n"
"to enable an item-type-specific filter."
msgstr ""
"Este separador está atualmente configurado para tentar enviar todos os itens "
"na direção da seta. Clique neste botão para ativar um filtro específico para "
"um tipo de item."
#: nodes\sorter.lua:29
msgid "Filter"
msgstr "Filtro"
#: nodes\sorter.lua:30
msgid ""
"Filter\n"
"All"
msgstr "Filtrar\nTudo"
#: nodes\sorter.lua:31
msgid ""
"This sorter is currently set to only send items listed\n"
"in the filter list in the direction of the arrow.\n"
"Click this button to set it to try sending all\n"
"items that way first."
msgstr ""
"Este separador está atualmente configurado para enviar apenas itens listados "
"na lista de filtros na direção da seta. Clique neste botão para configurá-lo "
"para tentar enviar todos os itens dessa maneira primeiro."
#: nodes\sorter.lua:51
msgid "Sorter"
msgstr "Organizador"
#: nodes\sorter.lua:144
msgid "@1 moves stuff to sorter at @2"
msgstr "@1 move coisas para classificador em @2"

@ -1,285 +0,0 @@
# 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: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-06 08:42-0700\n"
"PO-Revision-Date: 2018-12-06 00:27+0000\n"
"Last-Translator: Lunovox Heavenfinder <lunovox@disroot.org>\n"
"Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
"minetest/mod-hopper/pt_BR/>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.4-dev\n"
#: doc.lua:11
msgid "Hopper to transfer items between neighboring blocks' inventories."
msgstr "Funil para transferir itens entre os inventários dos blocos vizinhos."
#: doc.lua:12
msgid ""
"Items are transfered from the block at the wide end of the hopper to the "
"block at the narrow end of the hopper at a rate of one per second. Items can "
"also be placed directly into the hopper's inventory, or they can be dropped "
"into the space above a hopper and will be sucked into the hopper's inventory "
"automatically.\n"
"\n"
msgstr ""
"Os itens são transferidos do bloco na extremidade larga da tremonha para o "
"bloco na extremidade estreita da tremonha a uma taxa de um por segundo. Os "
"itens também podem ser colocados diretamente no estoque do funil, ou podem "
"ser colocados no espaço acima de um funil e serão sugados para o inventário "
"do funil automaticamente.\n"
"\n"
#: doc.lua:14
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms, but when in a "
"player's inventory both are represented by a single generic item. The type "
"of hopper block that will be placed when the player uses this item depends "
"on what is pointed at - when the hopper item is pointed at the top or bottom "
"face of a block a vertical hopper is placed, when aimed at the side of a "
"block a side hopper is produced that connects to the clicked-on side.\n"
"\n"
msgstr ""
"Os blocos do funil vêm em formulários \"verticais\" e \"laterais\", mas "
"quando no inventário de um jogador ambos são representados por um único item "
"genérico. O tipo de bloco funil que será colocado quando o jogador usa este "
"item depende do que está apontado - quando o item funil é apontado na face "
"superior ou inferior de um bloco, um funil vertical é colocado, quando "
"apontado para o lado de um bloquear um funil lateral é produzido que se "
"conecta ao lado clicado.\n"
"\n"
#: doc.lua:16
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms. They can be "
"interconverted between the two forms via the crafting grid.\n"
"\n"
msgstr ""
"Os blocos do funil vêm nas formas 'vertical' e 'lateral'. Eles podem ser "
"interconvertidos entre as duas formas através da grade de criação.\n"
"\n"
#: doc.lua:18
msgid ""
"When used with furnaces, hoppers inject items into the furnace's \"raw "
"material\" inventory slot when the narrow end is attached to the top or "
"bottom and inject items into the furnace's \"fuel\" inventory slot when "
"attached to the furnace's side.\n"
"\n"
"Items that cannot be placed in a target block's inventory will remain in the "
"hopper.\n"
"\n"
"Hoppers have the same permissions as the player that placed them. Hoppers "
"placed by you are allowed to take items from or put items into locked chests "
"that you own, but hoppers placed by other players will be unable to do so. A "
"hopper's own inventory is not not owner-locked, though, so you can use this "
"as a way to allow other players to deposit items into your locked chests."
msgstr ""
"Quando usados com fornos, os funis injetam itens na fenda de estoque de "
"\"matéria-prima\" do forno quando a extremidade estreita é presa à parte "
"superior ou inferior e injetam itens na ranhura de estoque \"combustível\" "
"do forno quando fixados ao lado do forno.\n"
"\n"
"Itens que não podem ser colocados no inventário de um bloco de destino "
"permanecerão no depósito.\n"
"\n"
"Os funis têm as mesmas permissões que o jogador que os colocou. Os funis "
"colocados por você podem pegar itens ou colocar itens em caixas bloqueadas "
"que você possui, mas os funis colocados por outros jogadores não poderão "
"fazê-lo. No entanto, o inventário próprio de um depósito não é bloqueado "
"pelo proprietário, portanto você pode usar isso como uma forma de permitir "
"que outros jogadores depositem itens em seus baús bloqueados."
#: doc.lua:20
msgid "A chute to transfer items over longer distances."
msgstr "Um chute para transferir itens por longas distâncias."
#: doc.lua:21
msgid ""
"Chutes operate much like hoppers but do not have their own intake "
"capability. Items can only be inserted into a chute manually or by a hopper "
"connected to a chute. They transfer items in the direction indicated by the "
"arrow on their narrow segment at a rate of one item per second. They have a "
"small buffer capacity, and any items that can't be placed into the target "
"block's inventory will remain lodged in the chute's buffer until manually "
"removed or their destination becomes available."
msgstr ""
"As calhas funcionam muito bem como tremonhas, mas não possuem sua própria "
"capacidade de admissão. Os itens só podem ser inseridos em um chute "
"manualmente ou por um funil conectado a um chute. Eles transferem itens na "
"direção indicada pela seta em seu segmento estreito a uma taxa de um item "
"por segundo. Eles têm uma capacidade de buffer de memória pequena e todos os "
"itens que não podem ser colocados no inventário do bloco de destino "
"permanecerão alojados no buffer de memória do chute até que sejam removidos "
"manualmente ou seu destino esteja disponível."
#: doc.lua:23
msgid "A sorter to redirect certain items to an alternate target."
msgstr ""
"Um classificador para redirecionar determinados itens para um destino "
"alternativo."
#: doc.lua:24
msgid ""
"This is similar to a chute but has a secondary output that is used to shunt "
"specific items to an alternate destination. There is a set of inventory "
"slots labeled \"Filter\" at the top of this block's inventory display, if "
"you place an item into one of these slots the sorter will record the item's "
"type (without actually taking it from you). Then when items come through the "
"sorter's inventory that match one of the items in the filter list it will "
"first attempt to send it in the direction marked with an arrow on the "
"sorter's sides.\n"
"\n"
"If the item doesn't match the filter list, or the secondary output is unable "
"to take the item for whatever reason, the sorter will try to send the item "
"out the other output instead.\n"
"\n"
"In addition, there is a button labeled \"Filter All\" that will tell the "
"sorter to not use the filter list and instead first attempt to shunt all "
"items out of the filter, only sending items along the non-filter path if the "
"target cannot accept it for whatever reason. This feature is useful for "
"handling \"overflow\" (when the target's inventory fills up) or for dealing "
"with targets that are selective about what they accept (for example, a "
"furnace's fuel slot)."
msgstr ""
"Isso é semelhante a um chute, mas tem uma saída secundária usada para "
"desviar itens específicos para um destino alternativo. Há um conjunto de "
"espaços de inventário rotulados como \"Filtro\" na parte superior da tela de "
"inventário do bloco, se você colocar um item em um desses slots, o "
"classificador registrará o tipo do item (sem realmente tirá-lo de você). Em "
"seguida, quando os itens passarem pelo inventário do classificador que "
"corresponde a um dos itens da lista de filtros, ele primeiro tentará enviá-"
"lo na direção marcada com uma seta nos lados do classificador.\n"
"\n"
"Se o item não corresponder à lista de filtros ou se a saída secundária não "
"puder receber o item por qualquer motivo, o classificador tentará enviar o "
"item para a outra saída.\n"
"\n"
"Além disso, há um botão chamado \"Filtrar tudo\" que informa ao "
"classificador para não usar a lista de filtros e tentar primeiro desviar "
"todos os itens para fora do filtro, enviando apenas itens ao longo do "
"caminho sem filtro se o destino não puder aceitar por qualquer motivo. Esse "
"recurso é útil para manipular \"estouro\" (quando o estoque do alvo é "
"preenchido) ou para lidar com destinos que são seletivos sobre o que eles "
"aceitam (por exemplo, o compartimento de combustível de um forno)."
#: init.lua:61
msgid "[MOD] Hopper loaded"
msgstr "[Hopper] Carregado com sucesso!"
#: utility.lua:34
msgid ""
"Don't\n"
"Eject"
msgstr "Não\nEjetar"
#: utility.lua:35
msgid ""
"This hopper is currently set to eject items from its output\n"
"even if there isn't a compatible block positioned to receive it.\n"
"Click this button to disable this feature."
msgstr ""
"Este alimentador está atualmente configurado para ejetar itens de sua saída, "
"mesmo se não houver um bloco compatível posicionado para recebê-lo. Clique "
"neste botão para desativar esse recurso."
#: utility.lua:37
msgid ""
"Eject\n"
"Items"
msgstr "Ejetar\nItens"
#: utility.lua:38
msgid ""
"This hopper is currently set to hold on to item if there\n"
"isn't a compatible block positioned to receive it.\n"
"Click this button to have it eject items instead."
msgstr ""
"Este funil está atualmente configurado para segurar o item se não houver um "
"bloco compatível posicionado para recebê-lo. Clique neste botão para ejetar "
"itens."
#: nodes\chute.lua:20
msgid "Hopper Chute"
msgstr "Calha de Funil"
#: nodes\chute.lua:78
msgid "@1 moves stuff to chute at @2"
msgstr "@1 moveu coisas para calha em @2"
#: nodes\hoppers.lua:60
msgid "Hopper"
msgstr "Funil"
#: nodes\hoppers.lua:122
#: nodes\hoppers.lua:214
msgid "@1 moves stuff in hopper at @2"
msgstr "@1 moveu coisas no funil em @2"
#: nodes\hoppers.lua:127
#: nodes\hoppers.lua:219
msgid "@1 moves stuff to hopper at @2"
msgstr "@1 moveu as coisas para o funil em @2"
#: nodes\hoppers.lua:132
#: nodes\hoppers.lua:224
msgid "@1 moves stuff from hopper at @2"
msgstr "@1 move as coisas do funil para @2"
#: nodes\hoppers.lua:148
msgid "Side Hopper"
msgstr "Funil Lateral"
#: nodes\sorter.lua:26
msgid ""
"Selective\n"
"Filter"
msgstr "Filtro\nSeletivo"
#: nodes\sorter.lua:27
msgid ""
"This sorter is currently set to try sending all items\n"
"in the direction of the arrow. Click this button\n"
"to enable an item-type-specific filter."
msgstr ""
"Este separador está atualmente configurado para tentar enviar todos os itens "
"na direção da seta. Clique neste botão para ativar um filtro específico para "
"um tipo de item."
#: nodes\sorter.lua:29
msgid "Filter"
msgstr "Filtro"
#: nodes\sorter.lua:30
msgid ""
"Filter\n"
"All"
msgstr "Filtrar\nTudo"
#: nodes\sorter.lua:31
msgid ""
"This sorter is currently set to only send items listed\n"
"in the filter list in the direction of the arrow.\n"
"Click this button to set it to try sending all\n"
"items that way first."
msgstr ""
"Este separador está atualmente configurado para enviar apenas itens listados "
"na lista de filtros na direção da seta. Clique neste botão para configurá-lo "
"para tentar enviar todos os itens dessa maneira primeiro."
#: nodes\sorter.lua:51
msgid "Sorter"
msgstr "Organizador"
#: nodes\sorter.lua:144
msgid "@1 moves stuff to sorter at @2"
msgstr "@1 move coisas para classificador em @2"

@ -1,210 +0,0 @@
# 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-12-06 08:42-0700\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"
#: doc.lua:11
msgid "Hopper to transfer items between neighboring blocks' inventories."
msgstr ""
#: doc.lua:12
msgid ""
"Items are transfered from the block at the wide end of the hopper to the "
"block at the narrow end of the hopper at a rate of one per second. Items can "
"also be placed directly into the hopper's inventory, or they can be dropped "
"into the space above a hopper and will be sucked into the hopper's inventory "
"automatically.\n"
"\n"
msgstr ""
#: doc.lua:14
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms, but when in a "
"player's inventory both are represented by a single generic item. The type "
"of hopper block that will be placed when the player uses this item depends "
"on what is pointed at - when the hopper item is pointed at the top or bottom "
"face of a block a vertical hopper is placed, when aimed at the side of a "
"block a side hopper is produced that connects to the clicked-on side.\n"
"\n"
msgstr ""
#: doc.lua:16
msgid ""
"Hopper blocks come in both 'vertical' and 'side' forms. They can be "
"interconverted between the two forms via the crafting grid.\n"
"\n"
msgstr ""
#: doc.lua:18
msgid ""
"When used with furnaces, hoppers inject items into the furnace's \"raw "
"material\" inventory slot when the narrow end is attached to the top or "
"bottom and inject items into the furnace's \"fuel\" inventory slot when "
"attached to the furnace's side.\n"
"\n"
"Items that cannot be placed in a target block's inventory will remain in the "
"hopper.\n"
"\n"
"Hoppers have the same permissions as the player that placed them. Hoppers "
"placed by you are allowed to take items from or put items into locked chests "
"that you own, but hoppers placed by other players will be unable to do so. A "
"hopper's own inventory is not not owner-locked, though, so you can use this "
"as a way to allow other players to deposit items into your locked chests."
msgstr ""
#: doc.lua:20
msgid "A chute to transfer items over longer distances."
msgstr ""
#: doc.lua:21
msgid ""
"Chutes operate much like hoppers but do not have their own intake "
"capability. Items can only be inserted into a chute manually or by a hopper "
"connected to a chute. They transfer items in the direction indicated by the "
"arrow on their narrow segment at a rate of one item per second. They have a "
"small buffer capacity, and any items that can't be placed into the target "
"block's inventory will remain lodged in the chute's buffer until manually "
"removed or their destination becomes available."
msgstr ""
#: doc.lua:23
msgid "A sorter to redirect certain items to an alternate target."
msgstr ""
#: doc.lua:24
msgid ""
"This is similar to a chute but has a secondary output that is used to shunt "
"specific items to an alternate destination. There is a set of inventory "
"slots labeled \"Filter\" at the top of this block's inventory display, if "
"you place an item into one of these slots the sorter will record the item's "
"type (without actually taking it from you). Then when items come through the "
"sorter's inventory that match one of the items in the filter list it will "
"first attempt to send it in the direction marked with an arrow on the "
"sorter's sides.\n"
"\n"
"If the item doesn't match the filter list, or the secondary output is unable "
"to take the item for whatever reason, the sorter will try to send the item "
"out the other output instead.\n"
"\n"
"In addition, there is a button labeled \"Filter All\" that will tell the "
"sorter to not use the filter list and instead first attempt to shunt all "
"items out of the filter, only sending items along the non-filter path if the "
"target cannot accept it for whatever reason. This feature is useful for "
"handling \"overflow\" (when the target's inventory fills up) or for dealing "
"with targets that are selective about what they accept (for example, a "
"furnace's fuel slot)."
msgstr ""
#: init.lua:61
msgid "[MOD] Hopper loaded"
msgstr ""
#: utility.lua:34
msgid ""
"Don't\n"
"Eject"
msgstr ""
#: utility.lua:35
msgid ""
"This hopper is currently set to eject items from its output\n"
"even if there isn't a compatible block positioned to receive it.\n"
"Click this button to disable this feature."
msgstr ""
#: utility.lua:37
msgid ""
"Eject\n"
"Items"
msgstr ""
#: utility.lua:38
msgid ""
"This hopper is currently set to hold on to item if there\n"
"isn't a compatible block positioned to receive it.\n"
"Click this button to have it eject items instead."
msgstr ""
#: nodes\chute.lua:20
msgid "Hopper Chute"
msgstr ""
#: nodes\chute.lua:78
msgid "@1 moves stuff to chute at @2"
msgstr ""
#: nodes\hoppers.lua:60
msgid "Hopper"
msgstr ""
#: nodes\hoppers.lua:122
#: nodes\hoppers.lua:214
msgid "@1 moves stuff in hopper at @2"
msgstr ""
#: nodes\hoppers.lua:127
#: nodes\hoppers.lua:219
msgid "@1 moves stuff to hopper at @2"
msgstr ""
#: nodes\hoppers.lua:132
#: nodes\hoppers.lua:224
msgid "@1 moves stuff from hopper at @2"
msgstr ""
#: nodes\hoppers.lua:148
msgid "Side Hopper"
msgstr ""
#: nodes\sorter.lua:26
msgid ""
"Selective\n"
"Filter"
msgstr ""
#: nodes\sorter.lua:27
msgid ""
"This sorter is currently set to try sending all items\n"
"in the direction of the arrow. Click this button\n"
"to enable an item-type-specific filter."
msgstr ""
#: nodes\sorter.lua:29
msgid "Filter"
msgstr ""
#: nodes\sorter.lua:30
msgid ""
"Filter\n"
"All"
msgstr ""
#: nodes\sorter.lua:31
msgid ""
"This sorter is currently set to only send items listed\n"
"in the filter list in the direction of the arrow.\n"
"Click this button to set it to try sending all\n"
"items that way first."
msgstr ""
#: nodes\sorter.lua:51
msgid "Sorter"
msgstr ""
#: nodes\sorter.lua:144
msgid "@1 moves stuff to sorter at @2"
msgstr ""

63
locale/template.txt Normal file

@ -0,0 +1,63 @@
# textdomain: hopper
# 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.
#
Hopper to transfer items between neighboring blocks' inventories.=
Items are transfered from the block at the wide end of the hopper to the block at the narrow end of the hopper at a rate of one per second. Items can also be placed directly into the hopper's inventory, or they can be dropped into the space above a hopper and will be sucked into the hopper's inventory automatically.@n@n=
Hopper blocks come in both 'vertical' and 'side' forms, but when in a player's inventory both are represented by a single generic item. The type of hopper block that will be placed when the player uses this item depends on what is pointed at - when the hopper item is pointed at the top or bottom face of a block a vertical hopper is placed, when aimed at the side of a block a side hopper is produced that connects to the clicked-on side.@n@n=
Hopper blocks come in both 'vertical' and 'side' forms. They can be interconverted between the two forms via the crafting grid.@n@n=
When used with furnaces, hoppers inject items into the furnace's "raw material" inventory slot when the narrow end is attached to the top or bottom and inject items into the furnace's "fuel" inventory slot when attached to the furnace's side.@n@nItems that cannot be placed in a target block's inventory will remain in the hopper.@n@nHoppers have the same permissions as the player that placed them. Hoppers placed by you are allowed to take items from or put items into locked chests that you own, but hoppers placed by other players will be unable to do so. A hopper's own inventory is not not owner-locked, though, so you can use this as a way to allow other players to deposit items into your locked chests.=
A chute to transfer items over longer distances.=
Chutes operate much like hoppers but do not have their own intake capability. Items can only be inserted into a chute manually or by a hopper connected to a chute. They transfer items in the direction indicated by the arrow on their narrow segment at a rate of one item per second. They have a small buffer capacity, and any items that can't be placed into the target block's inventory will remain lodged in the chute's buffer until manually removed or their destination becomes available.=
A sorter to redirect certain items to an alternate target.=
This is similar to a chute but has a secondary output that is used to shunt specific items to an alternate destination. There is a set of inventory slots labeled "Filter" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides.@n@nIf the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.@n@nIn addition, there is a button labeled "Filter All" that will tell the sorter to not use the filter list and instead first attempt to shunt all items out of the filter, only sending items along the non-filter path if the target cannot accept it for whatever reason. This feature is useful for handling "overflow" (when the target's inventory fills up) or for dealing with targets that are selective about what they accept (for example, a furnace's fuel slot).=
[MOD] Hopper loaded=
Don't@nEject=
This hopper is currently set to eject items from its output@neven if there isn't a compatible block positioned to receive it.@nClick this button to disable this feature.=
Eject@nItems=
This hopper is currently set to hold on to item if there@nisn't a compatible block positioned to receive it.@nClick this button to have it eject items instead.=
Hopper Chute=
@1 moves stuff to chute at @2=
Hopper=
@1 moves stuff in hopper at @2=
@1 moves stuff to hopper at @2=
@1 moves stuff from hopper at @2=
Side Hopper=
Selective@nFilter=
This sorter is currently set to try sending all items@nin the direction of the arrow. Click this button@nto enable an item-type-specific filter.=
Filter=
Filter@nAll=
This sorter is currently set to only send items listed@nin the filter list in the direction of the arrow.@nClick this button to set it to try sending all@nitems that way first.=
Sorter=
@1 moves stuff to sorter at @2=

@ -1,6 +0,0 @@
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
cd ..
set LIST=
for /r %%X in (*.lua) do set LIST=!LIST! %%X
..\intllib\tools\xgettext.bat %LIST%

@ -1 +1,3 @@
name = hopper
name = hopper
description = Adds hoppers to transport items between chests/furnace etc. Forum: https://forum.minetest.net/viewtopic.php?f=9&t=20058
optional_depends = default, lucky_block, doc, protector, wine

@ -1,7 +1,4 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator("hopper")
local function get_chute_formspec(pos)
local spos = hopper.get_string_pos(pos)
local formspec =
@ -112,4 +109,4 @@ minetest.register_node("hopper:chute", {
minetest.get_node_timer(pos):start(1)
end
end,
})
})

@ -1,6 +1,4 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator("hopper")
-- formspec
local function get_hopper_formspec(pos)

@ -1,6 +1,4 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator("hopper")
local facedir_to_bottomdir = {
[0]={x=0, y=-1, z=0},
@ -215,4 +213,4 @@ minetest.register_node("hopper:sorter", {
minetest.get_node_timer(pos):start(1)
end
end,
})
})

@ -1,7 +1,4 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator("hopper")
-- Target inventory retrieval
-- looks first for a registration matching the specific node name, then for a registration