1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-15 22:30:43 +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:
fat115
2017-08-03 15:02:56 +02:00
parent 983574c253
commit 5ca1ed261e
71 changed files with 3310 additions and 577 deletions

View File

@ -6,9 +6,12 @@
-- License (everything): WTFPL
-- Contains code from: biome_lib
-- Looked at code from: default
-- Looked at code from: default
-----------------------------------------------------------------------------------------------
-- support for i18n
local S = plantlife_i18n.gettext
abstract_dryplants.grow_juncus = function(pos)
local juncus_type = math.random(2,3)
local right_here = {x=pos.x, y=pos.y+1, z=pos.z}
@ -23,7 +26,7 @@ abstract_dryplants.grow_juncus = function(pos)
end
minetest.register_node("dryplants:juncus", {
description = "Juncus",
description = S("Juncus"),
drawtype = "plantlike",
visual_scale = math.sqrt(8),
paramtype = "light",
@ -45,8 +48,8 @@ minetest.register_node("dryplants:juncus", {
},
on_place = function(itemstack, placer, pointed_thing)
local playername = placer:get_player_name()
if minetest.is_protected(pointed_thing.above, playername) or
minetest.is_protected(pointed_thing.under, playername) then
if minetest.is_protected(pointed_thing.above, playername) or
minetest.is_protected(pointed_thing.under, playername) then
minetest.chat_send_player(playername, "Someone else owns that spot.")
return
end
@ -65,7 +68,7 @@ minetest.register_node("dryplants:juncus", {
end,
})
minetest.register_node("dryplants:juncus_02", {
description = "Juncus",
description = S("Juncus"),
drawtype = "plantlike",
visual_scale = math.sqrt(8),
paramtype = "light",
@ -92,7 +95,7 @@ minetest.register_node("dryplants:juncus_02", {
-- near water or swamp
biome_lib:register_generate_plant({
surface = {
"default:dirt_with_grass",
"default:dirt_with_grass",
--"default:desert_sand",
--"default:sand",
"stoneage:grass_with_silex",
@ -113,7 +116,7 @@ biome_lib:register_generate_plant({
-- at dunes/beach
biome_lib:register_generate_plant({
surface = {
--"default:dirt_with_grass",
--"default:dirt_with_grass",
--"default:desert_sand",
"default:sand",
--"stoneage:grass_with_silex",