Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@ pip-log.txt
#gedit backup files
*~

.idea/
5 changes: 2 additions & 3 deletions concrete/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
local technic = rawget(_G, "technic") or {}
technic.concrete_posts = {}

-- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
local S = minetest.get_translator("concrete")

for i = 0, 31 do
minetest.register_alias("technic:concrete_post"..i,
Expand Down Expand Up @@ -56,7 +55,7 @@ minetest.register_node(":technic:blast_resistant_concrete", {

if minetest.get_modpath("moreblocks") then
stairsplus:register_all("technic","blast_resistant_concrete","technic:blast_resistant_concrete",{
description = "Blast-resistant Concrete",
description = S("Blast-resistant Concrete"),
tiles = {"technic_blast_resistant_concrete_block.png",},
groups = {cracky=1, level=3, concrete=1},
sounds = default.node_sound_stone_defaults(),
Expand Down
5 changes: 5 additions & 0 deletions concrete/locale/concrete.ru.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# textdomain: concrete
Blast-resistant Concrete Block=Взрывостойкий бетонный блок
Blast-resistant Concrete=Взрывостойкий бетон
Concrete Post Platform=Бетонная платформа для столбов
Concrete Post=Бетонный столб
15 changes: 9 additions & 6 deletions concrete/locale/template.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# technic_concrete translation template
# textdomain: concrete
Blast-resistant Concrete Block=
Blast-resistant Concrete=
Concrete Post Platform=
Concrete Post=

Rebar =
Concrete Block =
Blast-resistant Concrete Block =
Concrete Post Platform =
Concrete Post =

##### not used anymore #####

# technic_concrete translation template
Rebar =
3 changes: 1 addition & 2 deletions extranodes/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-- Minetest 0.4.6 mod: extranodes
-- namespace: technic
-- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
local S = minetest.get_translator("extranodes")

if minetest.get_modpath("moreblocks") then

Expand Down
13 changes: 13 additions & 0 deletions extranodes/locale/extranodes.ru.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# textdomain: extranodes

Marble=Мрамор
Marble Bricks=Мраморные кирпичи
Granite=Гранит
Granite Bricks=Гранитные кирпичи
Concrete=Конкретный
Zinc Block=Цинковый блок
Cast Iron Block=Чугунный блок
Carbon Steel Block=Блок из углеродистой стали
Stainless Steel Block=Блок из нержавеющей стали
Insulator/cable clip=Изолятор/зажим для кабеля
Steel strut with insulator/cable clip=Стальная стойка с изолятором/кабельным зажимом
21 changes: 16 additions & 5 deletions extranodes/locale/template.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# technic_extranodes translation template
# textdomain: extranodes
Marble=
Marble Bricks=
Granite=
Granite Bricks=
Concrete=
Zinc Block=
Cast Iron Block=
Carbon Steel Block=
Stainless Steel Block=
Insulator/cable clip=
Steel strut with insulator/cable clip=

Marble =
Marble Bricks =
Granite =
Concrete =

##### not used anymore #####

# technic_extranodes translation template
Marble =
31 changes: 0 additions & 31 deletions technic/init.lua
Original file line number Diff line number Diff line change
@@ -1,39 +1,12 @@
-- namespace: technic
-- (c) 2012-2013 by RealBadAngel <[email protected]>

if not minetest.get_translator then
error("[technic] Your Minetest version is no longer supported."
.. " (version < 5.0.0)")
end

local load_start = os.clock()

technic = rawget(_G, "technic") or {}
technic.creative_mode = minetest.settings:get_bool("creative_mode")


local modpath = minetest.get_modpath("technic")
technic.modpath = modpath


-- Boilerplate to support intllib
if rawget(_G, "intllib") then
technic.getter = intllib.Getter()
else
-- Intllib copypasta: TODO replace with the client-side translation API
technic.getter = function(s,a,...)
if a==nil then return s end
a={a,...}
return s:gsub("(@?)@(%(?)(%d+)(%)?)", function(e,o,n,c)
if e==""then
return a[tonumber(n)]..(o==""and c or"")
end
return "@"..o..n..c
end)
end
end
local S = technic.getter

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

Expand Down Expand Up @@ -61,7 +34,3 @@ dofile(modpath.."/tools/init.lua")
-- Aliases for legacy node/item names
dofile(modpath.."/legacy.lua")

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

Comment on lines -64 to -67
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change. Please limit this PR to translating only.

6 changes: 3 additions & 3 deletions technic/items.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local S = technic.getter
local S = minetest.get_translator("technic")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please be so nice to use core instead of minetest for newly added function calls?


minetest.register_craftitem("technic:silicon_wafer", {
description = S("Silicon Wafer"),
Expand Down Expand Up @@ -146,7 +146,7 @@ for p = 0, 35 do
local block = "technic:uranium"..psuffix.."_block"
local ov = p == 7 and minetest.override_item or nil;
(ov or minetest.register_craftitem)(ingot, {
description = string.format(S("%.1f%%-Fissile Uranium Ingot"), p/10),
description = S("@1%-Fissile Uranium Ingot", p/10),
inventory_image = "technic_uranium_ingot.png",
groups = {uranium_ingot=1, not_in_creative_inventory=nici},
});
Expand Down Expand Up @@ -183,7 +183,7 @@ for p = 0, 35 do
-- a 3.5%-fissile uranium block.
local radioactivity = math.floor(math.sqrt((1+5.55*p/35) * 18 / (1+5.55*7/35)) + 0.5);
(ov or minetest.register_node)(block, {
description = string.format(S("%.1f%%-Fissile Uranium Block"), p/10),
description = S("@1-Fissile Uranium Block", string.format("%.1f%%", p/10)),
tiles = {"technic_uranium_block.png"},
is_ground_content = true,
groups = {uranium_block=1, not_in_creative_inventory=nici,
Expand Down
Loading