From 55e1714cac572564461635b2f34489c781022fab Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Tue, 4 Aug 2020 19:44:20 +0200 Subject: [PATCH] MT5 translation for computer mod - remove homedecor_common from depends since no longer required - luacheck line length fix - add screwdriver in optional_depends --- computer/computers.lua | 36 +++++++++++++++++++------------ computer/depends.txt | 4 ---- computer/init.lua | 1 - computer/locale/computer.de.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.es.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.fr.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.it.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.ms.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.pt.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.pt_BR.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.ru.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/computer.zh_CN.tr | 35 ++++++++++++++++++++++++++++++ computer/locale/template.txt | 35 ++++++++++++++++++++++++++++++ computer/mod.conf | 3 +++ computer/printers.lua | 2 +- computer/tetris.lua | 4 ++-- 16 files changed, 378 insertions(+), 22 deletions(-) delete mode 100644 computer/depends.txt create mode 100644 computer/locale/computer.de.tr create mode 100644 computer/locale/computer.es.tr create mode 100644 computer/locale/computer.fr.tr create mode 100644 computer/locale/computer.it.tr create mode 100644 computer/locale/computer.ms.tr create mode 100644 computer/locale/computer.pt.tr create mode 100644 computer/locale/computer.pt_BR.tr create mode 100644 computer/locale/computer.ru.tr create mode 100644 computer/locale/computer.zh_CN.tr create mode 100644 computer/locale/template.txt create mode 100644 computer/mod.conf diff --git a/computer/computers.lua b/computer/computers.lua index 5a81e916..754735a4 100644 --- a/computer/computers.lua +++ b/computer/computers.lua @@ -1,9 +1,8 @@ - -local S = homedecor.gettext +local S = minetest.get_translator("computer") -- Amiga 500 lookalike computer.register("computer:shefriendSOO", { - description = "SheFriendSOO", + description = S("SheFriendSOO"), tiles_off = { front=true }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L @@ -17,7 +16,7 @@ computer.register("computer:shefriendSOO", { minetest.register_node("computer:vanio", { drawtype = "mesh", mesh = "computer_laptop.obj", - description = "Pony Vanio", + description = S("Pony Vanio"), inventory_image = "computer_laptop_inv.png", tiles = {"computer_laptop.png"}, paramtype = "light", @@ -58,7 +57,7 @@ minetest.register_node("computer:vanio_off", { -- Sony PlayStation lookalike computer.register("computer:slaystation", { - description = "Pony SlayStation", + description = S("Pony SlayStation"), inventory_image = "computer_ps1_inv.png", tiles_off = { top=true }, node_box = computer.pixelnodebox(32, { @@ -75,7 +74,7 @@ computer.register("computer:slaystation", { -- Sony PlayStation 2 lookalike computer.register("computer:slaystation2", { - description = "Pony SlayStation 2", + description = S("Pony SlayStation 2"), inventory_image = "computer_ps2_inv.png", tiles_off = { front=true }, node_box = computer.pixelnodebox(32, { @@ -93,7 +92,7 @@ computer.register("computer:slaystation2", { -- Sinclair ZX Spectrum lookalike computer.register("computer:specter", { - description = "SX Specter", + description = S("SX Specter"), inventory_image = "computer_specter_inv.png", tiles_off = { }, node_box = computer.pixelnodebox(32, { @@ -105,7 +104,7 @@ computer.register("computer:specter", { -- Nintendo Wii lookalike computer.register("computer:wee", { - description = "Nientiendo Wee", + description = S("Nientiendo Wee"), inventory_image = "computer_wii_inv.png", tiles_off = { front=true }, node_box = computer.pixelnodebox(32, { @@ -117,7 +116,7 @@ computer.register("computer:wee", { -- Apple iPad lookalike minetest.register_node("computer:piepad", { - description = "Snapple Piepad", + description = S("Snapple Piepad"), drawtype = "signlike", tiles = {"computer_piepad_inv.png"}, inventory_image = "computer_piepad_inv.png", @@ -133,7 +132,7 @@ minetest.register_node("computer:piepad", { -- Commodore 64 lookalike computer.register("computer:admiral64", { - description = "Admiral64", + description = S("Admiral64"), inventory_image = "computer_ad64_inv.png", tiles_off = { }, node_box = computer.pixelnodebox(32, { @@ -144,7 +143,7 @@ computer.register("computer:admiral64", { -- Commodore 128 lookalike computer.register("computer:admiral128", { - description = "Admiral128", + description = S("Admiral128"), inventory_image = "computer_ad128_inv.png", tiles_off = { }, node_box = computer.pixelnodebox(32, { @@ -155,7 +154,7 @@ computer.register("computer:admiral128", { -- XBox lookalike computer.register("computer:hueg_box", { - description = "HUEG Box", + description = S("HUEG Box"), tiles_off = { }, node_box = computer.pixelnodebox(16, { -- X Y Z W H L @@ -217,8 +216,17 @@ minetest.register_alias("computer:monitor_desktop", "computer:monitor") minetest.register_node("computer:router", { description = S("WIFI Router"), inventory_image = "computer_router_inv.png", - tiles = {"computer_router_t.png","computer_router_bt.png","computer_router_l.png","computer_router_r.png","computer_router_b.png", - {name="computer_router_f_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},}, --"computer_router_f.png"}, + tiles = { + "computer_router_t.png", + "computer_router_bt.png", + "computer_router_l.png", + "computer_router_r.png", + "computer_router_b.png", + { + name = "computer_router_f_animated.png", + animation = {type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0} + }, + }, --"computer_router_f.png"}, paramtype = "light", paramtype2 = "facedir", walkable = false, diff --git a/computer/depends.txt b/computer/depends.txt deleted file mode 100644 index e582ef21..00000000 --- a/computer/depends.txt +++ /dev/null @@ -1,4 +0,0 @@ -default -homedecor_common -basic_materials -unifieddyes diff --git a/computer/init.lua b/computer/init.lua index ffae5583..8c6ef71d 100644 --- a/computer/init.lua +++ b/computer/init.lua @@ -1,5 +1,4 @@ computer = {} -screwdriver = screwdriver or {} computer.register = function (name, def) if (name:sub(1, 1) == ":") then name = name:sub(2) end diff --git a/computer/locale/computer.de.tr b/computer/locale/computer.de.tr new file mode 100644 index 00000000..126d1d92 --- /dev/null +++ b/computer/locale/computer.de.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=Computerturm +HUEG Box= +Monitor and keyboard=Bildschirm und Tastatur +Nientiendo Wee= +Not enough vertical space to place a server!=Es gibt nicht genug vertikalen Platz, um einen Server zu platzieren! +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=Serverschrank +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=WiFi-Router + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=Multifunktionsdrucker + +### tetris.lua ### + +L= +New Game=Neues Spiel +Next...=Nächster… +No room for place the Arcade!=Kein Platz, um den Arkadeautomaten zu platzieren! +R= +Score: =Punktzahl: +Tetris Arcade=Tetris-Arkadeautomat diff --git a/computer/locale/computer.es.tr b/computer/locale/computer.es.tr new file mode 100644 index 00000000..66ec244b --- /dev/null +++ b/computer/locale/computer.es.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=Torre de ordenador +HUEG Box= +Monitor and keyboard=Monitor y teclado +Nientiendo Wee= +Not enough vertical space to place a server!=¡No hay suficiente espacio para colocar un servidor! +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=Servidor en rack +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=Enrutador WIFI + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=Impresora y escáner combinados + +### tetris.lua ### + +L= +New Game=Juego Nuevo +Next...= +No room for place the Arcade!=¡No hay lugar para colocar el arcade! +R= +Score: = +Tetris Arcade=Arcade Tetris diff --git a/computer/locale/computer.fr.tr b/computer/locale/computer.fr.tr new file mode 100644 index 00000000..4b170d9b --- /dev/null +++ b/computer/locale/computer.fr.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=Ordinateur (tour) +HUEG Box= +Monitor and keyboard=Écran et clavier +Nientiendo Wee= +Not enough vertical space to place a server!=Pas assez d'espace vertical pour placer un serveur ! +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=Serveur en rack +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=Routeur WiFi + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=Imprimante multi-fonction + +### tetris.lua ### + +L=G +New Game=Nouveau Jeu +Next...=Suivant… +No room for place the Arcade!=Pas assez de place pour placer la borne d'arcade ! +R=D +Score: =Score : +Tetris Arcade=Borne Tetris diff --git a/computer/locale/computer.it.tr b/computer/locale/computer.it.tr new file mode 100644 index 00000000..b8a72ee5 --- /dev/null +++ b/computer/locale/computer.it.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower= +HUEG Box= +Monitor and keyboard= +Nientiendo Wee= +Not enough vertical space to place a server!=Non c'è abbastanza spazio verticale per mettere un frigorifero! +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server= +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router= + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo= + +### tetris.lua ### + +L= +New Game= +Next...= +No room for place the Arcade!= +R= +Score: = +Tetris Arcade= diff --git a/computer/locale/computer.ms.tr b/computer/locale/computer.ms.tr new file mode 100644 index 00000000..89841cc0 --- /dev/null +++ b/computer/locale/computer.ms.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=Sistem Unit +HUEG Box= +Monitor and keyboard=Monitor dan Papan Kekunci +Nientiendo Wee= +Not enough vertical space to place a server!=Tidak cukup ruang menegak untuk letak rak pelayan! +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=Rak Pelayan +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=Penghala WIFI + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=Pencetak Semua Dalam Satu + +### tetris.lua ### + +L= +New Game=Main Baru +Next...=Seterusnya... +No room for place the Arcade!=Tiada ruang untuk letak Arked! +R= +Score: =Markah: +Tetris Arcade=Arked Tetris diff --git a/computer/locale/computer.pt.tr b/computer/locale/computer.pt.tr new file mode 100644 index 00000000..f2824ed8 --- /dev/null +++ b/computer/locale/computer.pt.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=Gabinete do Computador +HUEG Box= +Monitor and keyboard=Tela e teclado +Nientiendo Wee= +Not enough vertical space to place a server!=Sem espaço vertical suficiente para colocar um servidor. +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=Rack para Servidor +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=Roteador WIFI + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=Tudo em Um Impressora-Scaner + +### tetris.lua ### + +L= +New Game=Novo Jogo +Next...= +No room for place the Arcade!=Sem espaço para colocar o Fliperama! +R= +Score: = +Tetris Arcade=Fliperama Tetris diff --git a/computer/locale/computer.pt_BR.tr b/computer/locale/computer.pt_BR.tr new file mode 100644 index 00000000..f2824ed8 --- /dev/null +++ b/computer/locale/computer.pt_BR.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=Gabinete do Computador +HUEG Box= +Monitor and keyboard=Tela e teclado +Nientiendo Wee= +Not enough vertical space to place a server!=Sem espaço vertical suficiente para colocar um servidor. +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=Rack para Servidor +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=Roteador WIFI + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=Tudo em Um Impressora-Scaner + +### tetris.lua ### + +L= +New Game=Novo Jogo +Next...= +No room for place the Arcade!=Sem espaço para colocar o Fliperama! +R= +Score: = +Tetris Arcade=Fliperama Tetris diff --git a/computer/locale/computer.ru.tr b/computer/locale/computer.ru.tr new file mode 100644 index 00000000..3e835f21 --- /dev/null +++ b/computer/locale/computer.ru.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=Системный блок +HUEG Box= +Monitor and keyboard=Монитор и клавиатура +Nientiendo Wee= +Not enough vertical space to place a server!=Недостаточно вертикального пространства для размещения сервера! +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=Стоечный сервер +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=WIFI-роутер + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=МФУ + +### tetris.lua ### + +L= +New Game=Новая игра +Next...=Далее... +No room for place the Arcade!=Недостаточно места для размещения игрового автомата! +R= +Score: =Счёт: +Tetris Arcade=Игровой автомат Тетрис diff --git a/computer/locale/computer.zh_CN.tr b/computer/locale/computer.zh_CN.tr new file mode 100644 index 00000000..c725e412 --- /dev/null +++ b/computer/locale/computer.zh_CN.tr @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower=计算机箱 +HUEG Box= +Monitor and keyboard=显示器和键盘 +Nientiendo Wee= +Not enough vertical space to place a server!=高度不足,无法放置服务器! +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server=机架式服务器 +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router=无线路由器 + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo=打印扫描一体机 + +### tetris.lua ### + +L= +New Game=新游戏 +Next...=下一个。。。 +No room for place the Arcade!=没有地方放游戏机! +R= +Score: =分数: +Tetris Arcade=俄罗斯方块游戏机 diff --git a/computer/locale/template.txt b/computer/locale/template.txt new file mode 100644 index 00000000..2e84c9b5 --- /dev/null +++ b/computer/locale/template.txt @@ -0,0 +1,35 @@ +# textdomain: computer + + +### computers.lua ### + +Admiral128= +Admiral64= +Computer Tower= +HUEG Box= +Monitor and keyboard= +Nientiendo Wee= +Not enough vertical space to place a server!= +Pony SlayStation= +Pony SlayStation 2= +Pony Vanio= +Rack Server= +SX Specter= +SheFriendSOO= +Snapple Piepad= +WIFI Router= + +### printers.lua ### + +3D Printer ("bedflinger")= +Printer-Scanner Combo= + +### tetris.lua ### + +L= +New Game= +Next...= +No room for place the Arcade!= +R= +Score: = +Tetris Arcade= diff --git a/computer/mod.conf b/computer/mod.conf new file mode 100644 index 00000000..83fb7529 --- /dev/null +++ b/computer/mod.conf @@ -0,0 +1,3 @@ +name = computer +depends = default, basic_materials, unifieddyes +optional_depends = screwdriver diff --git a/computer/printers.lua b/computer/printers.lua index b3723615..efeac68f 100644 --- a/computer/printers.lua +++ b/computer/printers.lua @@ -1,6 +1,6 @@ -- Printers of some kind or another -local S = homedecor.gettext +local S = minetest.get_translator("computer") minetest.register_node("computer:printer", { description = S("Printer-Scanner Combo"), diff --git a/computer/tetris.lua b/computer/tetris.lua index 74dfd93b..c8031c3b 100644 --- a/computer/tetris.lua +++ b/computer/tetris.lua @@ -1,4 +1,4 @@ -local S = homedecor.gettext +local S = minetest.get_translator("computer") local shapes = { { { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } }, @@ -250,7 +250,7 @@ minetest.register_node("computer:tetris_arcade", { paramtype = "light", paramtype2 = "facedir", groups = {snappy=3}, - on_rotate = screwdriver.rotate_simple, + on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}