mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-06-28 14:16:11 +02:00
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,6 @@
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'vines:rope_block',
|
||||
recipe = vines.recipes['rope_block']
|
||||
@ -9,6 +12,6 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craftitem("vines:vines", {
|
||||
description = "Vines",
|
||||
description = S("Vines"),
|
||||
inventory_image = "vines_item.png",
|
||||
})
|
||||
|
@ -1,3 +1,4 @@
|
||||
default
|
||||
biome_lib
|
||||
plantlife_i18n
|
||||
moretrees?
|
||||
|
@ -1,3 +1,6 @@
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
vines.register_vine = function( name, defs, biome )
|
||||
local groups = { vines=1, snappy=3, flammable=2 }
|
||||
|
||||
@ -61,7 +64,7 @@ vines.register_vine = function( name, defs, biome )
|
||||
})
|
||||
|
||||
minetest.register_node( vine_name_middle, {
|
||||
description = "Matured "..defs.description,
|
||||
description = S("Matured").." "..defs.description,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
drop = "",
|
||||
|
@ -3,6 +3,9 @@ vines = {
|
||||
recipes = {}
|
||||
}
|
||||
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
dofile( minetest.get_modpath( vines.name ) .. "/functions.lua" )
|
||||
dofile( minetest.get_modpath( vines.name ) .. "/aliases.lua" )
|
||||
dofile( minetest.get_modpath( vines.name ) .. "/recipes.lua" )
|
||||
@ -11,4 +14,4 @@ dofile( minetest.get_modpath( vines.name ) .. "/nodes.lua" )
|
||||
dofile( minetest.get_modpath( vines.name ) .. "/shear.lua" )
|
||||
dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" )
|
||||
|
||||
print("[Vines] Loaded!")
|
||||
print(S("[Vines] Loaded!"))
|
||||
|
@ -1,5 +1,8 @@
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
minetest.register_node("vines:rope_block", {
|
||||
description = "Rope",
|
||||
description = S("Rope"),
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
tiles = {
|
||||
@ -30,7 +33,7 @@ minetest.register_node("vines:rope_block", {
|
||||
})
|
||||
|
||||
minetest.register_node("vines:rope", {
|
||||
description = "Rope",
|
||||
description = S("Rope"),
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
sunlight_propagates = true,
|
||||
@ -47,7 +50,7 @@ minetest.register_node("vines:rope", {
|
||||
})
|
||||
|
||||
minetest.register_node("vines:rope_end", {
|
||||
description = "Rope",
|
||||
description = S("Rope"),
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
sunlight_propagates = true,
|
||||
|
@ -1,5 +1,8 @@
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
minetest.register_tool("vines:shears", {
|
||||
description = "Shears",
|
||||
description = S("Shears"),
|
||||
inventory_image = "vines_shears.png",
|
||||
wield_image = "vines_shears.png",
|
||||
stack_max = 1,
|
||||
|
@ -1,5 +1,8 @@
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
vines.register_vine( 'root', {
|
||||
description = "Roots",
|
||||
description = S("Roots"),
|
||||
average_length = 9,
|
||||
},{
|
||||
choose_random_wall = true,
|
||||
@ -17,7 +20,7 @@ vines.register_vine( 'root', {
|
||||
})
|
||||
|
||||
vines.register_vine( 'vine', {
|
||||
description = "Vines",
|
||||
description = S("Vines"),
|
||||
average_length = 5,
|
||||
},{
|
||||
choose_random_wall = true,
|
||||
@ -38,7 +41,7 @@ vines.register_vine( 'vine', {
|
||||
})
|
||||
|
||||
vines.register_vine( 'side', {
|
||||
description = "Vines",
|
||||
description = S("Vines"),
|
||||
average_length = 6,
|
||||
},{
|
||||
choose_random_wall = true,
|
||||
@ -59,7 +62,7 @@ vines.register_vine( 'side', {
|
||||
})
|
||||
|
||||
vines.register_vine( "jungle", {
|
||||
description = "Jungle Vines",
|
||||
description = S("Jungle Vines"),
|
||||
average_length = 7,
|
||||
},{
|
||||
choose_random_wall = true,
|
||||
@ -86,7 +89,7 @@ vines.register_vine( "jungle", {
|
||||
})
|
||||
|
||||
vines.register_vine( 'willow', {
|
||||
description = "Willow Vines",
|
||||
description = S("Willow Vines"),
|
||||
average_length = 9,
|
||||
},{
|
||||
choose_random_wall = true,
|
||||
|
Reference in New Issue
Block a user