Skip to content

Commit

Permalink
Remove translation strings from minetest.log output and from `print…
Browse files Browse the repository at this point in the history
…()` output

Since they are not translated anyway.
  • Loading branch information
louisroyer committed Feb 18, 2020
1 parent cd1fb19 commit c1d77c2
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 112 deletions.
5 changes: 1 addition & 4 deletions technic/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ local modpath = minetest.get_modpath("technic")
technic.modpath = modpath


-- Translation support
local S = minetest.get_translator("technic")

-- Read configuration file
dofile(modpath.."/config.lua")

Expand Down Expand Up @@ -43,6 +40,6 @@ dofile(modpath.."/tools/init.lua")
dofile(modpath.."/legacy.lua")

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

9 changes: 0 additions & 9 deletions technic/locale/technic.de.tr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Deutsche Uebersetzung des Technic Mods
# by Xanthin

## Misc
[Technic] Loaded in @1 seconds=[Technic] ist in @1 Sekunden geladen

## Items
Silicon Wafer=Siliziumscheibe
Doped Silicon Wafer=Dotierte Siliziumscheibe
Expand Down Expand Up @@ -80,7 +77,6 @@ HV=
@1 Nuclear Reactor Core=
Enables or disables technic's switching station ABM=
@1 Already Present=
[TECHNIC] Warning: redundant switching station found near @1=
Machines: timeout check=
Machines: re-enable check=
You are not allowed to edit this!=
Expand All @@ -92,9 +88,6 @@ Machines: run injector=
Tools: tree tap=
@1 is unpowered=
@1 is powered (@2% of maximum power)=
@1 tried to place @2 at protected position @3=
@1 tried to take @2 at protected position @3 with a @4=
@1 tried to place @2 at protected position @3 with a @4=

## Machine names
Power Monitor=
Expand Down Expand Up @@ -150,7 +143,6 @@ Enable Digiline=
Digiline Remote Channel
Save=
Start=
A reactor melted down at @1=
Start successful=
Error=
Restart=
Expand Down Expand Up @@ -253,4 +245,3 @@ Compressing=
Extracting=
Separating=
Freezing=
[Technic] ignored registration of garbage recipe!=
9 changes: 0 additions & 9 deletions technic/locale/technic.es.tr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Traduccion al Español del Mod Technic
# Autor: Diego Martínez <kaeza>

## Misc
[Technic] Loaded in @1 seconds=[Technic] Cargado en @1 segundos

## Items
Silicon Wafer=Oblea de Silicio
Doped Silicon Wafer=Oblea de Silicio Dopada
Expand Down Expand Up @@ -80,7 +77,6 @@ HV=
@1 Nuclear Reactor Core=
Enables or disables technic's switching station ABM=
@1 Already Present=
[TECHNIC] Warning: redundant switching station found near @1=
Machines: timeout check=
Machines: re-enable check=
You are not allowed to edit this!=
Expand All @@ -92,9 +88,6 @@ Machines: run injector=
Tools: tree tap=
@1 is unpowered=
@1 is powered (@2% of maximum power)=
@1 tried to place @2 at protected position @3=
@1 tried to take @2 at protected position @3 with a @4=
@1 tried to place @2 at protected position @3 with a @4=

## Machine names
Power Monitor=
Expand Down Expand Up @@ -148,7 +141,6 @@ Enable Digiline=
Digiline Remote Channel
Save=
Start=
A reactor melted down at @1=
Start successful=
Error=
Restart=
Expand Down Expand Up @@ -251,4 +243,3 @@ Compressing=
Extracting=
Separating=
Freezing=
[Technic] ignored registration of garbage recipe!=
9 changes: 0 additions & 9 deletions technic/locale/technic.fr.tr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Template for translations of Technic


## Misc
[Technic] Loaded in @1 seconds=[Technic] Chargement en @1 secondes

## Items
Silicon Wafer=Tranche de silicium
Doped Silicon Wafer=Tranche de silicium doppé
Expand Down Expand Up @@ -79,7 +76,6 @@ HV=haute tension
@1 Nuclear Reactor Core=Cœur de réacteur nucléaire @1
Enables or disables technic's switching station ABM=Active ou desactive la station de commutation de technic
@1 Already Present=@1 déja présent
[TECHNIC] Warning: redundant switching station found near @1=[TECHNIC] Avertissement : station de commutation redondante près de @1
Machines: timeout check=Machines : vérification de timeout
Machines: re-enable check=Machines : réactivation des vérifications
You are not allowed to edit this!=Vous n’êtes pas autorisé à modifier cela !
Expand All @@ -91,9 +87,6 @@ Machines: run injector= fonctionnement de l’injecteur
Tools: tree tap=Outils : Robinet à sève
@1 is unpowered=@1 est hors tension
@1 is powered (@2% of maximum power)=@1 est alimenté (@2 % de la puissance maximale)
@1 tried to place @2 at protected position @3=@1 a essayé de placer @2 à la position protégée @3
@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
@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


