New translation system, part 4: Misc/Player
parent
0d6610dcee
commit
0cc038c545
|
@ -1,11 +1,6 @@
|
|||
local minecraftaliases = true
|
||||
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
|
||||
end
|
||||
local S = minetest.get_translator("mcl_commands")
|
||||
|
||||
local function handle_kill_command(suspect, victim)
|
||||
if minetest.settings:get_bool("enable_damage") == false then
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_privs")
|
||||
|
||||
minetest.register_privilege("maphack", {
|
||||
description = "Can place and use advanced blocks like mob spawners, command blocks and barriers.",
|
||||
description = S("Can place and use advanced blocks like mob spawners, command blocks and barriers."),
|
||||
})
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_wip")
|
||||
|
||||
local wip_items = {
|
||||
"mcl_fishing:fishing_rod",
|
||||
"mcl_maps:empty_map",
|
||||
|
@ -27,7 +29,7 @@ for i=1,#wip_items do
|
|||
if new_description == "" then
|
||||
new_description = wip_items[i]
|
||||
end
|
||||
new_description = new_description .. "\n"..core.colorize("#FF0000", "(WIP)")
|
||||
new_description = new_description .. "\n"..core.colorize("#FF0000", S("(WIP)"))
|
||||
new_groups.not_in_craft_guide = 1
|
||||
minetest.override_item(wip_items[i], { description = new_description, groups = new_groups })
|
||||
end
|
||||
|
@ -39,7 +41,7 @@ for i=1,#experimental_items do
|
|||
break
|
||||
end
|
||||
local new_description = def.description
|
||||
new_description = new_description .. "\n"..core.colorize("#FFFF00", "(Temporary)")
|
||||
new_description = new_description .. "\n"..core.colorize("#FFFF00", S("(Temporary)"))
|
||||
minetest.override_item(experimental_items[i], { description = new_description })
|
||||
end
|
||||
|
||||
|
|
|
@ -6,10 +6,7 @@ mcl_skins = {
|
|||
skin_count = 0, -- counter of _custom_ skins (all skins except character.png)
|
||||
}
|
||||
|
||||
|
||||
-- Load support for intllib.
|
||||
local S, NS = dofile(mcl_skins.modpath .. "/intllib.lua")
|
||||
|
||||
local S = minetest.get_translator("mcl_skins")
|
||||
|
||||
-- load skin list and metadata
|
||||
local id, f, data, skin = 0
|
||||
|
|
Loading…
Reference in New Issue