Skip to content

Commit c1d77c2

Browse files
committed
Remove translation strings from minetest.log output and from print() output
Since they are not translated anyway.
1 parent cd1fb19 commit c1d77c2

20 files changed

+16
-112
lines changed

technic/init.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ local modpath = minetest.get_modpath("technic")
1212
technic.modpath = modpath
1313

1414

15-
-- Translation support
16-
local S = minetest.get_translator("technic")
17-
1815
-- Read configuration file
1916
dofile(modpath.."/config.lua")
2017

@@ -43,6 +40,6 @@ dofile(modpath.."/tools/init.lua")
4340
dofile(modpath.."/legacy.lua")
4441

4542
if minetest.settings:get_bool("log_mods") then
46-
print(S("[Technic] Loaded in @1 seconds", string.format("%f", os.clock() - load_start)))
43+
print("[Technic] Loaded in %f seconds":format(os.clock() - load_start))
4744
end
4845

technic/locale/technic.de.tr

-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Deutsche Uebersetzung des Technic Mods
55
# by Xanthin
66

7-
## Misc
8-
[Technic] Loaded in @1 seconds=[Technic] ist in @1 Sekunden geladen
9-
107
## Items
118
Silicon Wafer=Siliziumscheibe
129
Doped Silicon Wafer=Dotierte Siliziumscheibe
@@ -80,7 +77,6 @@ HV=
8077
@1 Nuclear Reactor Core=
8178
Enables or disables technic's switching station ABM=
8279
@1 Already Present=
83-
[TECHNIC] Warning: redundant switching station found near @1=
8480
Machines: timeout check=
8581
Machines: re-enable check=
8682
You are not allowed to edit this!=
@@ -92,9 +88,6 @@ Machines: run injector=
9288
Tools: tree tap=
9389
@1 is unpowered=
9490
@1 is powered (@2% of maximum power)=
95-
@1 tried to place @2 at protected position @3=
96-
@1 tried to take @2 at protected position @3 with a @4=
97-
@1 tried to place @2 at protected position @3 with a @4=
9891

9992
## Machine names
10093
Power Monitor=
@@ -150,7 +143,6 @@ Enable Digiline=
150143
Digiline Remote Channel
151144
Save=
152145
Start=
153-
A reactor melted down at @1=
154146
Start successful=
155147
Error=
156148
Restart=
@@ -253,4 +245,3 @@ Compressing=
253245
Extracting=
254246
Separating=
255247
Freezing=
256-
[Technic] ignored registration of garbage recipe!=

technic/locale/technic.es.tr

-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Traduccion al Español del Mod Technic
55
# Autor: Diego Martínez <kaeza>
66

7-
## Misc
8-
[Technic] Loaded in @1 seconds=[Technic] Cargado en @1 segundos
9-
107
## Items
118
Silicon Wafer=Oblea de Silicio
129
Doped Silicon Wafer=Oblea de Silicio Dopada
@@ -80,7 +77,6 @@ HV=
8077
@1 Nuclear Reactor Core=
8178
Enables or disables technic's switching station ABM=
8279
@1 Already Present=
83-
[TECHNIC] Warning: redundant switching station found near @1=
8480
Machines: timeout check=
8581
Machines: re-enable check=
8682
You are not allowed to edit this!=
@@ -92,9 +88,6 @@ Machines: run injector=
9288
Tools: tree tap=
9389
@1 is unpowered=
9490
@1 is powered (@2% of maximum power)=
95-
@1 tried to place @2 at protected position @3=
96-
@1 tried to take @2 at protected position @3 with a @4=
97-
@1 tried to place @2 at protected position @3 with a @4=
9891

9992
## Machine names
10093
Power Monitor=
@@ -148,7 +141,6 @@ Enable Digiline=
148141
Digiline Remote Channel
149142
Save=
150143
Start=
151-
A reactor melted down at @1=
152144
Start successful=
153145
Error=
154146
Restart=
@@ -251,4 +243,3 @@ Compressing=
251243
Extracting=
252244
Separating=
253245
Freezing=
254-
[Technic] ignored registration of garbage recipe!=

technic/locale/technic.fr.tr

-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Template for translations of Technic
55

66