## Machine names
Expand Down Expand Up @@ -149,7 +142,6 @@ Enable Digiline=Activer Digiline
Digiline Remote Channel=Cannal Digiline distant
Save=Sauvegarder
Start=Démarrer
A reactor melted down at @1=Un réacteur a fusionné à @1
Start successuful=Démarré avec succès
Error=Erreur
Restart=Redémarrer
Expand Down Expand Up @@ -253,4 +245,3 @@ Compressing=Compression
Extracting=Extraction
Separating=Séparation
Freezing=Congélation
[Technic] ignored registration of garbage recipe!=[Technic] enregistrement d’une recette incohérente ignoré !
9 changes: 0 additions & 9 deletions technic/locale/technic.it.tr
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# textdomain: technic


## Misc
[Technic] Loaded in @1 seconds=[Technic] caricato in @1 secondi

## Items
Silicon Wafer=Wafer di silicone
Doped Silicon Wafer=Wafer di silicone dopato
Expand Down Expand Up @@ -75,7 +72,6 @@ HV=
@1 Nuclear Reactor Core=
Enables or disables technic's switching station ABM=
@1 Already Present=
[TECHNIC] Warning: redundant switching station found near @1=
Machines: timeout check=
Machines: re-enable check=
You are not allowed to edit this!=
Expand All @@ -87,9 +83,6 @@ Machines: run injector=
Tools: tree tap=
@1 is unpowered=
@1 is powered (@2% of maximum power)=
@1 tried to place @2 at protected position @3=
@1 tried to take @2 at protected position @3 with a @4=
@1 tried to place @2 at protected position @3 with a @4=

## Machine names
Power Monitor=
Expand Down Expand Up @@ -143,7 +136,6 @@ Enable Digiline=
Digiline Remote Channel
Save=
Start=
A reactor melted down at @1=
Start successful=
Error=
Restart=
Expand Down Expand Up @@ -246,4 +238,3 @@ Compressing=Compressione
Extracting=Estrazione
Separating=
Freezing=
[Technic] ignored registration of garbage recipe!=
9 changes: 0 additions & 9 deletions technic/locale/technic.pl.tr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Polskie tłumaczenie Technic mod
# by mat9117

## Misc
[Technic] Loaded in @1 seconds=[Technic] Wczytany w @1 sekund

## Items
Silicon Wafer=Płytka krzemowa
Doped Silicon Wafer=Domieszkowana płytka krzemowa
Expand Down Expand Up @@ -79,7 +76,6 @@ HV=
@1 Nuclear Reactor Core=
Enables or disables technic's switching station ABM=
@1 Already Present=
[TECHNIC] Warning: redundant switching station found near @1=
Machines: timeout check=
Machines: re-enable check=
You are not allowed to edit this!=
Expand All @@ -91,9 +87,6 @@ Machines: run injector=
Tools: tree tap=
@1 is unpowered=
@1 is powered (@2% of maximum power)=
@1 tried to place @2 at protected position @3=
@1 tried to take @2 at protected position @3 with a @4=
@1 tried to place @2 at protected position @3 with a @4=

## Machine names
@1 Alloy Furnace=@1 Piec stopowy
Expand Down Expand Up @@ -147,7 +140,6 @@ Enable Digiline=
Digiline Remote Channel
Save=
Start=
A reactor melted down at @1=
Start successful=
Error=
Restart=
Expand Down Expand Up @@ -251,4 +243,3 @@ Compressing=Kompresowanie
Extracting=Ekstrakcja
Separating=Oddzielanie
Freezing=
[Technic] ignored registration of garbage recipe!=
9 changes: 0 additions & 9 deletions technic/locale/technic.pt_BR.tr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Tradução portuguesa brasileira para technic
# By Sires

## Misc
[Technic] Loaded in @1 seconds = [Technic] Carregado em @1 segundos

## Items
Silicon Wafer=Pastilha de Silício
Doped Silicon Wafer=Pastilha de Silício Dopada
Expand Down Expand Up @@ -79,7 +76,6 @@ HV=
@1 Nuclear Reactor Core=
Enables or disables technic's switching station ABM=
@1 Already Present=
[TECHNIC] Warning: redundant switching station found near @1=
Machines: timeout check=
Machines: re-enable check=
You are not allowed to edit this!=
Expand All @@ -91,9 +87,6 @@ Machines: run injector=
Tools: tree tap=
@1 is unpowered=
@1 is powered (@2% of maximum power)=
@1 tried to place @2 at protected position @3=
@1 tried to take @2 at protected position @3 with a @4=
@1 tried to place @2 at protected position @3 with a @4=

## Machine names
Power Monitor=
Expand Down Expand Up @@ -149,7 +142,6 @@ Enable Digiline=
Digiline Remote Channel
Save=
Start=
A reactor melted down at @1=
Start successful=
Error=
Restart=
Expand Down Expand Up @@ -245,4 +237,3 @@ Compressing=Comprimindo
Extracting=Extraindo
Separating=Separando
Freezing=
[Technic] ignored registration of garbage recipe!=
9 changes: 0 additions & 9 deletions technic/locale/template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Template for translations of Technic


