From 218d925e143c8791ca1f1f42b15ae154fbd3682b Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 12 Feb 2017 12:58:16 -0700 Subject: [PATCH] added documentation to the spring block --- depends.txt | 3 ++- init.lua | 18 ++++++++++-------- locale/de.po | 14 +++++++++++++- locale/es.po | 14 +++++++++++++- locale/fr.po | 14 +++++++++++++- locale/template.pot | 32 ++++++++++++++++++++++---------- 6 files changed, 73 insertions(+), 22 deletions(-) diff --git a/depends.txt b/depends.txt index 6eec83b..0ed65b8 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1,3 @@ default? -intllib? \ No newline at end of file +intllib? +doc? \ No newline at end of file diff --git a/init.lua b/init.lua index c490904..8bc550b 100644 --- a/init.lua +++ b/init.lua @@ -194,14 +194,16 @@ if springs then -- This is a creative-mode only node that produces a modest amount of water continuously no matter where it is. -- Allow this one to turn into "unknown node" when this feature is disabled, since players had to explicitly place it. minetest.register_node("dynamic_liquid:spring", { - description = S("Spring"), - drops = "default:gravel", - tiles = {"default_cobble.png^[combine:16x80:0,-48=crack_anylength.png", - "default_cobble.png","default_cobble.png","default_cobble.png","default_cobble.png","default_cobble.png", - }, - is_ground_content = false, - groups = {cracky = 3, stone = 2}, - sounds = default.node_sound_gravel_defaults(), + description = S("Spring"), + _doc_items_longdesc = S("A natural spring that generates an endless stream of water source blocks"), + _doc_items_usagehelp = S("Generates one source block of water directly on top of itself once per second, provided the space is clear. If this natural spring is dug out the flow stops and it is turned into ordinary cobble."), + drops = "default:gravel", + tiles = {"default_cobble.png^[combine:16x80:0,-48=crack_anylength.png", + "default_cobble.png","default_cobble.png","default_cobble.png","default_cobble.png","default_cobble.png", + }, + is_ground_content = false, + groups = {cracky = 3, stone = 2}, + sounds = default.node_sound_gravel_defaults(), }) minetest.register_abm({ diff --git a/locale/de.po b/locale/de.po index ec3e869..adf6cdb 100644 --- a/locale/de.po +++ b/locale/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-02-02 20:18-0700\n" +"POT-Creation-Date: 2017-02-12 12:55-0700\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -23,3 +23,15 @@ msgstr "Feuchten Lehm" #: init.lua:197 msgid "Spring" msgstr "Quelle" + +#: init.lua:198 +msgid "" +"A natural spring that generates an endless stream of water source blocks" +msgstr "" + +#: init.lua:199 +msgid "" +"Generates one source block of water directly on top of itself once per " +"second, provided the space is clear. If this natural spring is dug out the " +"flow stops and it is turned into ordinary cobble." +msgstr "" diff --git a/locale/es.po b/locale/es.po index 433f27b..37ec311 100644 --- a/locale/es.po +++ b/locale/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-02-02 20:18-0700\n" +"POT-Creation-Date: 2017-02-12 12:55-0700\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -23,3 +23,15 @@ msgstr "Arcilla húmeda" #: init.lua:197 msgid "Spring" msgstr "Manantial" + +#: init.lua:198 +msgid "" +"A natural spring that generates an endless stream of water source blocks" +msgstr "" + +#: init.lua:199 +msgid "" +"Generates one source block of water directly on top of itself once per " +"second, provided the space is clear. If this natural spring is dug out the " +"flow stops and it is turned into ordinary cobble." +msgstr "" diff --git a/locale/fr.po b/locale/fr.po index 4e712e2..3b7c85a 100644 --- a/locale/fr.po +++ b/locale/fr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-02-02 20:18-0700\n" +"POT-Creation-Date: 2017-02-12 12:55-0700\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -23,3 +23,15 @@ msgstr "Argile humide" #: init.lua:197 msgid "Spring" msgstr "Source" + +#: init.lua:198 +msgid "" +"A natural spring that generates an endless stream of water source blocks" +msgstr "" + +#: init.lua:199 +msgid "" +"Generates one source block of water directly on top of itself once per " +"second, provided the space is clear. If this natural spring is dug out the " +"flow stops and it is turned into ordinary cobble." +msgstr "" diff --git a/locale/template.pot b/locale/template.pot index dfcbd11..90e9c57 100644 --- a/locale/template.pot +++ b/locale/template.pot @@ -1,19 +1,19 @@ -# Dynamic liquid Minetest mod. -# Copyright (C) 2017 -# This file is distributed under the same license as the dynamic_liquid package. -# FaceDeer +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: \n" +"Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-02-02 20:18-0700\n" -"PO-Revision-Date: \n" -"Last-Translator: \n" -"Language-Team: \n" +"POT-Creation-Date: 2017-02-12 12:55-0700\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: init.lua:141 @@ -23,3 +23,15 @@ msgstr "" #: init.lua:197 msgid "Spring" msgstr "" + +#: init.lua:198 +msgid "" +"A natural spring that generates an endless stream of water source blocks" +msgstr "" + +#: init.lua:199 +msgid "" +"Generates one source block of water directly on top of itself once per " +"second, provided the space is clear. If this natural spring is dug out the " +"flow stops and it is turned into ordinary cobble." +msgstr ""