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

@ -1,2 +1,3 @@
default
biome_lib
plantlife_i18n
biome_lib

View File

@ -10,6 +10,8 @@ abstract_molehills = {}
dofile(minetest.get_modpath("molehills").."/molehills_settings.txt")
-- support for i18n
local S = plantlife_i18n.gettext
-----------------------------------------------------------------------------------------------
-- NoDe
-----------------------------------------------------------------------------------------------
@ -22,7 +24,7 @@ local mh_cbox = {
minetest.register_node("molehills:molehill",{
drawtype = "mesh",
mesh = "molehill_molehill.obj",
description = "Mole Hill",
description = S("Mole Hill"),
inventory_image = "molehills_side.png",
tiles = { "molehills_dirt.png" },
paramtype = "light",
@ -74,5 +76,5 @@ biome_lib:register_generate_plant({
)
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
print("[Mod] "..title.." ["..version.."] ["..mname.."]"..S("Loaded..."))
-----------------------------------------------------------------------------------------------