7-
## Misc
8-
[Technic] Loaded in @1 seconds=[Technic] Chargement en @1 secondes
9-
107
## Items
118
Silicon Wafer=Tranche de silicium
129
Doped Silicon Wafer=Tranche de silicium doppé
@@ -79,7 +76,6 @@ HV=haute tension
7976
@1 Nuclear Reactor Core=Cœur de réacteur nucléaire @1
8077
Enables or disables technic's switching station ABM=Active ou desactive la station de commutation de technic
8178
@1 Already Present=@1 déja présent
82-
[TECHNIC] Warning: redundant switching station found near @1=[TECHNIC] Avertissement : station de commutation redondante près de @1
8379
Machines: timeout check=Machines : vérification de timeout
8480
Machines: re-enable check=Machines : réactivation des vérifications
8581
You are not allowed to edit this!=Vous n’êtes pas autorisé à modifier cela !
@@ -91,9 +87,6 @@ Machines: run injector= fonctionnement de l’injecteur
9187
Tools: tree tap=Outils : Robinet à sève
9288
@1 is unpowered=@1 est hors tension
9389
@1 is powered (@2% of maximum power)=@1 est alimenté (@2 % de la puissance maximale)
94-
@1 tried to place @2 at protected position @3=@1 a essayé de placer @2 à la position protégée @3
95-
@1 tried to take @2 at protected position @3 with a @4=@1 a essayé de prendre @2 à la position protégée @3 avec un @4
96-
@1 tried to place @2 at protected position @3 with a @4=@1 a essayé de placer @2 à la position protégée @3 avec un @4
9790

9891

9992
## Machine names
@@ -149,7 +142,6 @@ Enable Digiline=Activer Digiline
149142
Digiline Remote Channel=Cannal Digiline distant
150143
Save=Sauvegarder
151144
Start=Démarrer
152-
A reactor melted down at @1=Un réacteur a fusionné à @1
153145
Start successuful=Démarré avec succès
154146
Error=Erreur
155147
Restart=Redémarrer
@@ -253,4 +245,3 @@ Compressing=Compression
253245
Extracting=Extraction
254246
Separating=Séparation
255247
Freezing=Congélation
256-
[Technic] ignored registration of garbage recipe!=[Technic] enregistrement d’une recette incohérente ignoré !

technic/locale/technic.it.tr

-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# textdomain: technic
22

33

4-
## Misc
5-
[Technic] Loaded in @1 seconds=[Technic] caricato in @1 secondi
6-
74
## Items
85
Silicon Wafer=Wafer di silicone
96
Doped Silicon Wafer=Wafer di silicone dopato
@@ -75,7 +72,6 @@ HV=
7572
@1 Nuclear Reactor Core=
7673
Enables or disables technic's switching station ABM=
7774
@1 Already Present=
78-
[TECHNIC] Warning: redundant switching station found near @1=
7975
Machines: timeout check=
8076
Machines: re-enable check=
8177
You are not allowed to edit this!=
@@ -87,9 +83,6 @@ Machines: run injector=
8783
Tools: tree tap=
8884
@1 is unpowered=
8985
@1 is powered (@2% of maximum power)=
90-
@1 tried to place @2 at protected position @3=
91-
@1 tried to take @2 at protected position @3 with a @4=
92-
@1 tried to place @2 at protected position @3 with a @4=
9386

9487
## Machine names
9588
Power Monitor=
@@ -143,7 +136,6 @@ Enable Digiline=
143136
Digiline Remote Channel
144137
Save=
145138
Start=
146-
A reactor melted down at @1=
147139
Start successful=
148140
Error=
149141
Restart=
@@ -246,4 +238,3 @@ Compressing=Compressione
246238
Extracting=Estrazione
247239
Separating=
248240
Freezing=
249-
[Technic] ignored registration of garbage recipe!=

technic/locale/technic.pl.tr

-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Polskie tłumaczenie Technic mod
55
# by mat9117
66

