diff --git a/mods/HELP/doc/doc/API.md b/mods/HELP/doc/doc/API.md index 784a66685..49afeb3aa 100644 --- a/mods/HELP/doc/doc/API.md +++ b/mods/HELP/doc/doc/API.md @@ -454,10 +454,6 @@ viewed a category as well, both returned values are `nil`. This is a convenience function for creating a special formspec widget. It creates a widget in which you can insert scrollable multi-line text. -As of Minetest 0.4.14, this function is only provided because Minetest lacks -native support for such a widget. When Minetest supports such a widget natively, -this function may become just a simple wrapper. - #### Parameters * `data`: Text to be written inside the widget * `x`: Formspec X coordinate (optional) diff --git a/mods/HELP/doc/doc/depends.txt b/mods/HELP/doc/doc/depends.txt deleted file mode 100644 index 4907c641d..000000000 --- a/mods/HELP/doc/doc/depends.txt +++ /dev/null @@ -1,5 +0,0 @@ -intllib? -unified_inventory? -sfinv_buttons? -central_message? -inventory_plus? diff --git a/mods/HELP/doc/doc/description.txt b/mods/HELP/doc/doc/description.txt deleted file mode 100644 index 808a218b1..000000000 --- a/mods/HELP/doc/doc/description.txt +++ /dev/null @@ -1 +0,0 @@ -A simple in-game documentation system which enables mods to add help entries based on templates. diff --git a/mods/HELP/doc/doc/init.lua b/mods/HELP/doc/doc/init.lua index 7f4705ef5..dcb4c7857 100644 --- a/mods/HELP/doc/doc/init.lua +++ b/mods/HELP/doc/doc/init.lua @@ -1,16 +1,10 @@ --- Boilerplate to support localized strings if intllib mod is installed. -local S, F -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end -F = function(f) return minetest.formspec_escape(S(f)) end +local S = minetest.get_translator("doc") +local F = function(f) return minetest.formspec_escape(S(f)) end -- Compability for 0.4.14 or earlier local colorize -if core.colorize then - colorize = core.colorize +if minetest.colorize then + colorize = minetest.colorize else colorize = function(color, text) return text end end @@ -57,9 +51,6 @@ local CATEGORYFIELDSIZE = { HEIGHT = math.floor(doc.FORMSPEC.HEIGHT-1), } --- Maximum characters per line in the text widget -local TEXT_LINELENGTH = 80 - doc.data = {} doc.data.categories = {} doc.data.aliases = {} @@ -462,66 +453,9 @@ end -- Template function templates, to be used for build_formspec in doc.add_category doc.entry_builders = {} --- Inserts line breaks into a single paragraph and collapses all whitespace (including newlines) --- into spaces -local linebreaker_single = function(text, linelength) - if linelength == nil then - linelength = TEXT_LINELENGTH - end - local remain = linelength - local res = {} - local line = {} - local split = function(s) - local res = {} - for w in string.gmatch(s, "%S+") do - res[#res+1] = w - end - return res - end - - for _, word in ipairs(split(text)) do - if string.len(word) + 1 > remain then - table.insert(res, table.concat(line, " ")) - line = { word } - remain = linelength - string.len(word) - else - table.insert(line, word) - remain = remain - (string.len(word) + 1) - end - end - - table.insert(res, table.concat(line, " ")) - return table.concat(res, "\n") -end - --- Inserts automatic line breaks into an entire text and preserves existing newlines -local linebreaker = function(text, linelength) - local out = "" - for s in string.gmatch(text, "([^\n]*)") do - local l = linebreaker_single(s, linelength) - out = out .. l - if(string.len(l) == 0) then - out = out .. "\n" - end - end - -- Remove last newline - if string.len(out) >= 1 then - out = string.sub(out, 1, string.len(out) - 1) - end - return out -end - --- Inserts text suitable for a textlist (including automatic word-wrap) -local text_for_textlist = function(text, linelength) - text = linebreaker(text, linelength) - text = minetest.formspec_escape(text) - text = string.gsub(text, "\n", ",") - return text -end - -- Scrollable freeform text doc.entry_builders.text = function(data) - local formstring = doc.widgets.text(data, doc.FORMSPEC.ENTRY_START_X, doc.FORMSPEC.ENTRY_START_Y, doc.FORMSPEC.ENTRY_WIDTH - 0.2, doc.FORMSPEC.ENTRY_HEIGHT) + local formstring = doc.widgets.text(data, doc.FORMSPEC.ENTRY_START_X, doc.FORMSPEC.ENTRY_START_Y, doc.FORMSPEC.ENTRY_WIDTH - 0.4, doc.FORMSPEC.ENTRY_HEIGHT) return formstring end @@ -539,7 +473,7 @@ doc.entry_builders.text_and_gallery = function(data, playername) formstring = formstring .. doc.widgets.text(data.text, doc.FORMSPEC.ENTRY_START_X, doc.FORMSPEC.ENTRY_START_Y, - doc.FORMSPEC.ENTRY_WIDTH - 0.2, + doc.FORMSPEC.ENTRY_WIDTH - 0.4, doc.FORMSPEC.ENTRY_HEIGHT - stolen_height) return formstring @@ -547,12 +481,13 @@ end doc.widgets = {} -local text_id = 1 -- Scrollable freeform text doc.widgets.text = function(data, x, y, width, height) if x == nil then x = doc.FORMSPEC.ENTRY_START_X end + -- Offset to table[], which was used for this in a previous version + local xfix = x + 0.35 if y == nil then y = doc.FORMSPEC.ENTRY_START_Y end @@ -562,18 +497,13 @@ doc.widgets.text = function(data, x, y, width, height) if height == nil then height = doc.FORMSPEC.ENTRY_HEIGHT end - local baselength = TEXT_LINELENGTH - local widget_basewidth = doc.FORMSPEC.WIDTH - local linelength = math.max(20, math.floor(baselength * (width / widget_basewidth))) + -- Weird offset for textarea[] + local heightfix = height + 1 - local widget_id = "doc_widget_text"..text_id - text_id = text_id + 1 - -- TODO: Wait for Minetest to provide a native widget for scrollable read-only text with automatic line breaks. - -- Currently, all of this had to be hacked into this script manually by using/abusing the table widget - local formstring = "tablecolumns[text]".. - "tableoptions[background=#000000FF;highlight=#000000FF;border=false]".. - "table["..tostring(x)..","..tostring(y)..";"..tostring(width)..","..tostring(height)..";"..widget_id..";"..text_for_textlist(data, linelength).."]" - return formstring, widget_id + -- Also add background box + local formstring = "box["..tostring(x-0.175)..","..tostring(y)..";"..tostring(width)..","..tostring(height)..";#000000]" .. + "textarea["..tostring(xfix)..","..tostring(y)..";"..tostring(width)..","..tostring(heightfix)..";;;"..minetest.formspec_escape(data).."]" + return formstring end -- Image gallery @@ -731,12 +661,12 @@ function doc.formspec_core(tab) minetest.formspec_escape(S("Category list")) .. "," .. minetest.formspec_escape(S("Entry list")) .. "," .. minetest.formspec_escape(S("Entry")) .. ";" - ..tab..";true;true]" .. - "bgcolor[#343434FF]" + ..tab..";false;false]" + -- Let the Game decide on the style, such as background, etc. end function doc.formspec_main(playername) - local formstring = "label[0,0;"..minetest.formspec_escape(DOC_INTRO) .. "\n" + local formstring = "textarea[0.35,0;"..doc.FORMSPEC.WIDTH..",1;;;"..minetest.formspec_escape(DOC_INTRO) .. "\n" local notify_checkbox_x, notify_checkbox_y if doc.get_category_count() >= 1 then formstring = formstring .. F("Please select a category you wish to learn more about:").."]" @@ -806,7 +736,8 @@ function doc.formspec_error_no_categories() formstring = formstring .. minetest.formspec_escape( colorize(COLOR_ERROR, S("Error: No help available.")) .. "\n\n" .. -S("No categories have been registered, but they are required to provide help.\nThe Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again.")) .. "\n\n" .. +S("No categories have been registered, but they are required to provide help.").."\n".. +S("The Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again.")) .. "\n\n" .. S("Recommended mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia.") formstring = formstring .. ";]button_exit[3,5;2,1;okay;"..F("OK").."]" return formstring @@ -941,7 +872,7 @@ function doc.formspec_category(id, playername) if total >= 1 then local revealed = doc.get_revealed_count(playername, id) if revealed == 0 then - formstring = formstring .. "label[0,0.5;"..F("Currently all entries in this category are hidden from you.\nUnlock new entries by progressing in the game.").."]" + formstring = formstring .. "label[0,0.5;"..minetest.formspec_escape(S("Currently all entries in this category are hidden from you.").."\n"..S("Unlock new entries by progressing in the game.")).."]" formstring = formstring .. "button[0,1.5;3,1;doc_button_goto_main;"..F("Go to category list").."]" else formstring = formstring .. "label[0,0.5;"..F("This category has the following entries:").."]" diff --git a/mods/HELP/doc/doc/locale/de.txt b/mods/HELP/doc/doc/locale/de.txt deleted file mode 100644 index 113307ed5..000000000 --- a/mods/HELP/doc/doc/locale/de.txt +++ /dev/null @@ -1,42 +0,0 @@ -< = < -> = > -Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry. = Der Zugriff auf den angeforderten Eintrag wurde verweigert; dieser Eintrag ist geheim. Sie können durch weiteren Spielfortschritt den Zugriff freischalten. Finden Sie selbst heraus, wie Sie diesen Eintrag freischalten können. -All entries read. = Alle Einträge gelesen. -All help entries revealed! = Alle Hilfseinträge aufgedeckt! -All help entries are already revealed. = Alle Hilfseinträge sind schon aufgedeckt. -Allows you to reveal all hidden help entries with /help_reveal = Ermöglicht es Ihnen, alle verborgenen Hilfseinträge mit /help_reveal freizuschalten -Category list = Kategorienliste -Currently all entries in this category are hidden from you.\nUnlock new entries by progressing in the game. = Momentan sind alle Einträge in dieser Kategorie vor Ihnen verborgen.\nSchalten Sie neue Einträge frei, indem Sie im Spiel fortschreiten. -Help = Hilfe -Entry = Eintrag -Entry list = Eintragsliste -Error: Access denied. = Fehler: Zugriff verweigert. -Error: No help available. = Fehler: Keine Hilfe verfügbar. -Go to category list = Zur Kategorienliste -Go to entry list = Zur Eintragsliste -Help > (No Category) = Hilfe > (Keine Kategorie) -Help > @1 = Hilfe > @1 -Help > @1 > @2 = Hilfe > @1 > @2 -Help > @1 > (No Entry) = Hilfe > @1 > (Kein Eintrag) -Hidden entries: @1 = Verborgene Einträge: @1 -New entries: @1 = Neue Einträge: @1 -New help entry unlocked: @1 > @2 = Neuen Hilfseintrag freigeschaltet: @1 > @2 -No categories have been registered, but they are required to provide help.\nThe Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again. = Es wurden keine Kategorien registriert, aber sie werden benötigt, um die Hilfe anbieten zu können.\nDas Dokumentationssystem [doc] bringt von sich aus keine eigenen Hilfsinhalte mit, es benötigt zusätzliche Mods, um sie hinzuzufügen. Bitte stellen Sie sicher, dass solche Mods für diese Welt aktiviert sind und versuchen Sie es erneut. -Number of entries: @1 = Anzahl der Einträge: @1 -OK = OK -Open a window providing help entries about Minetest and more = Ein Fenster mit Hilfseinträgen über Minetest und mehr öffnen -Please select a category you wish to learn more about: = Bitte wählen Sie eine Kategorie, über die Sie mehr erfahren möchten, aus: -Recommended mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia. = Empfohlene Mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia. -Reveal all hidden help entries to you = Alle für Sie verborgenen Hilfseinträge freischalten -Show entry = Eintrag zeigen -Show category = Kategorie zeigen -Show next entry = Nächsten Eintrag zeigen -Show previous entry = Vorherigen Eintrag zeigen -This category does not have any entries. = Diese Kategorie hat keine Einträge. -This category has the following entries: = Diese Kategorie hat die folgenden Einträge: -This category is empty. = Diese Kategorie ist leer. -This is the help. = Dies ist die Hilfe. -You haven't chosen a category yet. Please choose one in the category list first. = Sie haben noch keine Kategorie gewählt. Bitte wählen Sie zuerst eine Kategorie in der Kategorienliste aus. -You haven't chosen an entry yet. Please choose one in the entry list first. = Sie haben noch keinen Eintrag gewählt. Bitte wählen Sie zuerst einen Eintrag in der Eintragsliste aus. -Nameless entry (@1) = Namenloser Eintrag (@1) -Collection of help texts = Sammlung von Hilfstexten diff --git a/mods/HELP/doc/doc/locale/doc.de.tr b/mods/HELP/doc/doc/locale/doc.de.tr new file mode 100644 index 000000000..39fc72514 --- /dev/null +++ b/mods/HELP/doc/doc/locale/doc.de.tr @@ -0,0 +1,51 @@ +# textdomain:doc +<=< +>=> +Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry.=Der Zugriff auf den angeforderten Eintrag wurde verweigert; dieser Eintrag ist geheim. Sie können durch weiteren Spielfortschritt den Zugriff freischalten. Finden Sie selbst heraus, wie Sie diesen Eintrag freischalten können. +All entries read.=Alle Einträge gelesen. +All help entries revealed!=Alle Hilfseinträge aufgedeckt! +All help entries are already revealed.=Alle Hilfseinträge sind schon aufgedeckt. +Allows you to reveal all hidden help entries with /help_reveal=Ermöglicht es Ihnen, alle verborgenen Hilfseinträge mit /help_reveal freizuschalten +Category list=Kategorienliste +Currently all entries in this category are hidden from you.=Momentan sind alle Einträge in dieser Kategorie vor Ihnen verborgen. +Unlock new entries by progressing in the game.=Schalten Sie neue Einträge frei, indem Sie im Spiel fortschreiten. +Help=Hilfe +Entry=Eintrag +Entry list=Eintragsliste +Error: Access denied.=Fehler: Zugriff verweigert. +Error: No help available.=Fehler: Keine Hilfe verfügbar. +Go to category list=Zur Kategorienliste +Go to entry list=Zur Eintragsliste +Help > (No Category)=Hilfe > (Keine Kategorie) +Help > @1=Hilfe > @1 +Help > @1 > @2=Hilfe > @1 > @2 +Help > @1 > (No Entry)=Hilfe > @1 > (Kein Eintrag) +Hidden entries: @1=Verborgene Einträge: @1 +New entries: @1=Neue Einträge: @1 +New help entry unlocked: @1 > @2=Neuen Hilfseintrag freigeschaltet: @1 > @2 +No categories have been registered, but they are required to provide help.=Es wurden keine Kategorien registriert, aber sie werden benötigt, um die Hilfe anbieten zu können. +The Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again.=Das Dokumentationssystem [doc] bringt von sich aus keine eigenen Hilfsinhalte mit, es benötigt zusätzliche Mods, um sie hinzuzufügen. Bitte stellen Sie sicher, dass solche Mods für diese Welt aktiviert sind und versuchen Sie es erneut. +Number of entries: @1=Anzahl der Einträge: @1 +OK=OK +Open a window providing help entries about Minetest and more=Ein Fenster mit Hilfseinträgen über Minetest und mehr öffnen +Please select a category you wish to learn more about:=Bitte wählen Sie eine Kategorie, über die Sie mehr erfahren möchten, aus: +Recommended mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia.=Empfohlene Mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia. +Reveal all hidden help entries to you=Alle für Sie verborgenen Hilfseinträge freischalten +Show entry=Eintrag zeigen +Show category=Kategorie zeigen +Show next entry=Nächsten Eintrag zeigen +Show previous entry=Vorherigen Eintrag zeigen +This category does not have any entries.=Diese Kategorie hat keine Einträge. +This category has the following entries:=Diese Kategorie hat die folgenden Einträge: +This category is empty.=Diese Kategorie ist leer. +This is the help.=Dies ist die Hilfe. +You haven't chosen a category yet. Please choose one in the category list first.=Sie haben noch keine Kategorie gewählt, Bitte wählen Sie zuerst eine aus. +You haven't chosen an entry yet. Please choose one in the entry list first.=Sie haben noch keinen Eintrag gewählt. Bitte wählen Sie zuerst einen aus. +Nameless entry (@1)=Namenloser Eintrag (@1) +Collection of help texts=Sammlung von Hilfstexten +Notify me when new help is available=Benachrichtigen, wenn neue Hilfe verfügbar ist +Play notification sound when new help is available=Toneffekt abspielen, wenn neue Hilfe verfügbar ist +Show previous image=Vorheriges Bild zeigen +Show previous gallery page=Vorherige Galerieseite zeigen +Show next image=Nächstes Bild zeigen +Show next gallery page=Nächste Galerieseite zeigen diff --git a/mods/HELP/doc/doc/locale/doc.pt.tr b/mods/HELP/doc/doc/locale/doc.pt.tr new file mode 100644 index 000000000..52d683632 --- /dev/null +++ b/mods/HELP/doc/doc/locale/doc.pt.tr @@ -0,0 +1,43 @@ +# textdomain:doc +<= +>= +Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry.=O acesso à entrada solicitada foi negado; essa entrada é secreta. Você pode desbloquear o acesso progredindo no jogo. Descobrir por conta própria como desbloquear essa entrada. +All entries read.=Todas as entradas lidas. +All help entries revealed!=Todas as entradas de ajuda reveladas! +All help entries are already revealed.=Todas as entradas de ajuda já foram reveladas. +Allows you to reveal all hidden help entries with /help_reveal=Permite revelar todas as entradas de ajuda ocultas com /help_reveal +Category list=Lista de Categorias +Currently all entries in this category are hidden from you.\\nUnlock new entries by progressing in the game.=Atualmente, todas as entradas nessa categoria estão ocultas a você.\\nDesbloqueie novas entradas progredindo no jogo. +Help=Ajuda +Entry=Entrada +Entry list=Lista de Entradas +Error: Access denied.=Erro: Acesso negado. +Error: No help available.=Erro: Nenhuma ajuda disponível. +Go to category list=Ver categorias +Go to entry list=Ir para a lista de entradas +Help > @1=Ajuda > @1 +Help > @1 > @2=Ajuda > @1 > @2 +Help > @1 > (No Entry)=Ajuda > @1 > (Nenhuma Entrada) +Help > (No Category)=Ajuda > (Nenhuma Categoria) +Hidden entries: @1=Entradas ocultas: @1 +Nameless entry (@1)=Entrada sem nome (@1) +New entries: @1=Novas entradas: (@1) +New help entry unlocked: @1 > @2=Nova entrada de ajuda desbloqueada: @1 > @2 +No categories have been registered, but they are required to provide help.\nThe Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again.=Nenhuma categoria foi registrada, mas é necessário fornecer ajuda.\nO Sistema de Documentação [doc] não vem com o conteúdo de ajuda, ele precisa de mods adicionais para adicionar conteúdo de ajuda. Por favor, certifique-se de que os mods estão habilitados para este mundo e tente novamente. +Number of entries: @1=Número de entradas: @1 +OK=OK +Open a window providing help entries about Minetest and more=Abra uma janela fornecendo entradas de ajuda sobre o Minetest e mais +Please select a category you wish to learn more about:=Por favor, selecione uma categoria sobre a qual você deseja saber mais: +Recommended mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia.=Mods recomendados: doc_basics, doc_items, doc_identifier, doc_encyclopedia. +Reveal all hidden help entries to you=Revela todas as entradas de ajuda ocultas para você +Show entry=Ver entrada +Show category=Ver categoria +Show next entry=Ver próxima entrada +Show previous entry=Ver entrada anterior +This category does not have any entries.=Essa categoria não possui entradas. +This category has the following entries:=Essa categoria tem as seguintes entradas: +This category is empty.=Essa categoria está vazia. +This is the help.=Essa é a ajuda. +You haven't chosen a category yet. Please choose one in the category list first.=Você ainda não escolheu uma categoria. Por favor, escolha uma na lista de categorias primeiro. +You haven't chosen an entry yet. Please choose one in the entry list first.=Você ainda não escolheu uma entrada. Por favor, escolha uma na lista de entrada primeiro. +Collection of help texts=Coleção de textos de ajuda diff --git a/mods/HELP/doc/doc/locale/doc.pt_BR.tr b/mods/HELP/doc/doc/locale/doc.pt_BR.tr new file mode 100644 index 000000000..52d683632 --- /dev/null +++ b/mods/HELP/doc/doc/locale/doc.pt_BR.tr @@ -0,0 +1,43 @@ +# textdomain:doc +<= +>= +Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry.=O acesso à entrada solicitada foi negado; essa entrada é secreta. Você pode desbloquear o acesso progredindo no jogo. Descobrir por conta própria como desbloquear essa entrada. +All entries read.=Todas as entradas lidas. +All help entries revealed!=Todas as entradas de ajuda reveladas! +All help entries are already revealed.=Todas as entradas de ajuda já foram reveladas. +Allows you to reveal all hidden help entries with /help_reveal=Permite revelar todas as entradas de ajuda ocultas com /help_reveal +Category list=Lista de Categorias +Currently all entries in this category are hidden from you.\\nUnlock new entries by progressing in the game.=Atualmente, todas as entradas nessa categoria estão ocultas a você.\\nDesbloqueie novas entradas progredindo no jogo. +Help=Ajuda +Entry=Entrada +Entry list=Lista de Entradas +Error: Access denied.=Erro: Acesso negado. +Error: No help available.=Erro: Nenhuma ajuda disponível. +Go to category list=Ver categorias +Go to entry list=Ir para a lista de entradas +Help > @1=Ajuda > @1 +Help > @1 > @2=Ajuda > @1 > @2 +Help > @1 > (No Entry)=Ajuda > @1 > (Nenhuma Entrada) +Help > (No Category)=Ajuda > (Nenhuma Categoria) +Hidden entries: @1=Entradas ocultas: @1 +Nameless entry (@1)=Entrada sem nome (@1) +New entries: @1=Novas entradas: (@1) +New help entry unlocked: @1 > @2=Nova entrada de ajuda desbloqueada: @1 > @2 +No categories have been registered, but they are required to provide help.\nThe Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again.=Nenhuma categoria foi registrada, mas é necessário fornecer ajuda.\nO Sistema de Documentação [doc] não vem com o conteúdo de ajuda, ele precisa de mods adicionais para adicionar conteúdo de ajuda. Por favor, certifique-se de que os mods estão habilitados para este mundo e tente novamente. +Number of entries: @1=Número de entradas: @1 +OK=OK +Open a window providing help entries about Minetest and more=Abra uma janela fornecendo entradas de ajuda sobre o Minetest e mais +Please select a category you wish to learn more about:=Por favor, selecione uma categoria sobre a qual você deseja saber mais: +Recommended mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia.=Mods recomendados: doc_basics, doc_items, doc_identifier, doc_encyclopedia. +Reveal all hidden help entries to you=Revela todas as entradas de ajuda ocultas para você +Show entry=Ver entrada +Show category=Ver categoria +Show next entry=Ver próxima entrada +Show previous entry=Ver entrada anterior +This category does not have any entries.=Essa categoria não possui entradas. +This category has the following entries:=Essa categoria tem as seguintes entradas: +This category is empty.=Essa categoria está vazia. +This is the help.=Essa é a ajuda. +You haven't chosen a category yet. Please choose one in the category list first.=Você ainda não escolheu uma categoria. Por favor, escolha uma na lista de categorias primeiro. +You haven't chosen an entry yet. Please choose one in the entry list first.=Você ainda não escolheu uma entrada. Por favor, escolha uma na lista de entrada primeiro. +Collection of help texts=Coleção de textos de ajuda diff --git a/mods/HELP/doc/doc/locale/template.txt b/mods/HELP/doc/doc/locale/template.txt index 7d852e9a4..fdeecfdca 100644 --- a/mods/HELP/doc/doc/locale/template.txt +++ b/mods/HELP/doc/doc/locale/template.txt @@ -1,42 +1,51 @@ -< = -> = -Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry. = -All entries read. = -All help entries revealed! = -All help entries are already revealed. = -Allows you to reveal all hidden help entries with /help_reveal = -Category list = -Currently all entries in this category are hidden from you.\\nUnlock new entries by progressing in the game. = -Help = -Entry = -Entry list = -Error: Access denied. = -Error: No help available. = -Go to category list = -Go to entry list = -Help > @1 = -Help > @1 > @2 = -Help > @1 > (No Entry) = -Help > (No Category) = -Hidden entries: @1 = -Nameless entry (@1) = -New entries: @1 = -New help entry unlocked: @1 > @2 = -No categories have been registered, but they are required to provide help.\nThe Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again. = -Number of entries: @1 = -OK = -Open a window providing help entries about Minetest and more = -Please select a category you wish to learn more about: = -Recommended mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia. = -Reveal all hidden help entries to you = -Show entry = -Show category = -Show next entry = -Show previous entry = -This category does not have any entries. = -This category has the following entries: = -This category is empty. = -This is the help. = -You haven't chosen a category yet. Please choose one in the category list first. = -You haven't chosen an entry yet. Please choose one in the entry list first. = -Collection of help texts = +# textdomain:doc +<= +>= +Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry.= +All entries read.= +All help entries revealed!= +All help entries are already revealed.= +Allows you to reveal all hidden help entries with /help_reveal= +Category list= +Currently all entries in this category are hidden from you. +Unlock new entries by progressing in the game.= +Help= +Entry= +Entry list= +Error: Access denied.= +Error: No help available.= +Go to category list= +Go to entry list= +Help > @1= +Help > @1 > @2= +Help > @1 > (No Entry)= +Help > (No Category)= +Hidden entries: @1= +Nameless entry (@1)= +New entries: @1= +New help entry unlocked: @1 > @2= +No categories have been registered, but they are required to provide help.= +The Documentation System [doc] does not come with help contents on its own, it needs additional mods to add help content. Please make sure such mods are enabled on for this world, and try again.= +Number of entries: @1= +OK= +Open a window providing help entries about Minetest and more= +Please select a category you wish to learn more about:= +Recommended mods: doc_basics, doc_items, doc_identifier, doc_encyclopedia.= +Reveal all hidden help entries to you= +Show entry= +Show category= +Show next entry= +Show previous entry= +This category does not have any entries.= +This category has the following entries:= +This category is empty.= +This is the help.= +You haven't chosen a category yet. Please choose one in the category list first.= +You haven't chosen an entry yet. Please choose one in the entry list first.= +Collection of help texts= +Notify me when new help is available= +Play notification sound when new help is available= +Show previous image= +Show previous gallery page= +Show next image= +Show next gallery page= diff --git a/mods/HELP/doc/doc/mod.conf b/mods/HELP/doc/doc/mod.conf index 5e2f43080..302fd83d1 100644 --- a/mods/HELP/doc/doc/mod.conf +++ b/mods/HELP/doc/doc/mod.conf @@ -1 +1,3 @@ name = doc +optional_depends = unified_inventory, sfinv_buttons, central_message, inventory_plus +description = A simple in-game documentation system which enables mods to add help entries based on templates. diff --git a/mods/HELP/doc/doc_identifier/depends.txt b/mods/HELP/doc/doc_identifier/depends.txt deleted file mode 100644 index b4a65e0db..000000000 --- a/mods/HELP/doc/doc_identifier/depends.txt +++ /dev/null @@ -1,5 +0,0 @@ -doc -doc_items -doc_basics? -mcl_core? -intllib? diff --git a/mods/HELP/doc/doc_identifier/description.txt b/mods/HELP/doc/doc_identifier/description.txt deleted file mode 100644 index 8294c740f..000000000 --- a/mods/HELP/doc/doc_identifier/description.txt +++ /dev/null @@ -1 +0,0 @@ -Adds a tool which shows help entries about almost anything which it punches. diff --git a/mods/HELP/doc/doc_identifier/init.lua b/mods/HELP/doc/doc_identifier/init.lua index b326a3952..2713d3890 100644 --- a/mods/HELP/doc/doc_identifier/init.lua +++ b/mods/HELP/doc/doc_identifier/init.lua @@ -1,10 +1,4 @@ --- Boilerplate to support localized strings if intllib mod is installed. -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s) return s end -end +local S = minetest.get_translator("doc_identifier") local doc_identifier = {} @@ -28,7 +22,7 @@ doc_identifier.identify = function(itemstack, user, pointed_thing) elseif itype == "error_node" then message = S("No help entry for this block could be found.") elseif itype == "error_unknown" then - vsize = vsize + 3 + vsize = vsize + 2 local mod if param ~= nil then local colon = string.find(param, ":") @@ -36,20 +30,23 @@ doc_identifier.identify = function(itemstack, user, pointed_thing) mod = string.sub(param,1,colon-1) end end - message = S("Error: This node, item or object is undefined. This is always an error.\nThis can happen for the following reasons:\n• The mod which is required for it is not enabled\n• The author of the game or a mod has made a mistake") + message = S("Error: This node, item or object is undefined. This is always an error.").."\n".. + S("This can happen for the following reasons:").."\n".. + S("• The mod which is required for it is not enabled").."\n".. + S("• The author of the game or a mod has made a mistake") message = message .. "\n\n" if mod ~= nil then if minetest.get_modpath(mod) ~= nil then - message = message .. string.format(S("It appears to originate from the mod “%s”, which is enabled."), mod) + message = message .. S("It appears to originate from the mod “@1”, which is enabled.", mod) message = message .. "\n" else - message = message .. string.format(S("It appears to originate from the mod “%s”, which is not enabled!"), mod) + message = message .. S("It appears to originate from the mod “@1”, which is not enabled!", mod) message = message .. "\n" end end if param ~= nil then - message = message .. string.format(S("Its identifier is “%s”."), param) + message = message .. S("Its identifier is “@1”.", param) end elseif itype == "error_ignore" then message = S("This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.") @@ -61,9 +58,9 @@ doc_identifier.identify = function(itemstack, user, pointed_thing) minetest.show_formspec( username, "doc_identifier:error_missing_item_info", - "size[12,"..vsize..";]" .. - "label[0,0.2;"..minetest.formspec_escape(message).."]" .. - "button_exit[4.5,"..(-0.5+vsize)..";3,1;okay;"..minetest.formspec_escape(S("OK")).."]" + "size[10,"..vsize..";]" .. + "textarea[0.5,0.2;10,"..(vsize-0.2)..";;;"..minetest.formspec_escape(message).."]" .. + "button_exit[3.75,"..(-0.5+vsize)..";3,1;okay;"..minetest.formspec_escape(S("OK")).."]" ) end if pointed_thing.type == "node" then @@ -165,11 +162,10 @@ end minetest.register_tool("doc_identifier:identifier_solid", { description = S("Lookup Tool"), _doc_items_longdesc = S("This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used."), - _doc_items_usagehelp = S("Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid."), + _doc_items_usagehelp = S("Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by using. In liquid mode, this tool points to liquids as well while in solid mode this is not the case."), _doc_items_hidden = false, tool_capabilities = {}, range = 10, - groups = { disable_repair = 1 }, wield_image = "doc_identifier_identifier.png", inventory_image = "doc_identifier_identifier.png", liquids_pointable = false, @@ -182,7 +178,7 @@ minetest.register_tool("doc_identifier:identifier_liquid", { _doc_items_create_entry = false, tool_capabilities = {}, range = 10, - groups = { not_in_creative_inventory = 1, not_in_craft_guide = 1, disable_repair=1 }, + groups = { not_in_creative_inventory = 1, not_in_craft_guide = 1, disable_repair = 1 }, wield_image = "doc_identifier_identifier_liquid.png", inventory_image = "doc_identifier_identifier_liquid.png", liquids_pointable = true, @@ -191,7 +187,6 @@ minetest.register_tool("doc_identifier:identifier_liquid", { on_secondary_use = doc_identifier.solid_mode, }) ---- TODO: These crafting recipes are temporary. Add a different way to obtain the lookup tool minetest.register_craft({ output = "doc_identifier:identifier_solid", recipe = { {"group:stick", "group:stick" }, diff --git a/mods/HELP/doc/doc_identifier/locale/de.txt b/mods/HELP/doc/doc_identifier/locale/de.txt deleted file mode 100644 index 418bd83b9..000000000 --- a/mods/HELP/doc/doc_identifier/locale/de.txt +++ /dev/null @@ -1,13 +0,0 @@ -Error: This node, item or object is undefined. This is always an error.\nThis can happen for the following reasons:\n• The mod which is required for it is not enabled\n• The author of the game or a mod has made a mistake = Fehler: Dieser Node, Gegenstand oder dieses Objekt ist nicht definiert.\nDas ist immer ein Fehler.\nDies kann aus folgenden Gründen passieren:\n• Die Mod, die dafür benötigt wird, ist nicht aktiv\n• Der Spiel-Autor oder ein Mod-Autor machte einen Fehler -It appears to originate from the mod “%s”, which is enabled. = Es scheint von der Mod »%s« zu stammen. Sie ist aktiv. -It appears to originate from the mod “%s”, which is not enabled! = Es scheint von der Mod »%s« zu stammen. Sie ist nicht aktiv! -Its identifier is “%s”. = Der Identifkator ist »%s«. -Lookup Tool = Nachschlagewerkzeug -No help entry for this block could be found. = Für diesen Block konnte kein Hilfseintrag gefunden werden. -No help entry for this item could be found. = Für diesen Gegenstand konnte kein Hilfseintrag gefunden werden. -No help entry for this object could be found. = Für dieses Objekt konnte kein Hilfseintrag gefunden werden. -OK = OK -Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid. = Schlagen Sie einen beliebigen Block, Gegenstand oder irgendwas, worüber Sie mehr erfahren wollen. Das wird den passenden Hilfseintrag öffnen. Das Werkzeug hat zwei Modi, welcher mit einem Rechtsklick gewechselt werden kann. Im Flüssigmodus (blau) zeigt das Werkzeug auch auf Flüssigkeiten. Im Festmodus (rot) ist das nicht der Fall. Der Flüssigmodis ist notwendig, wenn Sie eine Flüssigkeit identifizieren wollen. -This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds. = Dieser Block kann nicht identifiziert werden, weil sich die Welt an dieser Stelle noch nicht materialisiert hat. Versuch es in ein paar Sekunden erneut. -This is a player. = Dies ist ein Spieler. -This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used. = Dieser nützliche kleine Helfer kann benutzt werden, um schnell etwas über die nähere Umgebung zu erfahren. Er identifiziert und analysiert Blöcke, Gegenstände und andere Dinge und zeigt ausführliche Informationen über all das, worauf man ihn anwendet. diff --git a/mods/HELP/doc/doc_identifier/locale/doc_identifier.de.tr b/mods/HELP/doc/doc_identifier/locale/doc_identifier.de.tr new file mode 100644 index 000000000..beba2e75f --- /dev/null +++ b/mods/HELP/doc/doc_identifier/locale/doc_identifier.de.tr @@ -0,0 +1,17 @@ +# textdomain:doc_identifier +Error: This node, item or object is undefined. This is always an error.=Fehler: Dieser Node, Gegenstand oder dieses Objekt ist nicht definiert. Das ist immer ein Fehler. +This can happen for the following reasons:=Dies kann aus folgenden Gründen passieren: +• The mod which is required for it is not enabled=• Die Mod, die dafür benötigt wird, ist nicht aktiv +• The author of the game or a mod has made a mistake=• Der Spiel-Autor oder ein Mod-Autor machte einen Fehler +It appears to originate from the mod “@1”, which is enabled.=Es scheint von der Mod „@1“ zu stammen. Sie ist aktiv. +It appears to originate from the mod “@1”, which is not enabled!=Es scheint von der Mod „@1“ zu stammen. Sie ist nicht aktiv! +Its identifier is “@1”.=Der Identifikator ist „@1“. +Lookup Tool=Nachschlagewerkzeug +No help entry for this block could be found.=Für diesen Block konnte kein Hilfseintrag gefunden werden. +No help entry for this item could be found.=Für diesen Gegenstand konnte kein Hilfseintrag gefunden werden. +No help entry for this object could be found.=Für dieses Objekt konnte kein Hilfseintrag gefunden werden. +OK=OK +Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by using. In liquid mode, this tool points to liquids as well while in solid mode this is not the case.=Schlagen Sie einen beliebigen Block, Gegenstand oder irgendwas, worüber Sie mehr erfahren wollen. Das wird den passenden Hilfseintrag öffnen. Das Werkzeug hat zwei Modi, welcher mit Benutzen gewechselt werden kann. Im Flüssigmodus zeigt das Werkzeug auch auf Flüssigkeiten. Im Festmodus ist das nicht der Fall. +This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.=Dieser Block kann nicht identifiziert werden, weil sich die Welt an dieser Stelle noch nicht materialisiert hat. Versuchen Sie es in ein paar Sekunden erneut. +This is a player.=Dies ist ein Spieler. +This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.=Dieser nützliche kleine Helfer kann benutzt werden, um schnell etwas über die nähere Umgebung zu erfahren. Er identifiziert und analysiert Blöcke, Gegenstände und andere Dinge und zeigt ausführliche Informationen über all das, worauf man ihn anwendet. diff --git a/mods/HELP/doc/doc_identifier/locale/doc_identifier.pt.tr b/mods/HELP/doc/doc_identifier/locale/doc_identifier.pt.tr new file mode 100644 index 000000000..cb013c947 --- /dev/null +++ b/mods/HELP/doc/doc_identifier/locale/doc_identifier.pt.tr @@ -0,0 +1,14 @@ +# textdomain:doc_identifier +Error: This node, item or object is undefined. This is always an error.\\nThis can happen for the following reasons:\\n• The mod which is required for it is not enabled\\n• The author of the game or a mod has made a mistake=Erro: Esse bloco, item ou objeto é indefinido. Isso é sempre um erro.\\n Isso pode ter acontecido pelas seguintes rasões:\\n• O mod o qual ele precisa não está habilitado\\n• O autor do jogo ou mod comoteu um erro +It appears to originate from the mod “%s”, which is enabled.=Parece originar do mod “%s”, que está habilitado. +It appears to originate from the mod “%s”, which is not enabled!=Parece originar do mod “%s”, que não está habilitado. +Its identifier is “%s”.=Seu identificador é “%s”. +Lookup tool=Ferramenta de Pesquisa +No help entry for this block could be found.=Nenhuma entrada de ajuda para esse bloco pode ser encontrada. +No help entry for this item could be found.=Nenhuma entrada de ajuda para esse item pode ser encontrada. +No help entry for this object could be found.=Nenhuma entrada de ajuda para esse objeto pode ser encontrada. +OK=OK +Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid.=Soque qualquer bloco, item ou outra coisa sobre a qual você deseja aprender mais. Isso abrirá a entrada de ajuda apropriada. A ferramenta vem em dois modos que são alterados por um clique direito. No modo líquido (azul), esta ferramenta também aponta para líquidos, enquanto no modo sólido (vermelho) não é esse o caso. O modo líquido é necessário se você quiser identificar um líquido. +This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.=Este bloco não pode ser identificado porque o mundo ainda não se materializou neste momento. Tente novamente em alguns segundos. +This is a player.=Este é um jogador. +This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.=Esse pequeno e útil ajudante pode ser usado para aprender rapidamente sobre as coisas em sua volta. Ele identifica e analisa blocos, itens e outras coisas e mostra informações abrangentes sobre a coisa na qual é usado. diff --git a/mods/HELP/doc/doc_identifier/locale/doc_identifier.pt_BR.tr b/mods/HELP/doc/doc_identifier/locale/doc_identifier.pt_BR.tr new file mode 100644 index 000000000..cb013c947 --- /dev/null +++ b/mods/HELP/doc/doc_identifier/locale/doc_identifier.pt_BR.tr @@ -0,0 +1,14 @@ +# textdomain:doc_identifier +Error: This node, item or object is undefined. This is always an error.\\nThis can happen for the following reasons:\\n• The mod which is required for it is not enabled\\n• The author of the game or a mod has made a mistake=Erro: Esse bloco, item ou objeto é indefinido. Isso é sempre um erro.\\n Isso pode ter acontecido pelas seguintes rasões:\\n• O mod o qual ele precisa não está habilitado\\n• O autor do jogo ou mod comoteu um erro +It appears to originate from the mod “%s”, which is enabled.=Parece originar do mod “%s”, que está habilitado. +It appears to originate from the mod “%s”, which is not enabled!=Parece originar do mod “%s”, que não está habilitado. +Its identifier is “%s”.=Seu identificador é “%s”. +Lookup tool=Ferramenta de Pesquisa +No help entry for this block could be found.=Nenhuma entrada de ajuda para esse bloco pode ser encontrada. +No help entry for this item could be found.=Nenhuma entrada de ajuda para esse item pode ser encontrada. +No help entry for this object could be found.=Nenhuma entrada de ajuda para esse objeto pode ser encontrada. +OK=OK +Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid.=Soque qualquer bloco, item ou outra coisa sobre a qual você deseja aprender mais. Isso abrirá a entrada de ajuda apropriada. A ferramenta vem em dois modos que são alterados por um clique direito. No modo líquido (azul), esta ferramenta também aponta para líquidos, enquanto no modo sólido (vermelho) não é esse o caso. O modo líquido é necessário se você quiser identificar um líquido. +This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.=Este bloco não pode ser identificado porque o mundo ainda não se materializou neste momento. Tente novamente em alguns segundos. +This is a player.=Este é um jogador. +This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.=Esse pequeno e útil ajudante pode ser usado para aprender rapidamente sobre as coisas em sua volta. Ele identifica e analisa blocos, itens e outras coisas e mostra informações abrangentes sobre a coisa na qual é usado. diff --git a/mods/HELP/doc/doc_identifier/locale/template.txt b/mods/HELP/doc/doc_identifier/locale/template.txt index b57c67f5d..a35201af8 100644 --- a/mods/HELP/doc/doc_identifier/locale/template.txt +++ b/mods/HELP/doc/doc_identifier/locale/template.txt @@ -1,13 +1,17 @@ -Error: This node, item or object is undefined. This is always an error.\\nThis can happen for the following reasons:\\n• The mod which is required for it is not enabled\\n• The author of the game or a mod has made a mistake = -It appears to originate from the mod “%s”, which is enabled. = -It appears to originate from the mod “%s”, which is not enabled! = -Its identifier is “%s”. = -Lookup Tool = -No help entry for this block could be found. = -No help entry for this item could be found. = -No help entry for this object could be found. = -OK = -Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid. = -This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds. = -This is a player. = -This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used. = +# textdomain:doc_identifier +Error: This node, item or object is undefined. This is always an error.= +This can happen for the following reasons:= +• The mod which is required for it is not enabled= +• The author of the game or a mod has made a mistake= +It appears to originate from the mod “@1”, which is enabled.= +It appears to originate from the mod “@1”, which is not enabled!= +Its identifier is “@1”.= +Lookup Tool= +No help entry for this block could be found.= +No help entry for this item could be found.= +No help entry for this object could be found.= +OK= +Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by using. In liquid mode, this tool points to liquids as well while in solid mode this is not the case.= +This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.= +This is a player.= +This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.= diff --git a/mods/HELP/doc/doc_identifier/mod.conf b/mods/HELP/doc/doc_identifier/mod.conf index df963a0cf..4a7626a4e 100644 --- a/mods/HELP/doc/doc_identifier/mod.conf +++ b/mods/HELP/doc/doc_identifier/mod.conf @@ -1 +1,4 @@ name = doc_identifier +depends = doc, doc_items +optional_depends = doc_basics, mcl_core +description = Adds a tool which shows help entries about almost anything which it punches. diff --git a/mods/HELP/doc/doc_identifier/textures/doc_identifier_identifier_liquid.png b/mods/HELP/doc/doc_identifier/textures/doc_identifier_identifier_liquid.png index 9f3aef969..d3689ec6b 100644 Binary files a/mods/HELP/doc/doc_identifier/textures/doc_identifier_identifier_liquid.png and b/mods/HELP/doc/doc_identifier/textures/doc_identifier_identifier_liquid.png differ diff --git a/mods/HELP/doc/doc_items/depends.txt b/mods/HELP/doc/doc_items/depends.txt deleted file mode 100644 index 31aa39034..000000000 --- a/mods/HELP/doc/doc_items/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -doc -intllib? diff --git a/mods/HELP/doc/doc_items/description.txt b/mods/HELP/doc/doc_items/description.txt deleted file mode 100644 index 7291077e6..000000000 --- a/mods/HELP/doc/doc_items/description.txt +++ /dev/null @@ -1 +0,0 @@ -Adds automatically generated help texts for items. diff --git a/mods/HELP/doc/doc_items/init.lua b/mods/HELP/doc/doc_items/init.lua index bdbba21a4..7ad8d58be 100644 --- a/mods/HELP/doc/doc_items/init.lua +++ b/mods/HELP/doc/doc_items/init.lua @@ -1,10 +1,5 @@ --- Boilerplate to support localized strings if intllib mod is installed. -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end +local S = minetest.get_translator("doc_items") +local N = function(s) return s end doc.sub.items = {} @@ -642,7 +637,7 @@ doc.add_category("nodes", { end end local fdap = data.def.groups.fall_damage_add_percent - if fdap ~= nil then + if fdap ~= nil and fdap ~= 0 then if fdap > 0 then datastring = datastring .. S("The fall damage on this block is increased by @1%.", fdap) .. "\n" elseif fdap <= -100 then @@ -664,9 +659,13 @@ doc.add_category("nodes", { datastring = datastring .. S("This block can be climbed.").."\n" end local bouncy = data.def.groups.bouncy - if bouncy ~= nil then + if bouncy ~= nil and bouncy ~= 0 then datastring = datastring .. S("This block will make you bounce off with an elasticity of @1%.", bouncy).."\n" end + local slippery = data.def.groups.slippery + if slippery ~= nil and slippery ~= 0 then + datastring = datastring .. S("This block is slippery.") .. "\n" + end datastring = datastring .. factoid_custom("nodes", "movement", data) datastring = newline2(datastring) end @@ -841,15 +840,15 @@ doc.add_category("nodes", { local dropstring = "" local dropstring_base = "" if max == nil then - dropstring_base = S("This block will drop the following items when mined: %s.") + dropstring_base = N("This block will drop the following items when mined: @1.") elseif max == 1 then if #data.def.drop.items == 1 then - dropstring_base = S("This block will drop the following when mined: %s.") + dropstring_base = N("This block will drop the following when mined: @1.") else - dropstring_base = S("This block will randomly drop one of the following when mined: %s.") + dropstring_base = N("This block will randomly drop one of the following when mined: @1.") end else - dropstring_base = S("This block will randomly drop up to %d drops of the following possible drops when mined: %s.") + dropstring_base = N("This block will randomly drop up to @1 drops of the following possible drops when mined: @2.") end -- Save calculated probabilities into a table for later output local probtables = {} @@ -932,7 +931,7 @@ doc.add_category("nodes", { -- Final list seperator dropstring_this = dropstring_this .. S(" and ") end - local desc = S(itemtable.desc) + local desc = itemtable.desc local count = itemtable.count if count ~= 1 then desc = S("@1×@2", count, desc) @@ -963,9 +962,9 @@ doc.add_category("nodes", { pcount = pcount + 1 end if max ~= nil and max > 1 then - datastring = datastring .. string.format(dropstring_base, max, dropstring) + datastring = datastring .. S(dropstring_base, max, dropstring) else - datastring = datastring .. string.format(dropstring_base, dropstring) + datastring = datastring .. S(dropstring_base, dropstring) end datastring = newline(datastring) end @@ -1369,6 +1368,18 @@ minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv end end) +minetest.register_on_player_inventory_action(function(player, action, inventory, inventory_info) + if player == nil then return end + local playername = player:get_player_name() + local itemstack + if action == "take" or action == "put" then + itemstack = inventory_info.stack + end + if itemstack ~= nil and playername ~= nil and playername ~= "" and (not itemstack:is_empty()) then + reveal_item(playername, itemstack:get_name()) + end +end) + minetest.register_on_item_eat(function(hp_change, replace_with_item, itemstack, user, pointed_thing) if user == nil then return end local playername = user:get_player_name() @@ -1402,4 +1413,4 @@ minetest.register_globalstep(function(dtime) end end) -minetest.after(0, gather_descs) +minetest.register_on_mods_loaded(gather_descs) diff --git a/mods/HELP/doc/doc_items/locale/de.txt b/mods/HELP/doc/doc_items/locale/de.txt deleted file mode 100644 index 8bc67ad76..000000000 --- a/mods/HELP/doc/doc_items/locale/de.txt +++ /dev/null @@ -1,140 +0,0 @@ -\sUsing it as fuel turns it into: @1. = \sWird dieser Gegenstand als Brennstoff verwendet, verwandelt er sich zu: @1. -@1 seconds = @1 Sekunden -# Item count times item name -@1×@2 = @1×@2 -# Itemname (25%) -@1 (@2%) = @1 (@2%) -# Itemname (<0.5%) -@1 (<0.5%) = @1 (<0,5%) -# Itemname (ca. 25%) -@1 (ca. @2%) = @1 (ca. @2%) -# List separator (e.g. “one, two, three”) -,\s = ,\s -# Final list separator (e.g. “One, two and three”) -\sand\s = \sund\s -1 second = 1 Sekunde -A transparent block, basically empty space. It is usually left behind after digging something. = Ein transparenter Block, praktisch leerer Raum. Er wird üblicherweise hinterlassen, nachdem man etwas ausgegraben hat. -Air = Luft -Blocks = Blöcke -Building another block at this block will place it inside and replace it. = Wird ein anderer Block an diesem Block gebaut, wird dieser andere Block seine Stelle einnehmen. -Building this block is completely silent. = Das Bauen dieses Blocks ist völlig lautlos. -Collidable: @1 = Kollidiert: @1 -Description: @1 = Beschreibung: @1 -Falling blocks can go through this block; they destroy it when doing so. = Fallende Blöcke können diesen Block durchdringen; sie zerstören ihn dabei. -Full punch interval: @1 s = Schlagintervall: @1 s -Hand = Hand -Hold it in your hand, then leftclick to eat it. = Halten Sie es in Ihrer Hand, dann klicken Sie mit der linken Maustaste, um es zu essen. -Hold it in your hand, then leftclick to eat it. But why would you want to do this? = Halten Sie es in Ihrer Hand, dann klicken Sie mit der linken Maustaste, um es zu essen. Aber warum sollten Sie das tun wollen? -Item reference of all wieldable tools and weapons = Gegenstandsreferenz aller tragbaren Werkzeugen und Waffen -Item reference of blocks and other things which are capable of occupying space = Gegenstandsreferenz aller Blöcke und anderen Dingen, die Raum belegen -Item reference of items which are neither blocks, tools or weapons (esp. crafting items) = Gegenstandsreferenz aller Gegenstände, welche weder Blöcke, Werkzeuge oder Waffen sind (insb. Fertigungsgegenstände) -Liquids can flow into this block and destroy it. = Flüssigkeiten können in diesen Block hereinfließen und ihn zerstören. -Maximum stack size: @1 = Maximale Stapelgröße: @1 -Mining level: @1 = Grabestufe: @1 -Mining ratings: = Grabewertungen: -• @1, rating @2: @3 s - @4 s = • @1, Wertung @2: @3 s - @4 s -• @1, rating @2: @3 s = • @1, Wertung @2: @3 s -Mining times: = Grabezeiten: -Mining this block is completely silent. = Das Abbauen dieses Blocks ist völlig lautlos. -Miscellaneous items = Sonstige Gegenstände -No = Nein -Pointable: No = Zeigbar: Nein -Pointable: Only by special items = Zeigbar: Nur von besonderen Gegenständen -Pointable: Yes = Zeigbar: Ja -Punches with this block don't work as usual; melee combat and mining are either not possible or work differently. = Schläge mit diesem Block funktionieren nicht auf die übliche Weise; Nahkampf und Graben sind damit entweder nicht möglich oder funktionieren auf andere Weise. -Punches with this item don't work as usual; melee combat and mining are either not possible or work differently. = Schläge mit diesem Gegenstand funktionieren nicht auf die übliche Weise; Nahkampf und Graben sind damit entweder nicht möglich oder funktionieren auf andere Weise. -Punches with this tool don't work as usual; melee combat and mining are either not possible or work differently. = Schläge mit diesem Werkzeug funktionieren nicht auf die übliche Weise; Nahkampf und Graben sind damit entweder nicht möglich oder funktionieren auf andere Weise. -Range: @1 = Reichweite: @1 -# Range: () -Range: @1 (@2) = Reichweite: @1 (@2) -Range: 4 = Reichweite: 4 -# Rating used for digging times -Rating @1 = Wertung @1 -Rating @1-@2 = Wertung @1-@2 -The fall damage on this block is increased by @1%. = Der Fallschaden auf diesem Block ist um @1% erhöht. -The fall damage on this block is reduced by @1%. = Der Fallschaden auf diesem Block ist um @1% reduziert. -This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly. = Dieser Block ist lichtdurchlässig mit einen geringfügigen Helligkeitsverlust; Sonnenlicht passiert jedoch ohne Verlust. -This block allows light to propagate with a small loss of brightness. = Dieser Block ist lichtdurchlässig mit einen geringfügigen Helligkeitsverlust. -This block allows sunlight to propagate without loss in brightness. = Dieser Block ist vollkommen durchlässig für Sonnenlicht. -This block belongs to the @1 group. = Dieser Block gehört zur Gruppe »@1«. -This block belongs to these groups: @1. = Dieser Block gehört zu den folgenden Gruppen: @1. -This block can be climbed. = Dieser Block kann beklettert werden. -This block can be destroyed by any mining tool immediately. = Dieser Block kann von einem beliebigen Grabewerkzeug sofort zerstört werden. -This block can be destroyed by any mining tool in half a second. = Dieser Block kann von einem beliebigen Grabewerkzeug in einer halben Sekunde zerstört werden. -This block can be mined by any mining tool immediately. = Dieser Block kann von einem beliebigen Grabewerkzeug sofort abgebaut werden. -This block can be mined by any mining tool in half a second. = Dieser Block kann von einem beliebigen Grabewerkzeug in einer halben Sekunde abgebaut werden. -This block can be mined by mining tools which match any of the following mining ratings and its toughness level. = Dieser Block kann von Grabewerkzeugen abgebaut werden, falls sie auf eine der folgenden Grabewertungen sowie seinem Härtegrad passen. -This block can not be destroyed by ordinary mining tools. = Dieser Block kann nicht von Grabewerkzeugen zerstört werden. -This block can not be mined by ordinary mining tools. = Dieser Block kann nicht von gewöhnlichen Grabewerkzeugen abgebaut werden. -This block can serve as a smelting fuel with a burning time of @1. = Dieser Block kann als Brennstoff mit einer Brenndauer von @1 dienen. -This block causes a damage of @1 hit point per second. = Dieser Block richtet einen Schaden von @1 Trefferpunkt pro Sekunde an. -This block causes a damage of @1 hit points per second. = Dieser Block richtet einen Schaden von @1 Trefferpunkten pro Sekunde an. -This block connects to blocks of the @1 group. = Dieser Block verbindet sich mit Blöcken der Gruppe »@1«. -This block connects to blocks of the following groups: @1. = Dieser Block verbindet sich mit Blöcken der folgenden Gruppen: @1. -This block connects to these blocks: @1. = Dieser Block verbindet sich mit den folgenden Blöcken: @1. -This block connects to this block: @1. = Dieser Block verbindet sich mit diesem Block: @1. -This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds. = Dieser Block reduziert Ihren Atem und verursacht beim Ertrinken einen Schaden von @1 Trefferpunkt alle 2 Sekunden. -This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds. = Dieser Block reduziert Ihren Atem und verursacht beim Ertrinken einen Schaden von @1 Trefferpunkten alle 2 Sekunden. -This block glows faintly. It is barely noticable. = Dieser Block leuchtet schwach. Es ist kaum merklich. -This block is a light source with a light level of @1. = Dieser Block ist eine Lichtquelle mit einer Helligkeitsstufe von @1. -This block glows faintly with a light level of @1. = Dieser Block leuchtet schwach mit einer Helligkeitsstufe von @1. -This block is a building block for creating various buildings. = Dieser Block ist für den Bau diverser Gebäude vorgesehen. -This block is a liquid with these properties: = Dieser Block ist eine Flüssigkeit mit folgenden Eigenschaften: -This block is affected by gravity and can fall. = Dieser Block wird von der Schwerkraft beeinflusst und kann fallen. -This block is completely silent when mined or built. = Dieser Block kann vollkommen lautlos gebaut oder abgebaut werden. -This block is completely silent when walked on, mined or built. = Es ist vollkommen lautlos, wenn man auf diesen Block geht, ihn baut oder abbaut. -This block is destroyed when a falling block ends up inside it. = Dieser Block wird zerstört, wenn ein fallender Block in ihm landet. -This block negates all fall damage. = Auf diesem Block gibt es keinen Fallschaden. -This block points to liquids. = Mit diesem Block zeigt man auf Flüssigkeiten. -This block will drop as an item when a falling block ends up inside it. = Dieser Block wird sich als Gegenstand abwerfen, wenn ein fallender Block in ihn landet. -This block will drop as an item when it is not attached to a surrounding block. = Dieser Block wird sich als Gegenstand abwerfen, wenn er nicht an einen benachbarten Block befestigt ist. -This block will drop as an item when no collidable block is below it. = Dieser Block wird sich als Gegenstand abwerfen, wenn kein kollidierender Block unter ihn liegt. -This block will drop the following items when mined: %s. = Dieser Block wird nach dem Abbauen die folgenden Gegenstände abwerfen: %s. -This block will drop the following when mined: @1×@2. = Dieser Block wird nach dem Abbauen folgendes abwerfen: @1×@2. -This block will drop the following when mined: @1. = Dieser Block wird nach dem Abbauen folgendes abwerfen: @1. -This block will drop the following when mined: %s. = Dieser Block wird nach dem Abbauen folgendes abwerfen: %s. -This block will make you bounce off with an elasticity of @1%. = Dieser Block wird Sie mit einer Elastizität von @1% abprallen lassen. -This block will randomly drop one of the following when mined: %s. = Dieser Block wird nach dem Abbauen zufällig eines von den folgenden Dingen abwerfen: %s. -This block will randomly drop up to %d drops of the following possible drops when mined: %s. = Dieser Block nach dem Abbauen wird zufällig bis zu %d Abwürfe von den folgenden möglichen Abwürfen abwerfen: %s. -This block won't drop anything when mined. = Dieser Block wird nach dem Abbauen nichts abwerfen. -This is a decorational block. = Dieser Block dient zur Dekoration. -This is a melee weapon which deals damage by punching. = Dies ist eine Nahkampfwaffe, welche Schaden durch Schläge verursacht. -Maximum damage per hit: = Maximaler Schaden pro Treffer: -This item belongs to the @1 group. = Dieser Gegenstand gehört zur Gruppe »@1«. -This item belongs to these groups: @1. = Dieser Gegenstand gehört zu den folgenden Gruppen: @1. -This item can serve as a smelting fuel with a burning time of @1. = Dieser Gegenstand kann als Brennstoff mit einer Brenndauer von @1 dienen. -This item is primarily used for crafting other items. = Dieser Gegenstand wird primär für die Fertigung von anderen Gegenständen benutzt. -This item points to liquids. = Mit diesem Gegenstand zeigt man auf Flüssigkeiten. -This tool belongs to the @1 group. = Dieses Werkzeug gehört zur Gruppe »@1«. -This tool belongs to these groups: @1. = Dieses Werkzeug gehört zu den folgenden Gruppen: @1. -This tool can serve as a smelting fuel with a burning time of @1. = Dieses Werkzeug kann als Brennstoff mit einer Brenndauer von @1 dienen. -This tool is capable of mining. = Dies ist ein Grabewerkzeug. -Maximum toughness levels: = Maximale Härtegrade: -This tool points to liquids. = Mit diesem Werkzeug zeigt man auf Flüssigkeiten. -Tools and weapons = Werkzeuge und Waffen -Unknown Node = Unbekannter Node -Usage help: @1 = Benutzung: @1 -Walking on this block is completely silent. = Auf diesem Block sind Schritte lautlos. -Whenever you are not wielding any item, you use the hand which acts as a tool with its own capabilities. When you are wielding an item which is not a mining tool or a weapon it will behave as if it would be the hand. = Wenn Sie keinen Gegenstand halten, benutzen Sie die Hand, welches als ein Werkzeug mit seinen eigenen Fägihkeiten dient. Wenn Sie einen Gegenstand halten, der kein Grabewerkzeug oder eine Waffe ist, wird er sich verhalten als wäre er die Hand. -Yes = Ja -You can not jump while standing on this block. = Man kann von diesem Block nicht abspringen. -any level = beliebige Stufe -level 0 = Stufe 0 -level 0-@1 = Stufen 0-@1 -unknown = unbekannt -Unknown item (@1) = Unbekannter Gegenstand (@1) -• @1: @2 = • @1: @2 -• @1: @2 HP = • @1: @2 TP -• @1: @2, @3 = • @1: @2, @3 -• Flowing range: @1 = • Fließweite: @1 -• No flowing = • Kein Fließen -• Not renewable = • Nicht erneuerbar -• Renewable = • Erneuerbar -• Viscosity: @1 = • Zähflüssigkeit: @1 -Itemstring: "@1" = Itemstring: »@1« -Durability: @1 uses = Haltbarkeit: @1 Benutzungen -Durability: @1 = Haltbarkeit: @1 -Mining durability: = Grabehaltbarkeit: -• @1, level @2: @3 uses = • @1, Stufe @2: @3 Benutzungen -• @1, level @2: Unlimited = • @1, Stufe @2: Unbegrenzt -This block's rotation is affected by the way you place it: Place it on the floor or ceiling for a vertical orientation; place it at the side for a horizontal orientation. Sneaking while placing it leads to a perpendicular orientation instead. = Die Rotation dieses Blocks hängt davon ab, wie sie ihn platzieren: Platzieren Sie ihn auf den Boden oder an die Decke, um ihn vertikal aufzustellen; platzieren Sie in an der Seite für eine horizontale Ausrichtung. Wenn Sie während des Bauens schleichen, wird der Block stattdessen senkrecht zur üblichen Ausrichtung rotiert. diff --git a/mods/HELP/doc/doc_items/locale/doc_items.de.tr b/mods/HELP/doc/doc_items/locale/doc_items.de.tr new file mode 100644 index 000000000..b4a53a8a7 --- /dev/null +++ b/mods/HELP/doc/doc_items/locale/doc_items.de.tr @@ -0,0 +1,142 @@ +# textdomain:doc_items + Using it as fuel turns it into: @1.= Wird dieser Gegenstand als Brennstoff verwendet, verwandelt er sich zu: @1. +@1 seconds=@1 Sekunden +# Item count times item name +@1×@2=@1×@2 +# Itemname (25%) +@1 (@2%)=@1 (@2%) +# Itemname (<0.5%) +@1 (<0.5%)=@1 (<0,5%) +# Itemname (ca. 25%) +@1 (ca. @2%)=@1 (ca. @2%) +# List separator (e.g. “one, two, three”) +, =, +# Final list separator (e.g. “One, two and three”) + and = und +1 second=1 Sekunde +A transparent block, basically empty space. It is usually left behind after digging something.=Ein transparenter Block, praktisch leerer Raum. Er wird üblicherweise hinterlassen, nachdem man etwas ausgegraben hat. +Air=Luft +Blocks=Blöcke +Building another block at this block will place it inside and replace it.=Wird ein anderer Block an diesem Block gebaut, wird dieser andere Block seine Stelle einnehmen. +Building this block is completely silent.=Das Bauen dieses Blocks ist völlig lautlos. +Collidable: @1=Kollidiert: @1 +Description: @1=Beschreibung: @1 +Falling blocks can go through this block; they destroy it when doing so.=Fallende Blöcke können diesen Block durchdringen; sie zerstören ihn dabei. +Full punch interval: @1 s=Schlagintervall: @1 s +Hand=Hand +Hold it in your hand, then leftclick to eat it.=Halten Sie es in Ihrer Hand, dann klicken Sie mit der linken Maustaste, um es zu essen. +Hold it in your hand, then leftclick to eat it. But why would you want to do this?=Halten Sie es in Ihrer Hand, dann klicken Sie mit der linken Maustaste, um es zu essen. Aber warum sollten Sie das tun wollen? +Item reference of all wieldable tools and weapons=Gegenstandsreferenz aller tragbaren Werkzeugen und Waffen +Item reference of blocks and other things which are capable of occupying space=Gegenstandsreferenz aller Blöcke und anderen Dingen, die Raum belegen +Item reference of items which are neither blocks, tools or weapons (esp. crafting items)=Gegenstandsreferenz aller Gegenstände, welche weder Blöcke, Werkzeuge oder Waffen sind (insb. Fertigungsgegenstände) +Liquids can flow into this block and destroy it.=Flüssigkeiten können in diesen Block hereinfließen und ihn zerstören. +Maximum stack size: @1=Maximale Stapelgröße: @1 +Mining level: @1=Grabestufe: @1 +Mining ratings:=Grabewertungen: +• @1, rating @2: @3 s - @4 s=• @1, Wertung @2: @3 s - @4 s +• @1, rating @2: @3 s=• @1, Wertung @2: @3 s +Mining times:=Grabezeiten: +Mining this block is completely silent.=Das Abbauen dieses Blocks ist völlig lautlos. +Miscellaneous items=Sonstige Gegenstände +No=Nein +Pointable: No=Zeigbar: Nein +Pointable: Only by special items=Zeigbar: Nur von besonderen Gegenständen +Pointable: Yes=Zeigbar: Ja +Punches with this block don't work as usual; melee combat and mining are either not possible or work differently.=Schläge mit diesem Block funktionieren nicht auf die übliche Weise; Nahkampf und Graben sind damit entweder nicht möglich oder funktionieren auf andere Weise. +Punches with this item don't work as usual; melee combat and mining are either not possible or work differently.=Schläge mit diesem Gegenstand funktionieren nicht auf die übliche Weise; Nahkampf und Graben sind damit entweder nicht möglich oder funktionieren auf andere Weise. +Punches with this tool don't work as usual; melee combat and mining are either not possible or work differently.=Schläge mit diesem Werkzeug funktionieren nicht auf die übliche Weise; Nahkampf und Graben sind damit entweder nicht möglich oder funktionieren auf andere Weise. +Range: @1=Reichweite: @1 +# Range: () +Range: @1 (@2)=Reichweite: @1 (@2) +Range: 4=Reichweite: 4 +# Rating used for digging times +Rating @1=Wertung @1 +Rating @1-@2=Wertung @1-@2 +The fall damage on this block is increased by @1%.=Der Fallschaden auf diesem Block ist um @1% erhöht. +The fall damage on this block is reduced by @1%.=Der Fallschaden auf diesem Block ist um @1% reduziert. +This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.=Dieser Block ist lichtdurchlässig mit einen geringfügigen Helligkeitsverlust; Sonnenlicht passiert jedoch ohne Verlust. +This block allows light to propagate with a small loss of brightness.=Dieser Block ist lichtdurchlässig mit einen geringfügigen Helligkeitsverlust. +This block allows sunlight to propagate without loss in brightness.=Dieser Block ist vollkommen durchlässig für Sonnenlicht. +This block belongs to the @1 group.=Dieser Block gehört zur Gruppe „@1“. +This block belongs to these groups: @1.=Dieser Block gehört zu den folgenden Gruppen: @1. +This block can be climbed.=Dieser Block kann beklettert werden. +This block can be destroyed by any mining tool immediately.=Dieser Block kann von einem beliebigen Grabewerkzeug sofort zerstört werden. +This block can be destroyed by any mining tool in half a second.=Dieser Block kann von einem beliebigen Grabewerkzeug in einer halben Sekunde zerstört werden. +This block can be mined by any mining tool immediately.=Dieser Block kann von einem beliebigen Grabewerkzeug sofort abgebaut werden. +This block can be mined by any mining tool in half a second.=Dieser Block kann von einem beliebigen Grabewerkzeug in einer halben Sekunde abgebaut werden. +This block can be mined by mining tools which match any of the following mining ratings and its toughness level.=Dieser Block kann von Grabewerkzeugen abgebaut werden, falls sie auf eine der folgenden Grabewertungen sowie seinem Härtegrad passen. +This block can not be destroyed by ordinary mining tools.=Dieser Block kann nicht von Grabewerkzeugen zerstört werden. +This block can not be mined by ordinary mining tools.=Dieser Block kann nicht von gewöhnlichen Grabewerkzeugen abgebaut werden. +This block can serve as a smelting fuel with a burning time of @1.=Dieser Block kann als Brennstoff mit einer Brenndauer von @1 dienen. +This block causes a damage of @1 hit point per second.=Dieser Block richtet einen Schaden von @1 Trefferpunkt pro Sekunde an. +This block causes a damage of @1 hit points per second.=Dieser Block richtet einen Schaden von @1 Trefferpunkten pro Sekunde an. +This block connects to blocks of the @1 group.=Dieser Block verbindet sich mit Blöcken der Gruppe „@1“. +This block connects to blocks of the following groups: @1.=Dieser Block verbindet sich mit Blöcken der folgenden Gruppen: @1. +This block connects to these blocks: @1.=Dieser Block verbindet sich mit den folgenden Blöcken: @1. +This block connects to this block: @1.=Dieser Block verbindet sich mit diesem Block: @1. +This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds.=Dieser Block reduziert Ihren Atem und verursacht beim Ertrinken einen Schaden von @1 Trefferpunkt alle 2 Sekunden. +This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds.=Dieser Block reduziert Ihren Atem und verursacht beim Ertrinken einen Schaden von @1 Trefferpunkten alle 2 Sekunden. +This block glows faintly. It is barely noticable.=Dieser Block leuchtet schwach. Es ist kaum merklich. +This block is a light source with a light level of @1.=Dieser Block ist eine Lichtquelle mit einer Helligkeitsstufe von @1. +This block glows faintly with a light level of @1.=Dieser Block leuchtet schwach mit einer Helligkeitsstufe von @1. +This block is a building block for creating various buildings.=Dieser Block ist für den Bau diverser Gebäude vorgesehen. +This block is a liquid with these properties:=Dieser Block ist eine Flüssigkeit mit folgenden Eigenschaften: +This block is affected by gravity and can fall.=Dieser Block wird von der Schwerkraft beeinflusst und kann fallen. +This block is completely silent when mined or built.=Dieser Block kann vollkommen lautlos gebaut oder abgebaut werden. +This block is completely silent when walked on, mined or built.=Es ist vollkommen lautlos, wenn man auf diesen Block geht, ihn baut oder abbaut. +This block is destroyed when a falling block ends up inside it.=Dieser Block wird zerstört, wenn ein fallender Block in ihm landet. +This block negates all fall damage.=Auf diesem Block gibt es keinen Fallschaden. +This block points to liquids.=Mit diesem Block zeigt man auf Flüssigkeiten. +This block will drop as an item when a falling block ends up inside it.=Dieser Block wird sich als Gegenstand abwerfen, wenn ein fallender Block in ihn landet. +This block will drop as an item when it is not attached to a surrounding block.=Dieser Block wird sich als Gegenstand abwerfen, wenn er nicht an einen benachbarten Block befestigt ist. +This block will drop as an item when no collidable block is below it.=Dieser Block wird sich als Gegenstand abwerfen, wenn kein kollidierender Block unter ihn liegt. +This block will drop the following items when mined: @1.=Dieser Block wird nach dem Abbauen die folgenden Gegenstände abwerfen: @1. +This block will drop the following when mined: @1×@2.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1×@2. +This block will drop the following when mined: @1.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1. +This block will drop the following when mined: @1.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1. +This block will make you bounce off with an elasticity of @1%.=Dieser Block wird Sie mit einer Elastizität von @1% abprallen lassen. +This block will randomly drop one of the following when mined: @1.=Dieser Block wird nach dem Abbauen zufällig eines von den folgenden Dingen abwerfen: @1. +This block will randomly drop up to @1 drops of the following possible drops when mined: @2.=Dieser Block nach dem Abbauen wird zufällig bis zu @1 Abwürfe von den folgenden möglichen Abwürfen abwerfen: @2. +This block won't drop anything when mined.=Dieser Block wird nach dem Abbauen nichts abwerfen. +This is a decorational block.=Dieser Block dient zur Dekoration. +This is a melee weapon which deals damage by punching.=Dies ist eine Nahkampfwaffe, welche Schaden durch Schläge verursacht. +Maximum damage per hit:=Maximaler Schaden pro Treffer: +This item belongs to the @1 group.=Dieser Gegenstand gehört zur Gruppe „@1“. +This item belongs to these groups: @1.=Dieser Gegenstand gehört zu den folgenden Gruppen: @1. +This item can serve as a smelting fuel with a burning time of @1.=Dieser Gegenstand kann als Brennstoff mit einer Brenndauer von @1 dienen. +This item is primarily used for crafting other items.=Dieser Gegenstand wird primär für die Fertigung von anderen Gegenständen benutzt. +This item points to liquids.=Mit diesem Gegenstand zeigt man auf Flüssigkeiten. +This tool belongs to the @1 group.=Dieses Werkzeug gehört zur Gruppe „@1“. +This tool belongs to these groups: @1.=Dieses Werkzeug gehört zu den folgenden Gruppen: @1. +This tool can serve as a smelting fuel with a burning time of @1.=Dieses Werkzeug kann als Brennstoff mit einer Brenndauer von @1 dienen. +This tool is capable of mining.=Dies ist ein Grabewerkzeug. +Maximum toughness levels:=Maximale Härtegrade: +This tool points to liquids.=Mit diesem Werkzeug zeigt man auf Flüssigkeiten. +Tools and weapons=Werkzeuge und Waffen +Unknown Node=Unbekannter Node +Usage help: @1=Benutzung: @1 +Walking on this block is completely silent.=Auf diesem Block sind Schritte lautlos. +Whenever you are not wielding any item, you use the hand which acts as a tool with its own capabilities. When you are wielding an item which is not a mining tool or a weapon it will behave as if it would be the hand.=Wenn Sie keinen Gegenstand halten, benutzen Sie die Hand, welches als ein Werkzeug mit seinen eigenen Fägihkeiten dient. Wenn Sie einen Gegenstand halten, der kein Grabewerkzeug oder eine Waffe ist, wird er sich verhalten als wäre er die Hand. +Yes=Ja +You can not jump while standing on this block.=Man kann von diesem Block nicht abspringen. +any level=beliebige Stufe +level 0=Stufe 0 +level 0-@1=Stufen 0-@1 +unknown=unbekannt +Unknown item (@1)=Unbekannter Gegenstand (@1) +• @1: @2=• @1: @2 +• @1: @2 HP=• @1: @2 TP +• @1: @2, @3=• @1: @2, @3 +• Flowing range: @1=• Fließweite: @1 +• No flowing=• Kein Fließen +• Not renewable=• Nicht erneuerbar +• Renewable=• Erneuerbar +• Viscosity: @1=• Zähflüssigkeit: @1 +Itemstring: "@1"=Itemstring: „@1“ +Durability: @1 uses=Haltbarkeit: @1 Benutzungen +Durability: @1=Haltbarkeit: @1 +Mining durability:=Grabehaltbarkeit: +• @1, level @2: @3 uses=• @1, Stufe @2: @3 Benutzungen +• @1, level @2: Unlimited=• @1, Stufe @2: Unbegrenzt +This block's rotation is affected by the way you place it: Place it on the floor or ceiling for a vertical orientation; place it at the side for a horizontal orientation. Sneaking while placing it leads to a perpendicular orientation instead.=Die Rotation dieses Blocks hängt davon ab, wie sie ihn platzieren: Platzieren Sie ihn auf den Boden oder an die Decke, um ihn vertikal aufzustellen; platzieren Sie in an der Seite für eine horizontale Ausrichtung. Wenn Sie während des Bauens schleichen, wird der Block stattdessen senkrecht zur üblichen Ausrichtung rotiert. +Toughness level: @1=Härtegrad: @1 diff --git a/mods/HELP/doc/doc_items/locale/doc_items.pt.tr b/mods/HELP/doc/doc_items/locale/doc_items.pt.tr new file mode 100644 index 000000000..648e14569 --- /dev/null +++ b/mods/HELP/doc/doc_items/locale/doc_items.pt.tr @@ -0,0 +1,141 @@ +# textdomain:doc_items + Using it as fuel turns it into: @1.= Usar isso como combustivel o transforma em: @1. +@1 seconds=@1 segundos +# Item count times item name +%@1×@2=%@1×@2 +# Itemname (25%) +@1 (@2%)=@1 (@2%) +# Itemname (<0.5%) +@1 (<0.5%)=@1 (<0.5%) +# Itemname (ca. 25%) +@1 (ca. @2%)= +# List separator (e.g. “one, two, three”) +, =, +# Final list separator (e.g. “One, two and three”) + and = e +1 second=1 segundo +A transparent block, basically empty space. It is usually left behind after digging something.=Um bloco transparente, basicamente um vazio. Isso geralmente fica no lugar de um bloco removido. +Air=Ár +Blocks=Blocos +Building another block at this block will place it inside and replace it.=Construir outro bloco nesse bloco vai subistitui-lo. +Building this block is completely silent.=Construir esse bloco é completamente silencioso. +Collidable: @1=Coledível: @1 +Description: @1=Descrição: @1 +Falling blocks can go through this block; they destroy it when doing so.=Blocos caindo podem atravessar esse bloco destruindo-o. +Full punch interval: @1 s=Intervalo completo de golpe: @1 s +Hand=Mão +Hold it in your hand, then leftclick to eat it.=Segure-o na sua mão, depois clique com o botão esquerdo para comer. +Hold it in your hand, then leftclick to eat it. But why would you want to do this?=Segure-o na sua mão, depois clique com o botão esquerdo para comer. Mas por que você quer fazer isso? +Item reference of all wieldable tools and weapons=Referência de item de todas as ferramentas e armas que podem ser usadas +Item reference of blocks and other things which are capable of occupying space=Referência de item de blocos e outras coisas que são capazes de ocupar espaço +Item reference of items which are neither blocks, tools or weapons (esp. crafting items)=Referência de itens que não são blocos, ferramentas ou armas (especialmente itens de criação) +Liquids can flow into this block and destroy it.=Líquidos podem fluir por esse bloco destruindo-o. +Maximum stack size: @1=Tamanho máximo de empilhamento: @1 +Mining level: @1=Nível de mineração: @1 +Mining ratings:=Classificações de mineração: +• @1, rating @2: @3 s - @4 s= +• @1, rating @2: @3 s= +Mining times:=Tempos de mineração: +Mining this block is completely silent.=Minerar esse bloco é completamente silencioso. +Miscellaneous items=Itens variados +No=Não +Pointable: No=Apontável: Não +Pointable: Only by special items=Apontável: Apenas por itens especiais +Pointable: Yes=Apontável: Sim +Punches with this block don't work as usual; melee combat and mining are either not possible or work differently.=Socos com esse bloco não funcionam de forma comum; Combate corpo a corpo e mineração não são possíveis ou funcionam de forma diferente. +Punches with this item don't work as usual; melee combat and mining are either not possible or work differently.=Socos com esse item não funcionam de forma comum; Combate corpo a corpo e mineração não são possíveis ou funcionam de forma diferente. +Punches with this tool don't work as usual; melee combat and mining are either not possible or work differently.=Socos com essa ferramenta não funcionam de forma comum; Combate corpo a corpo e mineração não são possíveis ou funcionam de forma diferente. +Range: @1=Alcance: @1 +# Range: () +Range: @1 (@2)=Alcance: @1 (@2) +Range: 4=Range: 4 +# Rating used for digging times +Rating @1=Classificação @1 +# @1 is minimal rating, @2 is maximum rating +Rating @1-@2=Classificação @1-@2 +The fall damage on this block is increased by @1%.=O dano por queda nesse bloco é aumentado em @ 1%. +The fall damage on this block is reduced by @1%.=O dano por queda nesse bloco é reduzido em @ 1%. +This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.=Esse bloco permite que a luz se propague com uma pequena perda de brilho, e a luz solar pode até passar sem perdas. +This block allows light to propagate with a small loss of brightness.=Esse bloco permite que a luz se propague com uma pequena perda de brilho. +This block allows sunlight to propagate without loss in brightness.=Esse bloco permite que a luz solar se propague sem perda de brilho. +This block belongs to the @1 group.=Esse bloco pertence ao grupo @1. +This block belongs to these groups: @1.=Esse bloco pertence a estes grupos: @1. +This block can be climbed.=Esse bloco pode ser escalado. +This block can be destroyed by any mining tool immediately.=Esse bloco pode ser destruído de forma imediata por qualquer ferramenta de mineração. +This block can be destroyed by any mining tool in half a second.=Esse bloco pode ser destruído em meio segundo por qualquer ferramenta de mineração. +This block can be mined by any mining tool immediately.=Esse bloco pode ser extraído de forma imediata por qualquer ferramenta de mineração. +This block can be mined by any mining tool in half a second.=Esse bloco pode ser extraído em meio segundo por qualquer ferramenta de mineração. +This block can be mined by mining tools which match any of the following mining ratings and its toughness level.=Esse bloco pode ser extraído por ferramentas de mineração que correspondem a qualquer uma das seguintes classificações de mineração e seu nível de resistência. +This block can not be destroyed by ordinary mining tools.=Esse bloco não pode ser destruído por ferramentas de mineração comuns. +This block can not be mined by ordinary mining tools.=Esse bloco não pode ser extraído por ferramentas de mineração comuns. +This block can serve as a smelting fuel with a burning time of @1.=Esse bloco pode servir como combustível de fundição com um tempo de queima de @1. +This block causes a damage of @1 hit point per second.=Esse bloco causa um dano de @1 ponto de impacto por segundo. +This block causes a damage of @1 hit points per second.=Esse bloco causa um dano de @1 pontos de impacto por segundo. +This block connects to blocks of the @1 group.=Esse bloco se conecta a blocos do grupo @1. +This block connects to blocks of the following groups: @1.=Esse bloco se conecta a dos seguintes grupos: @1. +This block connects to these blocks: @1.=Esse bloco se conecta aos seguintes blocos: @1. +This block connects to this block: @1.=Esse bloco se conecta a esse bloco: @1. +This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 ponto de vida a cada 2 segundos. +This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 pontos de vida a cada 2 segundos. +This block is a light source with a light level of @1.=Esse bloco é uma fonte de luz com um nível de luz de @1. +This block glows faintly with a light level of @1.=Esse bloco tem um brilho fraco com um nível de luz de @ 1. +This block is a building block for creating various buildings.=Esse bloco é um bloco de construção para criar vários edifícios. +This block is a liquid with these properties:=Esse bloco é um líquido com as seguintes propriedades: +This block is affected by gravity and can fall.=Esse bloco é afetado pela gravidade e pode cair. +This block is completely silent when mined or built.=Esse bloco é completamente silencioso quando extraído ou construído. +This block is completely silent when walked on, mined or built.=Esse bloco é completamente silencioso quando pisado, extraído ou construído. +This block is destroyed when a falling block ends up inside it.=Esse bloco é destruído quando um bloco em queda acaba dentro dele. +This block negates all fall damage.=Esse bloco nega todos os danos por queda. +This block points to liquids.=Esse bloco pode ser apontado para líquidos. +This block will drop as an item when a falling block ends up inside it.=Esse bloco vai cair como um item quando um bloco caindo acaba dentro dele. +This block will drop as an item when it is not attached to a surrounding block.=Esse bloco irá cair como um item quando não estiver anexado a um bloco adjacente. +This block will drop as an item when no collidable block is below it.=Esse bloco irá cair como um item quando nenhum bloco colidível estiver abaixo dele. +This block will drop the following items when mined: %s.=Esse bloco soltará os seguintes itens quando minerados: %s. +This block will drop the following when mined: @1×@2.=Esse bloco irá deixar cair o seguinte quando extraído: @1×@2. +This block will drop the following when mined: @1.=Esse bloco irá deixar cair o seguinte quando extraído: @1. +This block will drop the following when mined: %s.=Esse bloco irá deixar cair o seguinte quando extraído: %s. +This block will make you bounce off with an elasticity of @1%.=Esse bloco fará você saltar com uma elasticidade de @1%. +This block will randomly drop one of the following when mined: %s.=Esse bloco irá deixar cair aleatoriamente um dos seguintes quando extraído: %s. +This block will randomly drop up to %d drops of the following possible drops when mined: %s.=Esse bloco irá cair aleatoriamente %d vezes das seguintes possíveis formas quando extraído: %s. +This block won't drop anything when mined.=Esse bloco não vai deixar cair nada quando extraído. +This is a decorational block.=Esse é um bloco decorativo. +This is a melee weapon which deals damage by punching.=Essa é uma arma corpo-a-corpo que causa dano ao socar. +Maximum damage per hit:=Dano máximo por acerto: +This item belongs to the @1 group.=Esse item pertence ao grupo @1. +This item belongs to these groups: @1.=Esse item pertence aos seguintes grupos: @1. +This item can serve as a smelting fuel with a burning time of @1.=Esse item pode servir como combustível de fundição com um tempo de queima de @1. +This item is primarily used for crafting other items.=Esse item é usado principalmente para criar outros itens. +This item points to liquids.=Esse item pode ser apontado para líquidos. +This tool belongs to the @1 group.=Essa ferramenta pertence ao grupo @1. +This tool belongs to these groups: @1.=Essa ferramenta pertence aos seguintes grupos: @1. +This tool can serve as a smelting fuel with a burning time of @1.=Essa ferramenta pode servir como combustível de fundição com um tempo de queima de @1. +This tool is capable of mining.=Essa ferramenta é capaz de minerar. +Maximum toughness levels:=Níveis máximos de dureza: +This tool points to liquids.=Essa ferramenta pode ser apontada para líquidos. +Tools and weapons=Ferramentas e armas +Unknown Node=Bloco Desconhecido +Usage help: @1=Como usar: @1 +Walking on this block is completely silent.= +Whenever you are not wielding any item, you use the hand which acts as a tool with its own capabilities. When you are wielding an item which is not a mining tool or a weapon it will behave as if it would be the hand.=Sempre que você não estiver empunhando nenhum item, você usa a mão que atua como uma ferramentacom caracteristicas próprias. Quando você está empunhando um item que não é uma ferramenta de mineração ou uma arma, ele se comportará como se fosse a mão. +Yes=Sim +You can not jump while standing on this block.= Você não pode pular enquanto estiver neste bloco. +any level=qualquer nível +level 0=nível 0 +level 0-@1=nivel 0-@1 +unknown=desconhecido +Unknown item (@1)=Item desconhecido +• @1: @2= +• @1: @2 HP= +• @1: @2, @3= +• Flowing range: @1= +• No flowing= +• Not renewable= +• Renewable= +• Viscosity: @1= +Itemstring: "@1"= +Durability: @1 uses= +Durability: @1= +Mining durability:= +• @1, level @2: @3 uses= +• @1, level @2: Unlimited= +This block's rotation is affected by the way you place it: Place it on the floor or ceiling for a vertical orientation; place it at the side for a horizontal orientation. Sneaking while placing it leads to a perpendicular orientation instead.= diff --git a/mods/HELP/doc/doc_items/locale/doc_items.pt_BR.tr b/mods/HELP/doc/doc_items/locale/doc_items.pt_BR.tr new file mode 100644 index 000000000..648e14569 --- /dev/null +++ b/mods/HELP/doc/doc_items/locale/doc_items.pt_BR.tr @@ -0,0 +1,141 @@ +# textdomain:doc_items + Using it as fuel turns it into: @1.= Usar isso como combustivel o transforma em: @1. +@1 seconds=@1 segundos +# Item count times item name +%@1×@2=%@1×@2 +# Itemname (25%) +@1 (@2%)=@1 (@2%) +# Itemname (<0.5%) +@1 (<0.5%)=@1 (<0.5%) +# Itemname (ca. 25%) +@1 (ca. @2%)= +# List separator (e.g. “one, two, three”) +, =, +# Final list separator (e.g. “One, two and three”) + and = e +1 second=1 segundo +A transparent block, basically empty space. It is usually left behind after digging something.=Um bloco transparente, basicamente um vazio. Isso geralmente fica no lugar de um bloco removido. +Air=Ár +Blocks=Blocos +Building another block at this block will place it inside and replace it.=Construir outro bloco nesse bloco vai subistitui-lo. +Building this block is completely silent.=Construir esse bloco é completamente silencioso. +Collidable: @1=Coledível: @1 +Description: @1=Descrição: @1 +Falling blocks can go through this block; they destroy it when doing so.=Blocos caindo podem atravessar esse bloco destruindo-o. +Full punch interval: @1 s=Intervalo completo de golpe: @1 s +Hand=Mão +Hold it in your hand, then leftclick to eat it.=Segure-o na sua mão, depois clique com o botão esquerdo para comer. +Hold it in your hand, then leftclick to eat it. But why would you want to do this?=Segure-o na sua mão, depois clique com o botão esquerdo para comer. Mas por que você quer fazer isso? +Item reference of all wieldable tools and weapons=Referência de item de todas as ferramentas e armas que podem ser usadas +Item reference of blocks and other things which are capable of occupying space=Referência de item de blocos e outras coisas que são capazes de ocupar espaço +Item reference of items which are neither blocks, tools or weapons (esp. crafting items)=Referência de itens que não são blocos, ferramentas ou armas (especialmente itens de criação) +Liquids can flow into this block and destroy it.=Líquidos podem fluir por esse bloco destruindo-o. +Maximum stack size: @1=Tamanho máximo de empilhamento: @1 +Mining level: @1=Nível de mineração: @1 +Mining ratings:=Classificações de mineração: +• @1, rating @2: @3 s - @4 s= +• @1, rating @2: @3 s= +Mining times:=Tempos de mineração: +Mining this block is completely silent.=Minerar esse bloco é completamente silencioso. +Miscellaneous items=Itens variados +No=Não +Pointable: No=Apontável: Não +Pointable: Only by special items=Apontável: Apenas por itens especiais +Pointable: Yes=Apontável: Sim +Punches with this block don't work as usual; melee combat and mining are either not possible or work differently.=Socos com esse bloco não funcionam de forma comum; Combate corpo a corpo e mineração não são possíveis ou funcionam de forma diferente. +Punches with this item don't work as usual; melee combat and mining are either not possible or work differently.=Socos com esse item não funcionam de forma comum; Combate corpo a corpo e mineração não são possíveis ou funcionam de forma diferente. +Punches with this tool don't work as usual; melee combat and mining are either not possible or work differently.=Socos com essa ferramenta não funcionam de forma comum; Combate corpo a corpo e mineração não são possíveis ou funcionam de forma diferente. +Range: @1=Alcance: @1 +# Range: () +Range: @1 (@2)=Alcance: @1 (@2) +Range: 4=Range: 4 +# Rating used for digging times +Rating @1=Classificação @1 +# @1 is minimal rating, @2 is maximum rating +Rating @1-@2=Classificação @1-@2 +The fall damage on this block is increased by @1%.=O dano por queda nesse bloco é aumentado em @ 1%. +The fall damage on this block is reduced by @1%.=O dano por queda nesse bloco é reduzido em @ 1%. +This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.=Esse bloco permite que a luz se propague com uma pequena perda de brilho, e a luz solar pode até passar sem perdas. +This block allows light to propagate with a small loss of brightness.=Esse bloco permite que a luz se propague com uma pequena perda de brilho. +This block allows sunlight to propagate without loss in brightness.=Esse bloco permite que a luz solar se propague sem perda de brilho. +This block belongs to the @1 group.=Esse bloco pertence ao grupo @1. +This block belongs to these groups: @1.=Esse bloco pertence a estes grupos: @1. +This block can be climbed.=Esse bloco pode ser escalado. +This block can be destroyed by any mining tool immediately.=Esse bloco pode ser destruído de forma imediata por qualquer ferramenta de mineração. +This block can be destroyed by any mining tool in half a second.=Esse bloco pode ser destruído em meio segundo por qualquer ferramenta de mineração. +This block can be mined by any mining tool immediately.=Esse bloco pode ser extraído de forma imediata por qualquer ferramenta de mineração. +This block can be mined by any mining tool in half a second.=Esse bloco pode ser extraído em meio segundo por qualquer ferramenta de mineração. +This block can be mined by mining tools which match any of the following mining ratings and its toughness level.=Esse bloco pode ser extraído por ferramentas de mineração que correspondem a qualquer uma das seguintes classificações de mineração e seu nível de resistência. +This block can not be destroyed by ordinary mining tools.=Esse bloco não pode ser destruído por ferramentas de mineração comuns. +This block can not be mined by ordinary mining tools.=Esse bloco não pode ser extraído por ferramentas de mineração comuns. +This block can serve as a smelting fuel with a burning time of @1.=Esse bloco pode servir como combustível de fundição com um tempo de queima de @1. +This block causes a damage of @1 hit point per second.=Esse bloco causa um dano de @1 ponto de impacto por segundo. +This block causes a damage of @1 hit points per second.=Esse bloco causa um dano de @1 pontos de impacto por segundo. +This block connects to blocks of the @1 group.=Esse bloco se conecta a blocos do grupo @1. +This block connects to blocks of the following groups: @1.=Esse bloco se conecta a dos seguintes grupos: @1. +This block connects to these blocks: @1.=Esse bloco se conecta aos seguintes blocos: @1. +This block connects to this block: @1.=Esse bloco se conecta a esse bloco: @1. +This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 ponto de vida a cada 2 segundos. +This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 pontos de vida a cada 2 segundos. +This block is a light source with a light level of @1.=Esse bloco é uma fonte de luz com um nível de luz de @1. +This block glows faintly with a light level of @1.=Esse bloco tem um brilho fraco com um nível de luz de @ 1. +This block is a building block for creating various buildings.=Esse bloco é um bloco de construção para criar vários edifícios. +This block is a liquid with these properties:=Esse bloco é um líquido com as seguintes propriedades: +This block is affected by gravity and can fall.=Esse bloco é afetado pela gravidade e pode cair. +This block is completely silent when mined or built.=Esse bloco é completamente silencioso quando extraído ou construído. +This block is completely silent when walked on, mined or built.=Esse bloco é completamente silencioso quando pisado, extraído ou construído. +This block is destroyed when a falling block ends up inside it.=Esse bloco é destruído quando um bloco em queda acaba dentro dele. +This block negates all fall damage.=Esse bloco nega todos os danos por queda. +This block points to liquids.=Esse bloco pode ser apontado para líquidos. +This block will drop as an item when a falling block ends up inside it.=Esse bloco vai cair como um item quando um bloco caindo acaba dentro dele. +This block will drop as an item when it is not attached to a surrounding block.=Esse bloco irá cair como um item quando não estiver anexado a um bloco adjacente. +This block will drop as an item when no collidable block is below it.=Esse bloco irá cair como um item quando nenhum bloco colidível estiver abaixo dele. +This block will drop the following items when mined: %s.=Esse bloco soltará os seguintes itens quando minerados: %s. +This block will drop the following when mined: @1×@2.=Esse bloco irá deixar cair o seguinte quando extraído: @1×@2. +This block will drop the following when mined: @1.=Esse bloco irá deixar cair o seguinte quando extraído: @1. +This block will drop the following when mined: %s.=Esse bloco irá deixar cair o seguinte quando extraído: %s. +This block will make you bounce off with an elasticity of @1%.=Esse bloco fará você saltar com uma elasticidade de @1%. +This block will randomly drop one of the following when mined: %s.=Esse bloco irá deixar cair aleatoriamente um dos seguintes quando extraído: %s. +This block will randomly drop up to %d drops of the following possible drops when mined: %s.=Esse bloco irá cair aleatoriamente %d vezes das seguintes possíveis formas quando extraído: %s. +This block won't drop anything when mined.=Esse bloco não vai deixar cair nada quando extraído. +This is a decorational block.=Esse é um bloco decorativo. +This is a melee weapon which deals damage by punching.=Essa é uma arma corpo-a-corpo que causa dano ao socar. +Maximum damage per hit:=Dano máximo por acerto: +This item belongs to the @1 group.=Esse item pertence ao grupo @1. +This item belongs to these groups: @1.=Esse item pertence aos seguintes grupos: @1. +This item can serve as a smelting fuel with a burning time of @1.=Esse item pode servir como combustível de fundição com um tempo de queima de @1. +This item is primarily used for crafting other items.=Esse item é usado principalmente para criar outros itens. +This item points to liquids.=Esse item pode ser apontado para líquidos. +This tool belongs to the @1 group.=Essa ferramenta pertence ao grupo @1. +This tool belongs to these groups: @1.=Essa ferramenta pertence aos seguintes grupos: @1. +This tool can serve as a smelting fuel with a burning time of @1.=Essa ferramenta pode servir como combustível de fundição com um tempo de queima de @1. +This tool is capable of mining.=Essa ferramenta é capaz de minerar. +Maximum toughness levels:=Níveis máximos de dureza: +This tool points to liquids.=Essa ferramenta pode ser apontada para líquidos. +Tools and weapons=Ferramentas e armas +Unknown Node=Bloco Desconhecido +Usage help: @1=Como usar: @1 +Walking on this block is completely silent.= +Whenever you are not wielding any item, you use the hand which acts as a tool with its own capabilities. When you are wielding an item which is not a mining tool or a weapon it will behave as if it would be the hand.=Sempre que você não estiver empunhando nenhum item, você usa a mão que atua como uma ferramentacom caracteristicas próprias. Quando você está empunhando um item que não é uma ferramenta de mineração ou uma arma, ele se comportará como se fosse a mão. +Yes=Sim +You can not jump while standing on this block.= Você não pode pular enquanto estiver neste bloco. +any level=qualquer nível +level 0=nível 0 +level 0-@1=nivel 0-@1 +unknown=desconhecido +Unknown item (@1)=Item desconhecido +• @1: @2= +• @1: @2 HP= +• @1: @2, @3= +• Flowing range: @1= +• No flowing= +• Not renewable= +• Renewable= +• Viscosity: @1= +Itemstring: "@1"= +Durability: @1 uses= +Durability: @1= +Mining durability:= +• @1, level @2: @3 uses= +• @1, level @2: Unlimited= +This block's rotation is affected by the way you place it: Place it on the floor or ceiling for a vertical orientation; place it at the side for a horizontal orientation. Sneaking while placing it leads to a perpendicular orientation instead.= diff --git a/mods/HELP/doc/doc_items/locale/template.txt b/mods/HELP/doc/doc_items/locale/template.txt index 5f71c75a6..68d2d0a7d 100644 --- a/mods/HELP/doc/doc_items/locale/template.txt +++ b/mods/HELP/doc/doc_items/locale/template.txt @@ -1,140 +1,142 @@ -\sUsing it as fuel turns it into: @1. = -@1 seconds = +# textdomain:doc_items +Using it as fuel turns it into: @1.= +@1 seconds= # Item count times item name -%@1×@2 = +%@1×@2= # Itemname (25%) -@1 (@2%) = +@1 (@2%)= # Itemname (<0.5%) -@1 (<0.5%) = +@1 (<0.5%)= # Itemname (ca. 25%) -@1 (ca. @2%) = +@1 (ca. @2%)= # List separator (e.g. “one, two, three”) -,\s = +, = # Final list separator (e.g. “One, two and three”) -\sand\s = -1 second = -A transparent block, basically empty space. It is usually left behind after digging something. = -Air = -Blocks = -Building another block at this block will place it inside and replace it. = -Building this block is completely silent. = -Collidable: @1 = -Description: @1 = -Falling blocks can go through this block; they destroy it when doing so. = -Full punch interval: @1 s = -Hand = -Hold it in your hand, then leftclick to eat it. = -Hold it in your hand, then leftclick to eat it. But why would you want to do this? = -Item reference of all wieldable tools and weapons = -Item reference of blocks and other things which are capable of occupying space = -Item reference of items which are neither blocks, tools or weapons (esp. crafting items) = -Liquids can flow into this block and destroy it. = -Maximum stack size: @1 = -Mining level: @1 = -Mining ratings: = -• @1, rating @2: @3 s - @4 s = -• @1, rating @2: @3 s = -Mining times: = -Mining this block is completely silent. = -Miscellaneous items = -No = -Pointable: No = -Pointable: Only by special items = -Pointable: Yes = -Punches with this block don't work as usual; melee combat and mining are either not possible or work differently. = -Punches with this item don't work as usual; melee combat and mining are either not possible or work differently. = -Punches with this tool don't work as usual; melee combat and mining are either not possible or work differently. = -Range: @1 = + and = +1 second= +A transparent block, basically empty space. It is usually left behind after digging something.= +Air= +Blocks= +Building another block at this block will place it inside and replace it.= +Building this block is completely silent.= +Collidable: @1= +Description: @1= +Falling blocks can go through this block; they destroy it when doing so.= +Full punch interval: @1 s= +Hand= +Hold it in your hand, then leftclick to eat it.= +Hold it in your hand, then leftclick to eat it. But why would you want to do this?= +Item reference of all wieldable tools and weapons= +Item reference of blocks and other things which are capable of occupying space= +Item reference of items which are neither blocks, tools or weapons (esp. crafting items)= +Liquids can flow into this block and destroy it.= +Maximum stack size: @1= +Mining level: @1= +Mining ratings:= +• @1, rating @2: @3 s - @4 s= +• @1, rating @2: @3 s= +Mining times:= +Mining this block is completely silent.= +Miscellaneous items= +No= +Pointable: No= +Pointable: Only by special items= +Pointable: Yes= +Punches with this block don't work as usual; melee combat and mining are either not possible or work differently.= +Punches with this item don't work as usual; melee combat and mining are either not possible or work differently.= +Punches with this tool don't work as usual; melee combat and mining are either not possible or work differently.= +Range: @1= # Range: () -Range: @1 (@2) = -Range: 4 = +Range: @1 (@2)= +Range: 4= # Rating used for digging times -Rating @1 = +Rating @1= # @1 is minimal rating, @2 is maximum rating -Rating @1-@2 = -The fall damage on this block is increased by @1%. = -The fall damage on this block is reduced by @1%. = -This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly. = -This block allows light to propagate with a small loss of brightness. = -This block allows sunlight to propagate without loss in brightness. = -This block belongs to the @1 group. = -This block belongs to these groups: @1. = -This block can be climbed. = -This block can be destroyed by any mining tool immediately. = -This block can be destroyed by any mining tool in half a second. = -This block can be mined by any mining tool immediately. = -This block can be mined by any mining tool in half a second. = -This block can be mined by mining tools which match any of the following mining ratings and its toughness level. = -This block can not be destroyed by ordinary mining tools. = -This block can not be mined by ordinary mining tools. = -This block can serve as a smelting fuel with a burning time of @1. = -This block causes a damage of @1 hit point per second. = -This block causes a damage of @1 hit points per second. = -This block connects to blocks of the @1 group. = -This block connects to blocks of the following groups: @1. = -This block connects to these blocks: @1. = -This block connects to this block: @1. = -This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds. = -This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds. = -This block is a light source with a light level of @1. = -This block glows faintly with a light level of @1. = -This block is a building block for creating various buildings. = -This block is a liquid with these properties: = -This block is affected by gravity and can fall. = -This block is completely silent when mined or built. = -This block is completely silent when walked on, mined or built. = -This block is destroyed when a falling block ends up inside it. = -This block negates all fall damage. = -This block points to liquids. = -This block will drop as an item when a falling block ends up inside it. = -This block will drop as an item when it is not attached to a surrounding block. = -This block will drop as an item when no collidable block is below it. = -This block will drop the following items when mined: %s. = -This block will drop the following when mined: @1×@2. = -This block will drop the following when mined: @1. = -This block will drop the following when mined: %s. = -This block will make you bounce off with an elasticity of @1%. = -This block will randomly drop one of the following when mined: %s. = -This block will randomly drop up to %d drops of the following possible drops when mined: %s. = -This block won't drop anything when mined. = -This is a decorational block. = -This is a melee weapon which deals damage by punching. = -Maximum damage per hit: = -This item belongs to the @1 group. = -This item belongs to these groups: @1. = -This item can serve as a smelting fuel with a burning time of @1. = -This item is primarily used for crafting other items. = -This item points to liquids. = -This tool belongs to the @1 group. = -This tool belongs to these groups: @1. = -This tool can serve as a smelting fuel with a burning time of @1. = -This tool is capable of mining. = -Maximum toughness levels: = -This tool points to liquids. = -Tools and weapons = -Unknown Node = -Usage help: @1 = -Walking on this block is completely silent. = -Whenever you are not wielding any item, you use the hand which acts as a tool with its own capabilities. When you are wielding an item which is not a mining tool or a weapon it will behave as if it would be the hand. = -Yes = -You can not jump while standing on this block. = -any level = -level 0 = -level 0-@1 = -unknown = -Unknown item (@1) = -• @1: @2 = -• @1: @2 HP = -• @1: @2, @3 = -• Flowing range: @1 = -• No flowing = -• Not renewable = -• Renewable = -• Viscosity: @1 = -Itemstring: "@1" = -Durability: @1 uses = -Durability: @1 = -Mining durability: = -• @1, level @2: @3 uses = -• @1, level @2: Unlimited = -This block's rotation is affected by the way you place it: Place it on the floor or ceiling for a vertical orientation; place it at the side for a horizontal orientation. Sneaking while placing it leads to a perpendicular orientation instead. = +Rating @1-@2= +The fall damage on this block is increased by @1%.= +The fall damage on this block is reduced by @1%.= +This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.= +This block allows light to propagate with a small loss of brightness.= +This block allows sunlight to propagate without loss in brightness.= +This block belongs to the @1 group.= +This block belongs to these groups: @1.= +This block can be climbed.= +This block can be destroyed by any mining tool immediately.= +This block can be destroyed by any mining tool in half a second.= +This block can be mined by any mining tool immediately.= +This block can be mined by any mining tool in half a second.= +This block can be mined by mining tools which match any of the following mining ratings and its toughness level.= +This block can not be destroyed by ordinary mining tools.= +This block can not be mined by ordinary mining tools.= +This block can serve as a smelting fuel with a burning time of @1.= +This block causes a damage of @1 hit point per second.= +This block causes a damage of @1 hit points per second.= +This block connects to blocks of the @1 group.= +This block connects to blocks of the following groups: @1.= +This block connects to these blocks: @1.= +This block connects to this block: @1.= +This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds.= +This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds.= +This block is a light source with a light level of @1.= +This block glows faintly with a light level of @1.= +This block is a building block for creating various buildings.= +This block is a liquid with these properties:= +This block is affected by gravity and can fall.= +This block is completely silent when mined or built.= +This block is completely silent when walked on, mined or built.= +This block is destroyed when a falling block ends up inside it.= +This block negates all fall damage.= +This block points to liquids.= +This block will drop as an item when a falling block ends up inside it.= +This block will drop as an item when it is not attached to a surrounding block.= +This block will drop as an item when no collidable block is below it.= +This block will drop the following items when mined: @1.= +This block will drop the following when mined: @1×@2.= +This block will drop the following when mined: @1.= +This block will drop the following when mined: @1.= +This block will make you bounce off with an elasticity of @1%.= +This block will randomly drop one of the following when mined: @1.= +This block will randomly drop up to @1 drops of the following possible drops when mined: @2.= +This block won't drop anything when mined.= +This is a decorational block.= +This is a melee weapon which deals damage by punching.= +Maximum damage per hit:= +This item belongs to the @1 group.= +This item belongs to these groups: @1.= +This item can serve as a smelting fuel with a burning time of @1.= +This item is primarily used for crafting other items.= +This item points to liquids.= +This tool belongs to the @1 group.= +This tool belongs to these groups: @1.= +This tool can serve as a smelting fuel with a burning time of @1.= +This tool is capable of mining.= +Maximum toughness levels:= +This tool points to liquids.= +Tools and weapons= +Unknown Node= +Usage help: @1= +Walking on this block is completely silent.= +Whenever you are not wielding any item, you use the hand which acts as a tool with its own capabilities. When you are wielding an item which is not a mining tool or a weapon it will behave as if it would be the hand.= +Yes= +You can not jump while standing on this block.= +any level= +level 0= +level 0-@1= +unknown= +Unknown item (@1)= +• @1: @2= +• @1: @2 HP= +• @1: @2, @3= +• Flowing range: @1= +• No flowing= +• Not renewable= +• Renewable= +• Viscosity: @1= +Itemstring: "@1"= +Durability: @1 uses= +Durability: @1= +Mining durability:= +• @1, level @2: @3 uses= +• @1, level @2: Unlimited= +This block's rotation is affected by the way you place it: Place it on the floor or ceiling for a vertical orientation; place it at the side for a horizontal orientation. Sneaking while placing it leads to a perpendicular orientation instead.= +Toughness level: @1= diff --git a/mods/HELP/doc/doc_items/mod.conf b/mods/HELP/doc/doc_items/mod.conf index 74fa80dfc..f1c0fbbc5 100644 --- a/mods/HELP/doc/doc_items/mod.conf +++ b/mods/HELP/doc/doc_items/mod.conf @@ -1 +1,3 @@ name = doc_items +depends = doc +description = Adds automatically generated help texts for items.