From f6a89e19bf2e9ea48691157a352a79697e276ba7 Mon Sep 17 00:00:00 2001 From: gpcf Date: Tue, 10 Oct 2017 20:17:43 +0200 Subject: Add support for protections (#10) --- lua/visual.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/visual.lua b/lua/visual.lua index db0f570..ca7db07 100755 --- a/lua/visual.lua +++ b/lua/visual.lua @@ -147,6 +147,10 @@ core.register_entity("drawers:visual", { end, on_rightclick = function(self, clicker) + if core.is_protected(self.drawer_pos, clicker:get_player_name()) then + core.record_protection_violation(self.drawer_pos, clicker:get_player_name()) + return + end local leftover = self.try_insert_stack(self, clicker:get_wielded_item(), not clicker:get_player_control().sneak) @@ -160,7 +164,10 @@ core.register_entity("drawers:visual", { on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, dir) local add_stack = not puncher:get_player_control().sneak - + if core.is_protected(self.drawer_pos, puncher:get_player_name()) then + core.record_protection_violation(self.drawer_pos, puncher:get_player_name()) + return + end local inv = puncher:get_inventory() local spaceChecker = ItemStack(self.itemName) if add_stack then -- cgit v1.2.3 From 0156df8512deb48de464a340665e693eb4edb51d Mon Sep 17 00:00:00 2001 From: Oscar Date: Fri, 1 Sep 2017 16:53:44 +0000 Subject: Translated using Weblate (Dutch) Currently translated at 90.9% (20 of 22 strings) Translation: Minetest/Mod: Storage Drawers Translate-URL: https://hosted.weblate.org/projects/minetest/mod-storage-drawers/nl/ --- locale/nl.po | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/locale/nl.po b/locale/nl.po index 43cafe9..a681b6d 100644 --- a/locale/nl.po +++ b/locale/nl.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-06-03 17:04+0200\n" -"PO-Revision-Date: 2017-08-30 13:45+0000\n" +"PO-Revision-Date: 2017-09-02 19:45+0000\n" "Last-Translator: Oscar \n" "Language-Team: Dutch \n" @@ -88,8 +88,9 @@ msgid "Gold Drawer Upgrade (x3)" msgstr "Gouden Lade Upgrade (x3)" #: init.lua +#, fuzzy msgid "Obsidian Drawer Upgrade (x5)" -msgstr "Obsidiaan Lade Upgrade (x5)" +msgstr "Obsidiaanse Lade Upgrade (x5)" #: init.lua msgid "Diamond Drawer Upgrade (x8)" @@ -97,7 +98,7 @@ msgstr "Diamanten Lade Upgrade (x8)" #: init.lua msgid "Iron Drawer Upgrade (x2)" -msgstr "ijzeren Lade Upgrade (x2)" +msgstr "Ijzeren Lade Upgrade (x2)" #: init.lua msgid "Emerald Drawer Upgrade (x13)" -- cgit v1.2.3 From 08a8329c8af3ed4a77e19731f0f1fb69b01c8ee9 Mon Sep 17 00:00:00 2001 From: pitchblack Date: Mon, 4 Sep 2017 21:46:04 +0000 Subject: Added translation using Weblate (Russian) --- locale/ru.po | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 locale/ru.po diff --git a/locale/ru.po b/locale/ru.po new file mode 100644 index 0000000..b21fc3d --- /dev/null +++ b/locale/ru.po @@ -0,0 +1,105 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-03 17:04+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: lua/visual.lua +msgid "Empty" +msgstr "" + +#: lua/api.lua init.lua +msgid "Wooden" +msgstr "" + +#: lua/api.lua +msgid "@1 Drawer" +msgstr "" + +#: lua/api.lua +msgid "@1 Drawers (1x2)" +msgstr "" + +#: lua/api.lua +msgid "@1 Drawers (2x2)" +msgstr "" + +#: lua/helpers.lua +msgid "@1 (@2% full)" +msgstr "" + +#: lua/helpers.lua +msgid "@1 @2 (@3% full)" +msgstr "" + +#: init.lua +msgid "Acacia Wood" +msgstr "" + +#: init.lua +msgid "Aspen Wood" +msgstr "" + +#: init.lua +msgid "Junglewood" +msgstr "" + +#: init.lua +msgid "Pine Wood" +msgstr "" + +#: init.lua +msgid "Oak Wood" +msgstr "" + +#: init.lua +msgid "Birch Wood" +msgstr "" + +#: init.lua +msgid "Dark Oak Wood" +msgstr "" + +#: init.lua +msgid "Spruce Wood" +msgstr "" + +#: init.lua +msgid "Steel Drawer Upgrade (x2)" +msgstr "" + +#: init.lua +msgid "Gold Drawer Upgrade (x3)" +msgstr "" + +#: init.lua +msgid "Obsidian Drawer Upgrade (x5)" +msgstr "" + +#: init.lua +msgid "Diamond Drawer Upgrade (x8)" +msgstr "" + +#: init.lua +msgid "Iron Drawer Upgrade (x2)" +msgstr "" + +#: init.lua +msgid "Emerald Drawer Upgrade (x13)" +msgstr "" + +#: init.lua +msgid "Drawer Upgrade Template" +msgstr "" -- cgit v1.2.3 From ebd3fc2e87a1f69ff2c72223e81afa83604ead77 Mon Sep 17 00:00:00 2001 From: pitchblack Date: Mon, 4 Sep 2017 21:54:45 +0000 Subject: Translated using Weblate (Russian) Currently translated at 100.0% (22 of 22 strings) Translation: Minetest/Mod: Storage Drawers Translate-URL: https://hosted.weblate.org/projects/minetest/mod-storage-drawers/ru/ --- locale/ru.po | 54 +++++++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/locale/ru.po b/locale/ru.po index b21fc3d..e367590 100644 --- a/locale/ru.po +++ b/locale/ru.po @@ -8,98 +8,102 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-06-03 17:04+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2017-09-04 21:55+0000\n" +"Last-Translator: pitchblack \n" +"Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=" +"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 2.17-dev\n" #: lua/visual.lua msgid "Empty" -msgstr "" +msgstr "Пусто" #: lua/api.lua init.lua msgid "Wooden" -msgstr "" +msgstr "Деревянный" #: lua/api.lua msgid "@1 Drawer" -msgstr "" +msgstr "@1 Ящик" #: lua/api.lua msgid "@1 Drawers (1x2)" -msgstr "" +msgstr "@1 Ящики (1x2)" #: lua/api.lua msgid "@1 Drawers (2x2)" -msgstr "" +msgstr "@1 Ящики (2x2)" #: lua/helpers.lua msgid "@1 (@2% full)" -msgstr "" +msgstr "@1 (@2% полон)" #: lua/helpers.lua msgid "@1 @2 (@3% full)" -msgstr "" +msgstr "@1 @2 (@3% полон)" #: init.lua msgid "Acacia Wood" -msgstr "" +msgstr "Акация" #: init.lua msgid "Aspen Wood" -msgstr "" +msgstr "Осина" #: init.lua msgid "Junglewood" -msgstr "" +msgstr "Тропическое дерево" #: init.lua msgid "Pine Wood" -msgstr "" +msgstr "Сосна" #: init.lua msgid "Oak Wood" -msgstr "" +msgstr "Дуб" #: init.lua msgid "Birch Wood" -msgstr "" +msgstr "Береза" #: init.lua msgid "Dark Oak Wood" -msgstr "" +msgstr "Темный дуб" #: init.lua msgid "Spruce Wood" -msgstr "" +msgstr "Ель" #: init.lua msgid "Steel Drawer Upgrade (x2)" -msgstr "" +msgstr "Стальной ящик Улучшение (x2)" #: init.lua msgid "Gold Drawer Upgrade (x3)" -msgstr "" +msgstr "Золотой ящик Улучшение (x3)" #: init.lua msgid "Obsidian Drawer Upgrade (x5)" -msgstr "" +msgstr "Обсидиановый ящик Улучшение (x5)" #: init.lua msgid "Diamond Drawer Upgrade (x8)" -msgstr "" +msgstr "Алмазный ящик Улучшение (x8)" #: init.lua msgid "Iron Drawer Upgrade (x2)" -msgstr "" +msgstr "Железный ящик Улучшение (x2)" #: init.lua msgid "Emerald Drawer Upgrade (x13)" -msgstr "" +msgstr "Изумрудный ящик Улучшение (x13)" #: init.lua msgid "Drawer Upgrade Template" -msgstr "" +msgstr "Шаблон улучшения ящика" -- cgit v1.2.3 From eca795bb70aabd5424a0648fc5d1e0d066b36227 Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 18 Sep 2017 16:50:34 +0000 Subject: Translated using Weblate (Dutch) Currently translated at 95.4% (21 of 22 strings) Translation: Minetest/Mod: Storage Drawers Translate-URL: https://hosted.weblate.org/projects/minetest/mod-storage-drawers/nl/ --- locale/nl.po | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/locale/nl.po b/locale/nl.po index a681b6d..fc93b67 100644 --- a/locale/nl.po +++ b/locale/nl.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-06-03 17:04+0200\n" -"PO-Revision-Date: 2017-09-02 19:45+0000\n" +"PO-Revision-Date: 2017-09-19 19:45+0000\n" "Last-Translator: Oscar \n" "Language-Team: Dutch \n" @@ -105,6 +105,5 @@ msgid "Emerald Drawer Upgrade (x13)" msgstr "Smaragden Lade upgrade (x13)" #: init.lua -#, fuzzy msgid "Drawer Upgrade Template" msgstr "Lade Upgrade Template" -- cgit v1.2.3 From 60c1dcc138b2eed55aa71de2e42a6092c93cf673 Mon Sep 17 00:00:00 2001 From: Hamlet Date: Thu, 28 Sep 2017 16:09:12 +0000 Subject: Translated using Weblate (Italian) Currently translated at 100.0% (22 of 22 strings) Translation: Minetest/Mod: Storage Drawers Translate-URL: https://hosted.weblate.org/projects/minetest/mod-storage-drawers/it/ --- locale/it.po | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/locale/it.po b/locale/it.po index c683a2b..e459a87 100644 --- a/locale/it.po +++ b/locale/it.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-06-03 17:04+0200\n" -"PO-Revision-Date: 2017-07-12 16:33+0000\n" -"Last-Translator: Roberto Albano De Rosa \n" +"PO-Revision-Date: 2017-09-28 16:09+0000\n" +"Last-Translator: Hamlet \n" "Language-Team: Italian \n" "Language: it\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 2.16-dev\n" +"X-Generator: Weblate 2.17-dev\n" #: lua/visual.lua msgid "Empty" @@ -57,7 +57,7 @@ msgstr "Legno di pioppo" #: init.lua msgid "Junglewood" -msgstr "" +msgstr "Legno della giungla" #: init.lua msgid "Pine Wood" @@ -81,28 +81,28 @@ msgstr "Legno di abete rosso" #: init.lua msgid "Steel Drawer Upgrade (x2)" -msgstr "" +msgstr "Miglioramento d'acciaio della cassettiera (x2)" #: init.lua msgid "Gold Drawer Upgrade (x3)" -msgstr "" +msgstr "Miglioramento d'oro della cassettiera (x3)" #: init.lua msgid "Obsidian Drawer Upgrade (x5)" -msgstr "" +msgstr "Miglioramento d'ossidiana della cassettiera (x5)" #: init.lua msgid "Diamond Drawer Upgrade (x8)" -msgstr "" +msgstr "Miglioramento di diamante della cassettiera (x8)" #: init.lua msgid "Iron Drawer Upgrade (x2)" -msgstr "" +msgstr "Miglioramento di ferro della cassettiera (x3)" #: init.lua msgid "Emerald Drawer Upgrade (x13)" -msgstr "" +msgstr "Miglioramento di smeraldo della cassettiera (x13)" #: init.lua msgid "Drawer Upgrade Template" -msgstr "" +msgstr "Modello di miglioramento della cassettiera" -- cgit v1.2.3