7-
## Misc
8-
[Technic] Loaded in @1 seconds=[Technic] Wczytany w @1 sekund
9-
107
## Items
118
Silicon Wafer=Płytka krzemowa
129
Doped Silicon Wafer=Domieszkowana płytka krzemowa
@@ -79,7 +76,6 @@ HV=
7976
@1 Nuclear Reactor Core=
8077
Enables or disables technic's switching station ABM=
8178
@1 Already Present=
82-
[TECHNIC] Warning: redundant switching station found near @1=
8379
Machines: timeout check=
8480
Machines: re-enable check=
8581
You are not allowed to edit this!=
@@ -91,9 +87,6 @@ Machines: run injector=
9187
Tools: tree tap=
9288
@1 is unpowered=
9389
@1 is powered (@2% of maximum power)=
94-
@1 tried to place @2 at protected position @3=
95-
@1 tried to take @2 at protected position @3 with a @4=
96-
@1 tried to place @2 at protected position @3 with a @4=
9790

9891
## Machine names
9992
@1 Alloy Furnace=@1 Piec stopowy
@@ -147,7 +140,6 @@ Enable Digiline=
147140
Digiline Remote Channel
148141
Save=
149142
Start=
150-
A reactor melted down at @1=
151143
Start successful=
152144
Error=
153145
Restart=
@@ -251,4 +243,3 @@ Compressing=Kompresowanie
251243
Extracting=Ekstrakcja
252244
Separating=Oddzielanie
253245
Freezing=
254-
[Technic] ignored registration of garbage recipe!=

technic/locale/technic.pt_BR.tr

-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Tradução portuguesa brasileira para technic
55
# By Sires
66

7-
## Misc
8-
[Technic] Loaded in @1 seconds = [Technic] Carregado em @1 segundos
9-
107
## Items
118
Silicon Wafer=Pastilha de Silício
129
Doped Silicon Wafer=Pastilha de Silício Dopada
@@ -79,7 +76,6 @@ HV=
7976
@1 Nuclear Reactor Core=
8077
Enables or disables technic's switching station ABM=
8178
@1 Already Present=
82-
[TECHNIC] Warning: redundant switching station found near @1=
8379
Machines: timeout check=
8480
Machines: re-enable check=
8581
You are not allowed to edit this!=
@@ -91,9 +87,6 @@ Machines: run injector=
9187
Tools: tree tap=
9288
@1 is unpowered=
9389
@1 is powered (@2% of maximum power)=
94-
@1 tried to place @2 at protected position @3=
95-
@1 tried to take @2 at protected position @3 with a @4=
96-
@1 tried to place @2 at protected position @3 with a @4=
9790

9891
## Machine names
9992
Power Monitor=
@@ -149,7 +142,6 @@ Enable Digiline=
149142
Digiline Remote Channel
150143
Save=
151144
Start=
152-
A reactor melted down at @1=
153145
Start successful=
154146
Error=
155147
Restart=
@@ -245,4 +237,3 @@ Compressing=Comprimindo
245237
Extracting=Extraindo
246238
Separating=Separando
247239
Freezing=
248-
[Technic] ignored registration of garbage recipe!=

technic/locale/template.txt

-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Template for translations of Technic
55

66

7-
## Misc
8-
[Technic] Loaded in @1 seconds=
9-
107
## Items
118
Silicon Wafer=
129
Doped Silicon Wafer=
@@ -79,7 +76,6 @@ HV=
7976
@1 Nuclear Reactor Core=
8077
Enables or disables technic's switching station ABM=
8178
@1 Already Present=
82-
[TECHNIC] Warning: redundant switching station found near @1=
8379
Machines: timeout check=
8480
Machines: re-enable check=
8581
You are not allowed to edit this!=
@@ -91,9 +87,6 @@ Machines: run injector=
9187
Tools: tree tap=
9288
@1 is unpowered=
9389
@1 is powered (@2% of maximum power)=
94-
@1 tried to place @2 at protected position @3=
95-
@1 tried to take @2 at protected position @3 with a @4=
96-
@1 tried to place @2 at protected position @3 with a @4=
9790

9891

9992
## Machine names
@@ -149,7 +142,6 @@ Enable Digiline=
149142
Digiline Remote Channel
150143
Save=
151144
Start=
152-
A reactor melted down at @1=
153145
Start successful=
154146
Error=
155147
Restart=
@@ -254,4 +246,3 @@ Compressing=
254246
Extracting=
255247
Separating=
256248
Freezing=
257-
[Technic] ignored registration of garbage recipe!=

technic/machines/HV/nuclear_reactor.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ end
211211

212212

