From c4e431b46e18ab633c0e357ecd91c79c97a96cbe Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 30 Aug 2020 21:12:10 +0200 Subject: [PATCH] improve ta4 sensor box --- locale/techage.de.tr | 4 ++-- locale/template.txt | 2 +- power/power_terminal2.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/locale/techage.de.tr b/locale/techage.de.tr index 4079a00..21ae9dc 100644 --- a/locale/techage.de.tr +++ b/locale/techage.de.tr @@ -1,6 +1,5 @@ # textdomain: techage - ku is needed!)= #### TA3 Terminal ####@n@nSend commands to your machines@nand output text messages from your@nmachines to the Terminal.@n@nCommand syntax:@n cmd @n@nexample: cmd 181 on@n is the number of the node to which the command is sent@n'on' is the command to turn machines/nodes on@nFurther commands can be retrieved by clicking on@nmachines/nodes with the Techage Info Tool.@n@nLocal commands:@n- clear @= clear screen@n- help @= this message@n- pub @= switch to public use@n- priv @= switch to private use@nTo program a user button with a command:@n set @ne.g. 'set 1 ON cmd 123 on'@n= Accu Box=Akkublock Active:=Aktiv: @@ -430,6 +429,7 @@ inlet/pipe error=Einlass/Röhrenfehler inventory full=Inventar ist voll item output blocked=Ausgang blockiert keep assignment=Zuordnung beibehalten +ku is needed=ku wird benötigt light=Licht loaded=geladen needs power=benötigt Strom @@ -454,4 +454,4 @@ water temperature=Wassertemperatur wrong catalyst=falscher Katalysator wrong storage diameter=Falscher Wärmespeicher-Durchmesser ##### not used anymore ##### -ku is needed!)= ku wird benötigt!) \ No newline at end of file + diff --git a/locale/template.txt b/locale/template.txt index cdcdce3..2d9530a 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,4 +1,3 @@ - ku is needed!)= #### TA3 Terminal ####@n@nSend commands to your machines@nand output text messages from your@nmachines to the Terminal.@n@nCommand syntax:@n cmd @n@nexample: cmd 181 on@n is the number of the node to which the command is sent@n'on' is the command to turn machines/nodes on@nFurther commands can be retrieved by clicking on@nmachines/nodes with the Techage Info Tool.@n@nLocal commands:@n- clear @= clear screen@n- help @= this message@n- pub @= switch to public use@n- priv @= switch to private use@nTo program a user button with a command:@n set @ne.g. 'set 1 ON cmd 123 on'@n= Accu Box= Active:= @@ -428,6 +427,7 @@ inlet/pipe error= inventory full= item output blocked= keep assignment= +ku is needed= light= loaded= needs power= diff --git a/power/power_terminal2.lua b/power/power_terminal2.lua index 6bb61cc..70ab331 100644 --- a/power/power_terminal2.lua +++ b/power/power_terminal2.lua @@ -193,7 +193,7 @@ local function get_state(netw) if #(netw.gen1 or {}) + #(netw.gen2 or {}) == 0 then state = S("No power grid or running generator!") elseif needed > (netw.available1 or 0) then - state = S("Probably too many consumers (")..needed..S(" ku is needed!)") + state = S("Probably too many consumers (")..needed.." "..S("ku is needed").."!)" elseif (netw.num_nodes or 0) < techage.networks.MAX_NUM_NODES then state = S("Number of power grid blocks")..": "..(netw.num_nodes or 0)..", "..S("Max. needed power")..": "..needed.. " ku" else