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,11 +6,13 @@
-- Contains code from: biome_lib
-- Looked at code from: default, flowers, trees
-- Dependencies: biome_lib
-- Supports: dryplants, stoneage, sumpf
-- Supports: dryplants, stoneage, sumpf
-----------------------------------------------------------------------------------------------
assert(abstract_ferns.config.enable_horsetails == true)
-- support for i18n
local S = plantlife_i18n.gettext
-----------------------------------------------------------------------------------------------
-- HORSETAIL (EQUISETUM)
-----------------------------------------------------------------------------------------------
@ -33,13 +35,13 @@ local function create_nodes()
local node_drop = "ferns:horsetail_04"
if i == 1 then
node_desc = "Young Horsetail (Equisetum)"
node_desc = S("Young Horsetail (Equisetum)")
node_on_use = minetest.item_eat(1) -- young ones edible https://en.wikipedia.org/wiki/Equisetum
node_drop = node_name
elseif i == 4 then
node_desc = "Horsetail (Equisetum)"
node_desc = S("Horsetail (Equisetum)")
else
node_desc = "Horsetail (Equisetum) ".. string.format("%02d", i)
node_desc = S("Horsetail (Equisetum)").." ".. string.format("%02d", i)
end
node_names[i] = node_name
@ -125,8 +127,8 @@ if abstract_ferns.config.enable_horsetails_on_grass == true then
near_nodes_count = 1,
plantlife_limit = -0.9,
humidity_min = 0.4,
temp_max = -0.5, -- 55 <EFBFBD>C
temp_min = 0.53, -- 0 <EFBFBD>C, dies back in winter
temp_max = -0.5, -- 55 °C
temp_min = 0.53, -- 0 °C, dies back in winter
--random_facedir = { 0, 179 },
},
node_names
@ -147,8 +149,8 @@ if abstract_ferns.config.enable_horsetails_on_stones == true then
min_elevation = 1, -- above sea level
plantlife_limit = -0.9,
humidity_min = 0.4,
temp_max = -0.5, -- 55 <EFBFBD>C
temp_min = 0.53, -- 0 <EFBFBD>C, dies back in winter
temp_max = -0.5, -- 55 °C
temp_min = 0.53, -- 0 °C, dies back in winter
--random_facedir = { 0, 179 },
},
node_names