213213
local function melt_down_reactor(pos)
214-
minetest.log("action", S("A reactor melted down at @1", minetest.pos_to_string(pos)))
214+
minetest.log("action", "A reactor melted down at "..minetest.pos_to_string(pos))
215215
minetest.set_node(pos, {name = "technic:corium_source"})
216216
end
217217

technic/machines/other/frames.lua

+2-6
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ for zp = 0, 1 do
298298
local pos = pointed_thing.above
299299

300300
if minetest.is_protected(pos, placer:get_player_name()) then
301-
minetest.log("action", S("@1 tried to place @2 at protected position @3", placer:get_player_name(),
302-
itemstack:get_name(),
303-
minetest.pos_to_string(pos)))
301+
minetest.log("action", placer:get_player_name().." tried to place "..itemstack:get_name().." at protected position "..minetest.pos_to_string(pos))
304302
minetest.record_protection_violation(pos, placer:get_player_name())
305303
return itemstack
306304
end
@@ -326,9 +324,7 @@ for zp = 0, 1 do
326324
on_rightclick = function(pos, node, placer, itemstack, pointed_thing)
327325
if is_supported_node(itemstack:get_name()) then
328326
if minetest.is_protected(pos, placer:get_player_name()) then
329-
minetest.log("action", S("@1 tried to place @2 at protected position @3", placer:get_player_name(),
330-
itemstack:get_name(),
331-
minetest.pos_to_string(pos)))
327+
minetest.log("action", placer:get_player_name().." tried to place "..itemstack:get_name().." at protected position "..minetest.pos_to_string(pos))
332328
minetest.record_protection_violation(pos, placer:get_player_name())
333329
return itemstack
334330
end

technic/machines/register/recipes.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ local function register_recipe(typename, data)
4545
local recipe = {time = data.time, input = {}, output = data.output}
4646
local index = get_recipe_index(data.input)
4747
if not index then
48-
print(S("[Technic] ignored registration of garbage recipe!"))
48+
print("[Technic] ignored registration of garbage recipe!")
4949
return
5050
end
5151
for _, stack in ipairs(data.input) do
@@ -84,7 +84,7 @@ function technic.get_recipe(typename, items)
8484
end
8585
local index = get_recipe_index(items)
8686
if not index then
87-
print(S("[Technic] ignored registration of garbage recipe!"))
87+
print("[Technic] ignored registration of garbage recipe!")
8888
return
8989
end
9090
local recipe = technic.recipes[typename].recipes[index]

technic/machines/switching_station.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ minetest.register_abm({
275275

276276
if not technic.redundant_warn[poshash] then
277277
technic.redundant_warn[poshash] = true
278-
print(S("[TECHNIC] Warning: redundant switching station found near @1", minetest.pos_to_string(pos)))
278+
print("[TECHNIC] Warning: redundant switching station found near "..minetest.pos_to_string(pos))
279279
end
280280
return
281281
end

technic/tools/cans.lua

+2-10
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ function technic.register_can(d)
3636
local charge = get_can_level(itemstack)
3737
if charge == data.can_capacity then return end
3838
if minetest.is_protected(pointed_thing.under, user:get_player_name()) then
39-
minetest.log("action", S("@1 tried to take @2 at protected position @3 with a @4",
40-
user:get_player_name(),
41-
node.name,
42-
minetest.pos_to_string(pointed_thing.under),
43-
data.can_name))
39+
minetest.log("action", user:get_player_name().." tried to take "..node.name.." at protected position "..minetest.pos_to_string(pointed_thing.under).." with a "..data.can_name)
4440
return
4541
end
4642
minetest.remove_node(pointed_thing.under)
@@ -64,11 +60,7 @@ function technic.register_can(d)
6460
local charge = get_can_level(itemstack)
6561
if charge == 0 then return end
6662
if minetest.is_protected(pos, user:get_player_name()) then
67-
minetest.log("action", S("@1 tried to place @2 at protected position @3 with a @4",
68-
user:get_player_name(),
69-
data.liquid_source_name,
70-
minetest.pos_to_string(pos),
71-
data.can_name))
63+
minetest.log("action", user:get_player_name().." tried to place "..data.liquid_source_name.." at protected position "..minetest.pos_to_string(pos).." with a "..data.can_name)
7264
return
7365
end
7466
minetest.set_node(pos, {name=data.liquid_source_name})

0 commit comments

Comments
 (0)