From 3bc711b9e39f1cd3d5505ec791393232dd5f0c4d Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Wed, 5 Aug 2020 01:08:33 +0200 Subject: [PATCH] MT5 translation for inbox --- inbox/depends.txt | 3 --- inbox/init.lua | 8 +++----- inbox/locale/inbox.de.tr | 7 +++++++ inbox/locale/inbox.es.tr | 7 +++++++ inbox/locale/inbox.fr.tr | 7 +++++++ inbox/locale/inbox.ms.tr | 7 +++++++ inbox/locale/inbox.pt.tr | 7 +++++++ inbox/locale/inbox.pt_BR.tr | 7 +++++++ inbox/locale/inbox.ru.tr | 7 +++++++ inbox/locale/inbox.zh_CN.tr | 7 +++++++ inbox/locale/template.txt | 7 +++++++ inbox/mod.conf | 3 +++ 12 files changed, 69 insertions(+), 8 deletions(-) delete mode 100644 inbox/depends.txt create mode 100644 inbox/locale/inbox.de.tr create mode 100644 inbox/locale/inbox.es.tr create mode 100644 inbox/locale/inbox.fr.tr create mode 100644 inbox/locale/inbox.ms.tr create mode 100644 inbox/locale/inbox.pt.tr create mode 100644 inbox/locale/inbox.pt_BR.tr create mode 100644 inbox/locale/inbox.ru.tr create mode 100644 inbox/locale/inbox.zh_CN.tr create mode 100644 inbox/locale/template.txt create mode 100644 inbox/mod.conf diff --git a/inbox/depends.txt b/inbox/depends.txt deleted file mode 100644 index e13666d7..00000000 --- a/inbox/depends.txt +++ /dev/null @@ -1,3 +0,0 @@ -default -homedecor_common -screwdriver? diff --git a/inbox/init.lua b/inbox/init.lua index 29c17455..0ec889b8 100644 --- a/inbox/init.lua +++ b/inbox/init.lua @@ -1,8 +1,6 @@ - -local S = homedecor.gettext +local S = minetest.get_translator("inbox") local inbox = {} -local screwdriver = rawget(_G, "screwdriver") or {} minetest.register_craft({ output ="inbox:empty", @@ -34,7 +32,7 @@ minetest.register_node("inbox:empty", { paramtype2 = "facedir", groups = {choppy=2,oddly_breakable_by_hand=2}, sounds = default.node_sound_wood_defaults(), - on_rotate = screwdriver.rotate_simple, + on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil, after_place_node = function(pos, placer, itemstack) local meta = minetest.get_meta(pos) local owner = placer:get_player_name() @@ -97,7 +95,7 @@ minetest.register_node("inbox:empty", { local owner = meta:get_string("owner") if player:get_player_name() == owner or minetest.check_player_privs(player, "protection_bypass") and - clicker:get_player_control().aux1 then + player:get_player_control().aux1 then return stack:get_count() end return 0 diff --git a/inbox/locale/inbox.de.tr b/inbox/locale/inbox.de.tr new file mode 100644 index 00000000..cb2a78cf --- /dev/null +++ b/inbox/locale/inbox.de.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=Briefkasten von @1 +Mailbox=Briefkasten diff --git a/inbox/locale/inbox.es.tr b/inbox/locale/inbox.es.tr new file mode 100644 index 00000000..7309df14 --- /dev/null +++ b/inbox/locale/inbox.es.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=Buzón de @1 +Mailbox=Buzón diff --git a/inbox/locale/inbox.fr.tr b/inbox/locale/inbox.fr.tr new file mode 100644 index 00000000..3618ea04 --- /dev/null +++ b/inbox/locale/inbox.fr.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=Boîte aux lettres de @1 +Mailbox=Boîte aux lettres diff --git a/inbox/locale/inbox.ms.tr b/inbox/locale/inbox.ms.tr new file mode 100644 index 00000000..259b537f --- /dev/null +++ b/inbox/locale/inbox.ms.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=Peti Surat @1 +Mailbox=Peti Surat diff --git a/inbox/locale/inbox.pt.tr b/inbox/locale/inbox.pt.tr new file mode 100644 index 00000000..59a8ecda --- /dev/null +++ b/inbox/locale/inbox.pt.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=Correio de @1 +Mailbox=Correio diff --git a/inbox/locale/inbox.pt_BR.tr b/inbox/locale/inbox.pt_BR.tr new file mode 100644 index 00000000..59a8ecda --- /dev/null +++ b/inbox/locale/inbox.pt_BR.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=Correio de @1 +Mailbox=Correio diff --git a/inbox/locale/inbox.ru.tr b/inbox/locale/inbox.ru.tr new file mode 100644 index 00000000..0edb392a --- /dev/null +++ b/inbox/locale/inbox.ru.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=Почтовый ящик @1 +Mailbox=Почтовый ящик diff --git a/inbox/locale/inbox.zh_CN.tr b/inbox/locale/inbox.zh_CN.tr new file mode 100644 index 00000000..14bbd903 --- /dev/null +++ b/inbox/locale/inbox.zh_CN.tr @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox=@1的邮箱 +Mailbox=邮箱 diff --git a/inbox/locale/template.txt b/inbox/locale/template.txt new file mode 100644 index 00000000..0036dc96 --- /dev/null +++ b/inbox/locale/template.txt @@ -0,0 +1,7 @@ +# textdomain: inbox + + +### init.lua ### + +@1's Mailbox= +Mailbox= diff --git a/inbox/mod.conf b/inbox/mod.conf new file mode 100644 index 00000000..c36bc793 --- /dev/null +++ b/inbox/mod.conf @@ -0,0 +1,3 @@ +name = inbox +depends = default, homedecor_common +optional_depends = screwdriver