mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-22 22:53:46 +01:00
Add drawer controller translations (#20)
Added "Drawer Controller", "Current State: ", "Running", "Jammed", and "Stopped" to the translation files to be translated. While testing out the drawer controller translations, I noticed that in certain cases the entity infotext wasn't being translated. This fixes that.
This commit is contained in:
parent
19a15d15d0
commit
e8ee40a141
38
locale/be.po
38
locale/be.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-06-03 21:34+0000\n"
|
"PO-Revision-Date: 2017-06-03 21:34+0000\n"
|
||||||
"Last-Translator: Viktar Vauchkevich <victorenator@gmail.com>\n"
|
"Last-Translator: Viktar Vauchkevich <victorenator@gmail.com>\n"
|
||||||
"Language-Team: Belarusian <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Belarusian <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -16,10 +16,18 @@ msgstr ""
|
|||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<="
|
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||||
"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||||
"X-Generator: Weblate 2.15-dev\n"
|
"X-Generator: Weblate 2.15-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% поўны)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% поўны)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Пустая"
|
msgstr "Пустая"
|
||||||
@ -40,13 +48,25 @@ msgstr "@1 шуфляды (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 шуфляды (2x2)"
|
msgstr "@1 шуфляды (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% поўны)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% поўны)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
34
locale/cs.po
34
locale/cs.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-06-21 18:49+0000\n"
|
"PO-Revision-Date: 2017-06-21 18:49+0000\n"
|
||||||
"Last-Translator: Jakub Vaněk <vanek.jakub4@seznam.cz>\n"
|
"Last-Translator: Jakub Vaněk <vanek.jakub4@seznam.cz>\n"
|
||||||
"Language-Team: Czech <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Czech <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -19,6 +19,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||||
"X-Generator: Weblate 2.15-dev\n"
|
"X-Generator: Weblate 2.15-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (z @2 % plný)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (z @3 % plný)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Prázdný"
|
msgstr "Prázdný"
|
||||||
@ -39,13 +47,25 @@ msgstr "Šuplíky @1 (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "Šuplíky @1 (2x2)"
|
msgstr "Šuplíky @1 (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (z @2 % plný)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (z @3 % plný)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
34
locale/de.po
34
locale/de.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-10-23 23:46+0000\n"
|
"PO-Revision-Date: 2017-10-23 23:46+0000\n"
|
||||||
"Last-Translator: Wuzzy <almikes@aol.com>\n"
|
"Last-Translator: Wuzzy <almikes@aol.com>\n"
|
||||||
"Language-Team: German <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: German <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -19,6 +19,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 2.17\n"
|
"X-Generator: Weblate 2.17\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% voll)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% voll)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Leer"
|
msgstr "Leer"
|
||||||
@ -39,13 +47,25 @@ msgstr "@1schubfächer (1×2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1schubfächer (2×2)"
|
msgstr "@1schubfächer (2×2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% voll)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% voll)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
34
locale/es.po
34
locale/es.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-06-16 09:14+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-06-01 21:02+0000\n"
|
"PO-Revision-Date: 2017-06-01 21:02+0000\n"
|
||||||
"Last-Translator: Miguel Isaac <mineyoshist@protonmail.ch>\n"
|
"Last-Translator: Miguel Isaac <mineyoshist@protonmail.ch>\n"
|
||||||
"Language-Team: Spanish <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Spanish <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -19,6 +19,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 2.15-dev\n"
|
"X-Generator: Weblate 2.15-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% lleno)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% lleno)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Vacio"
|
msgstr "Vacio"
|
||||||
@ -39,13 +47,25 @@ msgstr "@1 Gavetas (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 Gavetas (2x2)"
|
msgstr "@1 Gavetas (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% lleno)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% lleno)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
34
locale/fr.po
34
locale/fr.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-10-15 17:45+0000\n"
|
"PO-Revision-Date: 2017-10-15 17:45+0000\n"
|
||||||
"Last-Translator: xin <xin@riseup.net>\n"
|
"Last-Translator: xin <xin@riseup.net>\n"
|
||||||
"Language-Team: French <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: French <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -19,6 +19,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
"X-Generator: Weblate 2.17\n"
|
"X-Generator: Weblate 2.17\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% plein)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% plein)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Vide"
|
msgstr "Vide"
|
||||||
@ -39,13 +47,25 @@ msgstr "Tiroirs (1x2) @1"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "Tiroirs (2x2) @1"
|
msgstr "Tiroirs (2x2) @1"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% plein)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% plein)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
38
locale/id.po
38
locale/id.po
@ -7,12 +7,12 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2018-05-20 16:38+0000\n"
|
"PO-Revision-Date: 2018-05-20 16:38+0000\n"
|
||||||
"Last-Translator: Muhammad Rifqi Priyo Susanto "
|
"Last-Translator: Muhammad Rifqi Priyo Susanto "
|
||||||
"<muhammadrifqipriyosusanto@gmail.com>\n"
|
"<muhammadrifqipriyosusanto@gmail.com>\n"
|
||||||
"Language-Team: Indonesian <https://hosted.weblate.org/projects/minetest/"
|
"Language-Team: Indonesian <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
"mod-storage-drawers/id/>\n"
|
"storage-drawers/id/>\n"
|
||||||
"Language: id\n"
|
"Language: id\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@ -20,6 +20,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||||
"X-Generator: Weblate 3.0-dev\n"
|
"X-Generator: Weblate 3.0-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% penuh)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% penuh)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Kosong"
|
msgstr "Kosong"
|
||||||
@ -40,13 +48,25 @@ msgstr "@1 Laci (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 Laci (2x2)"
|
msgstr "@1 Laci (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% penuh)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% penuh)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
34
locale/it.po
34
locale/it.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-09-28 16:09+0000\n"
|
"PO-Revision-Date: 2017-09-28 16:09+0000\n"
|
||||||
"Last-Translator: Hamlet <h4mlet@riseup.net>\n"
|
"Last-Translator: Hamlet <h4mlet@riseup.net>\n"
|
||||||
"Language-Team: Italian <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Italian <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -19,6 +19,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 2.17-dev\n"
|
"X-Generator: Weblate 2.17-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% pieno)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% pieno)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Vuoto"
|
msgstr "Vuoto"
|
||||||
@ -39,13 +47,25 @@ msgstr "@1 Cassetti (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 Cassetti (2x2)"
|
msgstr "@1 Cassetti (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% pieno)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% pieno)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
38
locale/ms.po
38
locale/ms.po
@ -7,10 +7,10 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-07-01 04:31+0000\n"
|
"PO-Revision-Date: 2017-07-01 04:31+0000\n"
|
||||||
"Last-Translator: Muhammad Nur Hidayat Yasuyoshi <muhdnurhidayat96@yahoo.com>"
|
"Last-Translator: Muhammad Nur Hidayat Yasuyoshi <muhdnurhidayat96@yahoo."
|
||||||
"\n"
|
"com>\n"
|
||||||
"Language-Team: Malay <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Malay <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
"storage-drawers/ms/>\n"
|
"storage-drawers/ms/>\n"
|
||||||
"Language: ms\n"
|
"Language: ms\n"
|
||||||
@ -20,6 +20,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||||
"X-Generator: Weblate 2.16-dev\n"
|
"X-Generator: Weblate 2.16-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% penuh)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% penuh)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Kosong"
|
msgstr "Kosong"
|
||||||
@ -40,13 +48,25 @@ msgstr "Laci @1 (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "Laci @1 (2x2)"
|
msgstr "Laci @1 (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% penuh)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% penuh)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
34
locale/nl.po
34
locale/nl.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-09-19 19:45+0000\n"
|
"PO-Revision-Date: 2017-09-19 19:45+0000\n"
|
||||||
"Last-Translator: Oscar <kingoscargames@gmail.com>\n"
|
"Last-Translator: Oscar <kingoscargames@gmail.com>\n"
|
||||||
"Language-Team: Dutch <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Dutch <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -19,6 +19,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 2.17-dev\n"
|
"X-Generator: Weblate 2.17-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% vol)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% vol)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Leeg"
|
msgstr "Leeg"
|
||||||
@ -39,13 +47,25 @@ msgstr "@1 Lades (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 Lades (2x2)"
|
msgstr "@1 Lades (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% vol)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% vol)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
34
locale/pl.po
34
locale/pl.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-06-16 09:14+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-06-04 23:03+0000\n"
|
"PO-Revision-Date: 2017-06-04 23:03+0000\n"
|
||||||
"Last-Translator: LNJ <git@lnj.li>\n"
|
"Last-Translator: LNJ <git@lnj.li>\n"
|
||||||
"Language-Team: Polish <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Polish <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -20,6 +20,14 @@ msgstr ""
|
|||||||
"|| n%100>=20) ? 1 : 2;\n"
|
"|| n%100>=20) ? 1 : 2;\n"
|
||||||
"X-Generator: Weblate 2.15-dev\n"
|
"X-Generator: Weblate 2.15-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% napełnione)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% napełnione)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Pusta"
|
msgstr "Pusta"
|
||||||
@ -40,13 +48,25 @@ msgstr "@1 Szuflady (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 Szuflady (2x2)"
|
msgstr "@1 Szuflady (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% napełnione)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% napełnione)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
38
locale/ru.po
38
locale/ru.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-09-04 21:55+0000\n"
|
"PO-Revision-Date: 2017-09-04 21:55+0000\n"
|
||||||
"Last-Translator: pitchblack <pitchblack@mail.ru>\n"
|
"Last-Translator: pitchblack <pitchblack@mail.ru>\n"
|
||||||
"Language-Team: Russian <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Russian <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -16,10 +16,18 @@ msgstr ""
|
|||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<="
|
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||||
"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||||
"X-Generator: Weblate 2.17-dev\n"
|
"X-Generator: Weblate 2.17-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (@2% полон)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (@3% полон)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Пусто"
|
msgstr "Пусто"
|
||||||
@ -40,13 +48,25 @@ msgstr "@1 Ящики (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 Ящики (2x2)"
|
msgstr "@1 Ящики (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (@2% полон)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (@3% полон)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-06-16 09:14+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -17,6 +17,14 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
"Content-Type: text/plain; charset=CHARSET\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -37,12 +45,24 @@ msgstr ""
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
|
34
locale/tr.po
34
locale/tr.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-06-03 17:04+0200\n"
|
"POT-Creation-Date: 2018-06-17 11:36-0500\n"
|
||||||
"PO-Revision-Date: 2017-06-04 14:23+0000\n"
|
"PO-Revision-Date: 2017-06-04 14:23+0000\n"
|
||||||
"Last-Translator: monolifed <monolifed@gmail.com>\n"
|
"Last-Translator: monolifed <monolifed@gmail.com>\n"
|
||||||
"Language-Team: Turkish <https://hosted.weblate.org/projects/minetest/mod-"
|
"Language-Team: Turkish <https://hosted.weblate.org/projects/minetest/mod-"
|
||||||
@ -19,6 +19,14 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
"X-Generator: Weblate 2.15-dev\n"
|
"X-Generator: Weblate 2.15-dev\n"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 (@2% full)"
|
||||||
|
msgstr "@1 (%@2 dolu)"
|
||||||
|
|
||||||
|
#: lua/helpers.lua
|
||||||
|
msgid "@1 @2 (@3% full)"
|
||||||
|
msgstr "@1 @2 (%@3 dolu)"
|
||||||
|
|
||||||
#: lua/visual.lua
|
#: lua/visual.lua
|
||||||
msgid "Empty"
|
msgid "Empty"
|
||||||
msgstr "Boş"
|
msgstr "Boş"
|
||||||
@ -39,13 +47,25 @@ msgstr "@1 Çekmece (1x2)"
|
|||||||
msgid "@1 Drawers (2x2)"
|
msgid "@1 Drawers (2x2)"
|
||||||
msgstr "@1 Çekmece (2x2)"
|
msgstr "@1 Çekmece (2x2)"
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 (@2% full)"
|
msgid "Current State: "
|
||||||
msgstr "@1 (%@2 dolu)"
|
msgstr ""
|
||||||
|
|
||||||
#: lua/helpers.lua
|
#: lua/controller.lua
|
||||||
msgid "@1 @2 (@3% full)"
|
msgid "Stopped"
|
||||||
msgstr "@1 @2 (%@3 dolu)"
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Running"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Jammed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lua/controller.lua
|
||||||
|
msgid "Drawer Controller"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: init.lua
|
#: init.lua
|
||||||
msgid "Acacia Wood"
|
msgid "Acacia Wood"
|
||||||
|
@ -67,7 +67,7 @@ function drawers.drawer_on_construct(pos)
|
|||||||
meta:set_int("count"..vid, 0)
|
meta:set_int("count"..vid, 0)
|
||||||
meta:set_int("max_count"..vid, base_stack_max * stack_max_factor)
|
meta:set_int("max_count"..vid, base_stack_max * stack_max_factor)
|
||||||
meta:set_int("base_stack_max"..vid, base_stack_max)
|
meta:set_int("base_stack_max"..vid, base_stack_max)
|
||||||
meta:set_string("entity_infotext"..vid, drawers.gen_info_text("Empty", 0,
|
meta:set_string("entity_infotext"..vid, drawers.gen_info_text(S("Empty"), 0,
|
||||||
stack_max_factor, base_stack_max))
|
stack_max_factor, base_stack_max))
|
||||||
meta:set_int("stack_max_factor"..vid, stack_max_factor)
|
meta:set_int("stack_max_factor"..vid, stack_max_factor)
|
||||||
|
|
||||||
|
@ -39,6 +39,10 @@ needing to scan all the drawers to deposit an item in certain situations. The
|
|||||||
table is only updated on an as needed basis, not by a specific time/interval.
|
table is only updated on an as needed basis, not by a specific time/interval.
|
||||||
Controllers that have no items will not continue scanning drawers. ]]--
|
Controllers that have no items will not continue scanning drawers. ]]--
|
||||||
|
|
||||||
|
-- Load support for intllib.
|
||||||
|
local MP = core.get_modpath(core.get_current_modname())
|
||||||
|
local S, NS = dofile(MP.."/intllib.lua")
|
||||||
|
|
||||||
local function controller_can_dig(pos, player)
|
local function controller_can_dig(pos, player)
|
||||||
local meta = core.get_meta(pos);
|
local meta = core.get_meta(pos);
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
@ -74,7 +78,7 @@ local function controller_formspec(pos, meta_current_state)
|
|||||||
default.gui_bg..
|
default.gui_bg..
|
||||||
default.gui_bg_img..
|
default.gui_bg_img..
|
||||||
default.gui_slots..
|
default.gui_slots..
|
||||||
"label[0,0;Current State: " .. meta_current_state .. "]" ..
|
"label[0,0;" .. S("Current State: ") .. meta_current_state .. "]" ..
|
||||||
"list[current_name;src;3.5,1.75;1,1;]"..
|
"list[current_name;src;3.5,1.75;1,1;]"..
|
||||||
"list[current_player;main;0,4.25;8,1;]"..
|
"list[current_player;main;0,4.25;8,1;]"..
|
||||||
"list[current_player;main;0,5.5;8,3;8]"..
|
"list[current_player;main;0,5.5;8,3;8]"..
|
||||||
@ -217,7 +221,7 @@ local function controller_node_timer(pos, elapsed)
|
|||||||
clear it each time ]]--
|
clear it each time ]]--
|
||||||
if meta_current_state == "jammed" and meta_jammed_item_name == src_name and meta_times_ran_while_jammed >= 8 then
|
if meta_current_state == "jammed" and meta_jammed_item_name == src_name and meta_times_ran_while_jammed >= 8 then
|
||||||
meta:set_string("current_state", "stopped")
|
meta:set_string("current_state", "stopped")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Stopped"))
|
meta:set_string("formspec", controller_formspec(pos, S("Stopped")))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -229,14 +233,14 @@ local function controller_node_timer(pos, elapsed)
|
|||||||
-- If current state is stopped, and the item that jammed it is not the same item in the src inv slot, we set the current state to running and clear the jam counter
|
-- If current state is stopped, and the item that jammed it is not the same item in the src inv slot, we set the current state to running and clear the jam counter
|
||||||
if meta_current_state == "stopped" and meta_jammed_item_name ~= src_name then
|
if meta_current_state == "stopped" and meta_jammed_item_name ~= src_name then
|
||||||
meta:set_string("current_state", "running")
|
meta:set_string("current_state", "running")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Running"))
|
meta:set_string("formspec", controller_formspec(pos, S("Running")))
|
||||||
meta:set_float("times_ran_while_jammed", 0)
|
meta:set_float("times_ran_while_jammed", 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- If no item is in the controller, nothing is searched and current_state is set to running and no jams
|
-- If no item is in the controller, nothing is searched and current_state is set to running and no jams
|
||||||
if inv:is_empty("src") then
|
if inv:is_empty("src") then
|
||||||
meta:set_string("current_state", "running")
|
meta:set_string("current_state", "running")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Running"))
|
meta:set_string("formspec", controller_formspec(pos, S("Running")))
|
||||||
meta:set_float("times_ran_while_jammed", 0)
|
meta:set_float("times_ran_while_jammed", 0)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -244,7 +248,7 @@ local function controller_node_timer(pos, elapsed)
|
|||||||
-- If a non stackable item is in the controller, such as a written book, set the current_state to stopped because they are not allowed in drawers
|
-- If a non stackable item is in the controller, such as a written book, set the current_state to stopped because they are not allowed in drawers
|
||||||
if src:get_stack_max() == 1 then
|
if src:get_stack_max() == 1 then
|
||||||
meta:set_string("current_state", "stopped")
|
meta:set_string("current_state", "stopped")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Stopped"))
|
meta:set_string("formspec", controller_formspec(pos, S("Stopped")))
|
||||||
meta:set_string("jammed_item_name", src_name)
|
meta:set_string("jammed_item_name", src_name)
|
||||||
meta:set_float("times_ran_while_jammed", 1)
|
meta:set_float("times_ran_while_jammed", 1)
|
||||||
return true
|
return true
|
||||||
@ -295,11 +299,11 @@ local function controller_node_timer(pos, elapsed)
|
|||||||
inv:set_stack("src", 1, leftover)
|
inv:set_stack("src", 1, leftover)
|
||||||
-- Set the controller metadata
|
-- Set the controller metadata
|
||||||
meta:set_string("current_state", "running")
|
meta:set_string("current_state", "running")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Running"))
|
meta:set_string("formspec", controller_formspec(pos, S("Running")))
|
||||||
meta:set_float("times_ran_while_jammed", 0)
|
meta:set_float("times_ran_while_jammed", 0)
|
||||||
else
|
else
|
||||||
meta:set_string("current_state", "jammed")
|
meta:set_string("current_state", "jammed")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Jammed"))
|
meta:set_string("formspec", controller_formspec(pos, S("Jammed")))
|
||||||
meta:set_string("jammed_item_name", src_name)
|
meta:set_string("jammed_item_name", src_name)
|
||||||
meta:set_float("times_ran_while_jammed", meta_times_ran_while_jammed + 1)
|
meta:set_float("times_ran_while_jammed", meta_times_ran_while_jammed + 1)
|
||||||
end
|
end
|
||||||
@ -317,18 +321,18 @@ local function controller_node_timer(pos, elapsed)
|
|||||||
drawers_table_index[src_name] = {drawer_pos_x = indexed_drawer_pos.x, drawer_pos_y = indexed_drawer_pos.y, drawer_pos_z = indexed_drawer_pos.z, visualid = visualid}
|
drawers_table_index[src_name] = {drawer_pos_x = indexed_drawer_pos.x, drawer_pos_y = indexed_drawer_pos.y, drawer_pos_z = indexed_drawer_pos.z, visualid = visualid}
|
||||||
-- Set the controller metadata
|
-- Set the controller metadata
|
||||||
meta:set_string("current_state", "running")
|
meta:set_string("current_state", "running")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Running"))
|
meta:set_string("formspec", controller_formspec(pos, S("Running")))
|
||||||
meta:set_float("times_ran_while_jammed", 0)
|
meta:set_float("times_ran_while_jammed", 0)
|
||||||
meta:set_string("drawers_table_index", core.serialize(drawers_table_index))
|
meta:set_string("drawers_table_index", core.serialize(drawers_table_index))
|
||||||
else
|
else
|
||||||
meta:set_string("current_state", "jammed")
|
meta:set_string("current_state", "jammed")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Jammed"))
|
meta:set_string("formspec", controller_formspec(pos, S("Jammed")))
|
||||||
meta:set_string("jammed_item_name", src_name)
|
meta:set_string("jammed_item_name", src_name)
|
||||||
meta:set_float("times_ran_while_jammed", meta_times_ran_while_jammed + 1)
|
meta:set_float("times_ran_while_jammed", meta_times_ran_while_jammed + 1)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
meta:set_string("current_state", "jammed")
|
meta:set_string("current_state", "jammed")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Jammed"))
|
meta:set_string("formspec", controller_formspec(pos, S("Jammed")))
|
||||||
meta:set_string("jammed_item_name", src_name)
|
meta:set_string("jammed_item_name", src_name)
|
||||||
meta:set_float("times_ran_while_jammed", meta_times_ran_while_jammed + 1)
|
meta:set_float("times_ran_while_jammed", meta_times_ran_while_jammed + 1)
|
||||||
end
|
end
|
||||||
@ -338,7 +342,7 @@ end
|
|||||||
|
|
||||||
-- Set the controller definition using a table to allow for pipeworks and potentially other mod support
|
-- Set the controller definition using a table to allow for pipeworks and potentially other mod support
|
||||||
local controller_def = {}
|
local controller_def = {}
|
||||||
controller_def.description = 'Drawer Controller'
|
controller_def.description = S("Drawer Controller")
|
||||||
controller_def.tiles = {"drawer_controller_top_bottom.png", "drawer_controller_top_bottom.png", "drawer_controller_side.png", "drawer_controller_side.png", "drawer_controller_side.png", "drawer_controller_side.png"}
|
controller_def.tiles = {"drawer_controller_top_bottom.png", "drawer_controller_top_bottom.png", "drawer_controller_side.png", "drawer_controller_side.png", "drawer_controller_side.png", "drawer_controller_side.png"}
|
||||||
controller_def.can_dig = controller_can_dig
|
controller_def.can_dig = controller_can_dig
|
||||||
controller_def.groups = {cracky = 3, level = 2}
|
controller_def.groups = {cracky = 3, level = 2}
|
||||||
@ -350,7 +354,7 @@ controller_def.on_construct = function(pos)
|
|||||||
meta:set_float("times_ran_while_jammed", 0)
|
meta:set_float("times_ran_while_jammed", 0)
|
||||||
meta:set_string("jammed_item_name", "")
|
meta:set_string("jammed_item_name", "")
|
||||||
meta:set_string("drawers_table_index", "")
|
meta:set_string("drawers_table_index", "")
|
||||||
meta:set_string("formspec", controller_formspec(pos, "Running"))
|
meta:set_string("formspec", controller_formspec(pos, S("Running")))
|
||||||
local timer = core.get_node_timer(pos)
|
local timer = core.get_node_timer(pos)
|
||||||
timer:start(7)
|
timer:start(7)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user