forked from mtcontrib/plantlife_modpack
global i18n : add plantlife_i18n mod
idea taken from homedecor_modpack and its homedecor_i18n all translated mods have a new dependency : plantlife_i18n translations are stored in po/pot file : one file for all mods added french translation (almost complete) transfered de/es/tr/pt translations to corresponding .po file (only for some mods, unfortunately translations are incomplete)
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
-- Blossoms and such
|
||||
|
||||
local function spawn_apple_under(pos)
|
||||
@ -12,7 +14,7 @@ local function spawn_apple_under(pos)
|
||||
end
|
||||
|
||||
minetest.register_node(":"..nature.blossom_node, {
|
||||
description = "Apple blossoms",
|
||||
description = S("Apple blossoms"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = nature.blossom_textures,
|
||||
paramtype = "light",
|
||||
|
@ -1,2 +1,3 @@
|
||||
default
|
||||
plantlife_i18n
|
||||
moretrees?
|
||||
|
@ -6,6 +6,9 @@
|
||||
local current_mod_name = minetest.get_current_modname()
|
||||
|
||||
nature = {}
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
nature.blossomqueue = {}
|
||||
nature.blossomqueue_max = 1000
|
||||
|
||||
@ -44,4 +47,4 @@ dofile(minetest.get_modpath(current_mod_name) .. "/config.lua")
|
||||
dofile(minetest.get_modpath(current_mod_name) .. "/global_function.lua")
|
||||
dofile(minetest.get_modpath(current_mod_name) .. "/blossom.lua")
|
||||
|
||||
minetest.log("info", "[Nature Classic] loaded!")
|
||||
minetest.log("info", S("[Nature Classic] loaded!"))
|
||||
|
Reference in New Issue
Block a user