Add support for MT 5 game translation (rebasing ) (#2466)

rebased #2368
This commit is contained in:
Yves Quemener
2019-09-11 02:09:51 +09:00
committed by sfan5
parent d99a176b69
commit bb9279ccb8
43 changed files with 632 additions and 433 deletions

View File

@ -1,8 +1,14 @@
-- map/init.lua
-- Mod global namespace
map = {}
-- Load support for MT game translation.
local S = minetest.get_translator("map")
-- Cache creative mode setting
local creative_mode_cache = minetest.settings:get_bool("creative_mode")
@ -49,7 +55,7 @@ minetest.after(5.3, cyclic_update)
-- Mapping kit item
minetest.register_craftitem("map:mapping_kit", {
description = "Mapping Kit\nUse with 'Minimap' key",
description = S("Mapping Kit\nUse with 'Minimap' key"),
inventory_image = "map_mapping_kit.png",
stack_max = 1,
groups = {flammable = 3},