## Misc
[Technic] Loaded in @1 seconds=

## Items
Silicon Wafer=
Doped Silicon Wafer=
Expand Down Expand Up @@ -79,7 +76,6 @@ HV=
@1 Nuclear Reactor Core=
Enables or disables technic's switching station ABM=
@1 Already Present=
[TECHNIC] Warning: redundant switching station found near @1=
Machines: timeout check=
Machines: re-enable check=
You are not allowed to edit this!=
Expand All @@ -91,9 +87,6 @@ Machines: run injector=
Tools: tree tap=
@1 is unpowered=
@1 is powered (@2% of maximum power)=
@1 tried to place @2 at protected position @3=
@1 tried to take @2 at protected position @3 with a @4=
@1 tried to place @2 at protected position @3 with a @4=


## Machine names
Expand Down Expand Up @@ -149,7 +142,6 @@ Enable Digiline=
Digiline Remote Channel
Save=
Start=
A reactor melted down at @1=
Start successful=
Error=
Restart=
Expand Down Expand Up @@ -254,4 +246,3 @@ Compressing=
Extracting=
Separating=
Freezing=
[Technic] ignored registration of garbage recipe!=
2 changes: 1 addition & 1 deletion technic/machines/HV/nuclear_reactor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ end


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

Expand Down
8 changes: 2 additions & 6 deletions technic/machines/other/frames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ for zp = 0, 1 do
local pos = pointed_thing.above

if minetest.is_protected(pos, placer:get_player_name()) then
minetest.log("action", S("@1 tried to place @2 at protected position @3", placer:get_player_name(),
itemstack:get_name(),
minetest.pos_to_string(pos)))
minetest.log("action", placer:get_player_name().." tried to place "..itemstack:get_name().." at protected position "..minetest.pos_to_string(pos))
minetest.record_protection_violation(pos, placer:get_player_name())
return itemstack
end
Expand All @@ -326,9 +324,7 @@ for zp = 0, 1 do
on_rightclick = function(pos, node, placer, itemstack, pointed_thing)
if is_supported_node(itemstack:get_name()) then
if minetest.is_protected(pos, placer:get_player_name()) then
minetest.log("action", S("@1 tried to place @2 at protected position @3", placer:get_player_name(),
itemstack:get_name(),
minetest.pos_to_string(pos)))
minetest.log("action", placer:get_player_name().." tried to place "..itemstack:get_name().." at protected position "..minetest.pos_to_string(pos))
minetest.record_protection_violation(pos, placer:get_player_name())
return itemstack
end
Expand Down
4 changes: 2 additions & 2 deletions technic/machines/register/recipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ local function register_recipe(typename, data)
local recipe = {time = data.time, input = {}, output = data.output}
local index = get_recipe_index(data.input)
if not index then
print(S("[Technic] ignored registration of garbage recipe!"))
print("[Technic] ignored registration of garbage recipe!")
return
end
for _, stack in ipairs(data.input) do
Expand Down Expand Up @@ -84,7 +84,7 @@ function technic.get_recipe(typename, items)
end
local index = get_recipe_index(items)
if not index then
print(S("[Technic] ignored registration of garbage recipe!"))
print("[Technic] ignored registration of garbage recipe!")
return
end
local recipe = technic.recipes[typename].recipes[index]
Expand Down
2 changes: 1 addition & 1 deletion technic/machines/switching_station.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ minetest.register_abm({

if not technic.redundant_warn[poshash] then
technic.redundant_warn[poshash] = true
print(S("[TECHNIC] Warning: redundant switching station found near @1", minetest.pos_to_string(pos)))
print("[TECHNIC] Warning: redundant switching station found near "..minetest.pos_to_string(pos))
end
return
end
Expand Down
12 changes: 2 additions & 10 deletions technic/tools/cans.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ function technic.register_can(d)
local charge = get_can_level(itemstack)
if charge == data.can_capacity then return end
if minetest.is_protected(pointed_thing.under, user:get_player_name()) then
minetest.log("action", S("@1 tried to take @2 at protected position @3 with a @4",
user:get_player_name(),
node.name,
minetest.pos_to_string(pointed_thing.under),
data.can_name))
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)
return
end
minetest.remove_node(pointed_thing.under)
Expand All @@ -64,11 +60,7 @@ function technic.register_can(d)
local charge = get_can_level(itemstack)
if charge == 0 then return end
if minetest.is_protected(pos, user:get_player_name()) then
minetest.log("action", S("@1 tried to place @2 at protected position @3 with a @4",
user:get_player_name(),
data.liquid_source_name,
minetest.pos_to_string(pos),
data.can_name))
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)
return
end
minetest.set_node(pos, {name=data.liquid_source_name})
Expand Down
Loading

0 comments on commit c1d77c2

Please sign in to comment.