mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-13 05:50:29 +02:00
switch over to native translation system
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
df_trees = {}
|
||||
|
||||
local modname = minetest.get_current_modname()
|
||||
df_trees.S = minetest.get_translator(modname)
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
|
||||
df_trees.node_sound_tree_soft_fungus_defaults = function(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
@ -8,15 +12,12 @@ df_trees.node_sound_tree_soft_fungus_defaults = function(table)
|
||||
return table
|
||||
end
|
||||
|
||||
--grab a shorthand for the filepath of the mod
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
--load companion lua files
|
||||
dofile(modpath.."/config.lua")
|
||||
dofile(modpath.."/doc.lua")
|
||||
dofile(modpath.."/aliases.lua")
|
||||
|
||||
local S, NS = dofile(modpath.."/intllib.lua")
|
||||
local S = df_trees.S
|
||||
|
||||
df_trees.register_all_stairs = function(name, override_def)
|
||||
local mod = "df_trees"
|
||||
|
Reference in New Issue
Block a user