From 822352f7bca7af62711f2cf0c1a50d9fc2d48822 Mon Sep 17 00:00:00 2001 From: ksandr Date: Wed, 22 Nov 2023 10:42:36 +0300 Subject: [PATCH] Translate util --- locale/digtron.ru.tr | 16 ++++++++++++++++ util_execute_cycle.lua | 7 ++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/locale/digtron.ru.tr b/locale/digtron.ru.tr index 59bffc6..0d14ced 100644 --- a/locale/digtron.ru.tr +++ b/locale/digtron.ru.tr @@ -1,7 +1,23 @@ # textdomain: digtron +# Autor: ksandr +# Special4: minetestserver.ru +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +### util_execute_cycle.lua ### + +Digtron is adjacent to unloaded nodes.=Дигтрон находится рядом с незагруженными блоками. +Digtron has @1 blocks but only enough traction to move @2 blocks.@n=Дигтрон из @1 блоков, но тяги хватает только на перемещение @2 блоков.@n +Size limit of @1 reached with @2 nodes!=Достигнуто ограничение по размеру @1 с помощью @2 узлов! +Heat remaining in controller furnace: @1=Оставшаяся энергия в печи-контроллере: @1 +Digtron is obstructed.=Дигтрон заблокирован. +Digtron needs more fuel.=Дигтрону нужно больше топлива. +Digtron connected to at least one builder with no output material assigned.=Дигтрон имеет по крайней мере одну строительную головку, которой не назначен строительный блок. +Digtron has insufficient building materials. Needed: @1=У дигтрона недостаточно строительных материалов. Требуется: @1 +Digtron unexpectedly failed to execute one or more build operations, likely due to an inventory error.=Дигтрону неожиданно не удалось выполнить одну или несколько операций строительства, вероятно, из-за ошибки с инвентарем. +Heat remaining in controller furnace: @1=Оставшаяся энергия в печи-контроллере: @1 + ### node_axle.lua ### Digtron Rotation Axle=Блок для вращения дигтрона diff --git a/util_execute_cycle.lua b/util_execute_cycle.lua index 5d6a629..0e8f3be 100644 --- a/util_execute_cycle.lua +++ b/util_execute_cycle.lua @@ -1,6 +1,7 @@ -- internationalization boilerplate -local MP = minetest.get_modpath(minetest.get_current_modname()) -local S = dofile(MP.."/intllib.lua") +local S = digtron.S +-- local MP = minetest.get_modpath(minetest.get_current_modname()) +-- local S = dofile(MP.."/intllib.lua") local dig_dust = function(pos, facing) local direction = minetest.facedir_to_dir(facing) @@ -62,7 +63,7 @@ local function neighbour_test(layout, status_text, dir) if dir and dir.y ~= -1 and layout.traction * digtron.config.traction_factor < table.getn(layout.all) then -- digtrons can't fly, though they can fall minetest.sound_play("squeal", {gain=1.0, pos=layout.controller}) - return S("Digtron has @1 blocks but only enough traction to move @2 blocks.\n", table.getn(layout.all), layout.traction * digtron.config.traction_factor) + return S("Digtron has @1 blocks but only enough traction to move @2 blocks.@n", table.getn(layout.all), layout.traction * digtron.config.traction_factor) .. status_text, 2 end