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,9 +1,5 @@
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
-- Basket
|
||||
|
||||
@ -32,10 +28,9 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
for i, berry in ipairs(bushes_classic.bushes) do
|
||||
local desc = bushes_classic.bushes_descriptions[i]
|
||||
|
||||
minetest.register_craftitem(":bushes:"..berry.."_pie_raw", {
|
||||
description = S("Raw "..desc.." pie"),
|
||||
description = bushes_classic.bushes_descriptions[i][2],
|
||||
inventory_image = "bushes_"..berry.."_pie_raw.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
})
|
||||
@ -49,7 +44,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
|
||||
if berry == "strawberry" and minetest.registered_nodes["farming_plus:strawberry"] then
|
||||
minetest.register_craftitem(":farming_plus:strawberry_item", {
|
||||
description = S("Strawberry"),
|
||||
description = bushes_classic.bushes_descriptions[i][1],
|
||||
inventory_image = "bushes_"..berry..".png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {berry=1, strawberry=1}
|
||||
@ -58,7 +53,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
|
||||
elseif berry == "blueberry" and minetest.registered_items["farming:blueberries"] then
|
||||
minetest.register_craftitem(":farming:blueberries", {
|
||||
description = S("Blueberry"),
|
||||
description = bushes_classic.bushes_descriptions[i][1],
|
||||
inventory_image = "bushes_"..berry..".png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {berry=1, blueberry=1}
|
||||
@ -67,7 +62,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
|
||||
elseif berry == "raspberry" and minetest.registered_items["farming:raspberries"] then
|
||||
minetest.register_craftitem(":farming:raspberries", {
|
||||
description = S("Raspberry"),
|
||||
description = bushes_classic.bushes_descriptions[i][1],
|
||||
inventory_image = "bushes_"..berry..".png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {berry=1, raspberry=1}
|
||||
@ -76,7 +71,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
|
||||
else
|
||||
minetest.register_craftitem(":bushes:"..berry, {
|
||||
description = S(desc),
|
||||
description = bushes_classic.bushes_descriptions[i][1],
|
||||
inventory_image = "bushes_"..berry..".png",
|
||||
groups = {berry = 1, [berry] = 1},
|
||||
on_use = minetest.item_eat(1),
|
||||
@ -95,7 +90,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
-- Cooked pie
|
||||
|
||||
minetest.register_craftitem(":bushes:"..berry.."_pie_cooked", {
|
||||
description = S("Cooked "..desc.." pie"),
|
||||
description = bushes_classic.bushes_descriptions[i][3],
|
||||
inventory_image = "bushes_"..berry.."_pie_cooked.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
})
|
||||
@ -110,7 +105,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
-- slice of pie
|
||||
|
||||
minetest.register_craftitem(":bushes:"..berry.."_pie_slice", {
|
||||
description = S("Slice of "..desc.." pie"),
|
||||
description = bushes_classic.bushes_descriptions[i][4],
|
||||
inventory_image = "bushes_"..berry.."_pie_slice.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
@ -141,5 +136,3 @@ minetest.register_craft({
|
||||
{ "group:berry", "group:berry", "group:berry" },
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
biome_lib
|
||||
plantlife_i18n
|
||||
farming?
|
||||
farming_plus?
|
||||
|
@ -3,17 +3,13 @@
|
||||
--
|
||||
-- License: WTFPL
|
||||
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
||||
bushes_classic = {}
|
||||
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
bushes_classic.bushes = {
|
||||
"strawberry",
|
||||
"strawberry",
|
||||
"blackberry",
|
||||
"blueberry",
|
||||
"raspberry",
|
||||
@ -22,12 +18,12 @@ bushes_classic.bushes = {
|
||||
}
|
||||
|
||||
bushes_classic.bushes_descriptions = {
|
||||
"Strawberry",
|
||||
"Blackberry",
|
||||
"Blueberry",
|
||||
"Raspberry",
|
||||
"Gooseberry",
|
||||
"Mixed Berry"
|
||||
{S("Strawberry"), S("Raw Strawberry pie"), S("Cooked Strawberry pie"), S("Slice of Strawberry pie"), S("Basket with Strawberry pies"), S("Strawberry Bush")},
|
||||
{S("Blackberry"), S("Raw Blackberry pie"), S("Cooked Blackberry pie"), S("Slice of Blackberry pie"), S("Basket with Blackberry pies"), S("Blackberry Bush")},
|
||||
{S("Blueberry"), S("Raw Blueberry pie"), S("Cooked Blueberry pie"), S("Slice of Blueberry pie"), S("Basket with Blueberry pies"), S("Blueberry Bush")},
|
||||
{S("Raspberry"), S("Raw Raspberry pie"), S("Cooked Raspberry pie"), S("Slice of Raspberry pie"), S("Basket with Raspberry pies"), S("Raspberry Bush")},
|
||||
{S("Gooseberry"), S("Raw Gooseberry pie"), S("Cooked Gooseberry pie"), S("Slice of Gooseberry pie"), S("Basket with Gooseberry pies"), S("Gooseberry Bush")},
|
||||
{S("Mixed Berry"), S("Raw Mixed Berry pie"), S("Cooked Mixed Berry pie"), S("Slice of Mixed Berry pie"), S("Basket with Mixed Berry pies"), S("Currently fruitless Bush")}
|
||||
}
|
||||
|
||||
bushes_classic.spawn_list = {}
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Translation by Xanthin
|
||||
|
||||
Strawberry = Erdbeere
|
||||
Blackberry = Brombeere
|
||||
Blueberry = Blaubeere
|
||||
Raspberry = Himbeere
|
||||
Gooseberry = Stachelbeere
|
||||
Mixed Berry = Beerenmix
|
||||
Basket with Strawberry Pies = Korb mit Erdbeertorten
|
||||
Basket with Blackberry Pies = Korb mit Brombeertorten
|
||||
Basket with Blueberry Pies = Korb mit Blaubeertorten
|
||||
Basket with Raspberry Pies = Korb mit Himbeertorten
|
||||
Basket with Gooseberry Pies = Korb mit Stachelbeertorten
|
||||
Basket with Mixed Berry Pies = Korb mit Beerenmixtorten
|
||||
currently fruitless = zur Zeit fruechteloser
|
||||
Strawberry Bush = Erdbeerbusch
|
||||
Blackberry Bush = Brombeerbusch
|
||||
Blueberry Bush = Blaubeerbusch
|
||||
Raspberry Bush = Himbeerbusch
|
||||
Gooseberry Bush = Stachelbeerbusch
|
||||
Mixed Berry Bush = Beerenmixbusch
|
||||
Basket = Korb
|
||||
Sugar = Zucker
|
||||
Raw Strawberry pie = Rohe Erdbeertorte
|
||||
Raw Blackberry pie = Rohe Brombeertorte
|
||||
Raw Blueberry pie = Rohe Blaubeertorte
|
||||
Raw Raspberry pie = Rohe Himbeertorte
|
||||
Raw Gooseberry pie = Rohe Stachelbeertorte
|
||||
Raw Mixed Berry pie = Rohe Beerenmixtorte
|
||||
Cooked Strawberry pie = Erdbeertorte
|
||||
Cooked Blackberry pie = Brombeertorte
|
||||
Cooked Blueberry pie = Blaubeertorte
|
||||
Cooked Raspberry pie = Himbeertorte
|
||||
Cooked Gooseberry pie = Stachelbeertorte
|
||||
Cooked Mixed Berry pie = Beerenmixtorte
|
||||
Slice of Strawberry pie = Erdbeertortenstueck
|
||||
Slice of Blackberry pie = Brombeertortenstueck
|
||||
Slice of Blueberry pie = Blaubeertortenstueck
|
||||
Slice of Raspberry pie = Himbeertortenstueck
|
||||
Slice of Gooseberry pie = Stachelbeertortenstueck
|
||||
Slice of Mixed Berry pie = Beerenmixtortenstueck
|
||||
|
||||
[Bushes] Loaded. = [Bushes] Geladen.
|
@ -1,43 +0,0 @@
|
||||
# Traducido por Carlos Barraza
|
||||
|
||||
Strawberry = Frutilla
|
||||
Blackberry = Mora
|
||||
Blueberry = Arándano
|
||||
Raspberry = Frambuesa
|
||||
Gooseberry = Grosella
|
||||
Mixed Berry = Mezcla de Baya
|
||||
Basket with Strawberry Pies = Cesta con Pasteles de Frutilla
|
||||
Basket with Blackberry Pies = Cesta con Pasteles de Mora
|
||||
Basket with Blueberry Pies = Cesta con Pasteles de Arándano
|
||||
Basket with Raspberry Pies = Cesta con Pasteles de Frambuesa
|
||||
Basket with Gooseberry Pies = Cesta con Pasteles de Grosella
|
||||
Basket with Mixed Berry Pies = Cesta con Pasteles de Mezcla de Baya
|
||||
currently fruitless = Actualmente infructuoso
|
||||
Strawberry Bush = Arbusto de Frutilla
|
||||
Blackberry Bush = Arbusto de Mora
|
||||
Blueberry Bush = Arbusto de Arándano
|
||||
Raspberry Bush = Arbusto de Frambuesa
|
||||
Gooseberry Bush = Arbusto de Grosella
|
||||
Mixed Berry Bush = Arbusto de Mezcla de Baya
|
||||
Basket = Cesta
|
||||
Sugar = Azúcar
|
||||
Raw Strawberry pie = Pastel de Frutilla Crudo
|
||||
Raw Blackberry pie = Pastel de Mora Crudo
|
||||
Raw Blueberry pie = Pastel de Arándano Crudo
|
||||
Raw Raspberry pie = Pastel de Frambuesa Crudo
|
||||
Raw Gooseberry pie = Pastel de Grosella Crudo
|
||||
Raw Mixed Berry pie = Pastel de Mezcla de Bayas Cruda
|
||||
Cooked Strawberry pie = Pastel de Frutilla Cocido
|
||||
Cooked Blackberry pie = Pastel de Mora Cocido
|
||||
Cooked Blueberry pie = Pastel de Arándano Cocido
|
||||
Cooked Raspberry pie = Pastel de Frambuesa Cocido
|
||||
Cooked Gooseberry pie = Pastel de Grosella Cocido
|
||||
Cooked Mixed Berry pie = Pastel de Mezcla de Bayas Cocido
|
||||
Slice of Strawberry pie = Rebanada de Pastel de Frutilla
|
||||
Slice of Blackberry pie = Rebanada de Pastel de Mora
|
||||
Slice of Blueberry pie = Rebanada de Pastel de Arándano
|
||||
Slice of Raspberry pie = Rebanada de Pastel de Frambuesa
|
||||
Slice of Gooseberry pie = Rebanada de Pastel de Grosella
|
||||
Slice of Mixed Berry pie = Rebanada de Pastel de Mezcla de Bayas
|
||||
|
||||
[Bushes] Loaded. = [Arbustos] Cargado.
|
@ -1,43 +0,0 @@
|
||||
# Template
|
||||
|
||||
Strawberry = Fraise
|
||||
Blackberry = Mûre
|
||||
Blueberry = Myrtille
|
||||
Raspberry = Framboise
|
||||
Gooseberry = Groseille
|
||||
Mixed Berry = Mélange de baies
|
||||
Basket with Strawberry Pies = Panier de tartes aux fraises
|
||||
Basket with Blackberry Pies = Panier de tartes aux mûres
|
||||
Basket with Blueberry Pies = Panier de tartes aux myrtilles
|
||||
Basket with Raspberry Pies = Panier de tartes aux framboises
|
||||
Basket with Gooseberry Pies = Panier de tartes aux groseilles
|
||||
Basket with Mixed Berry Pies = Panier de tartes au mélange de baies
|
||||
currently fruitless = actuellement sans fruit
|
||||
Strawberry Bush = Buisson à fraise
|
||||
Blackberry Bush = Buisson à mûre
|
||||
Blueberry Bush = Buisson à myrtille
|
||||
Raspberry Bush = Buisson à framboise
|
||||
Gooseberry Bush = Buisson à groseille
|
||||
Mixed Berry Bush = Buisson de baies mélangées
|
||||
Basket = Panier
|
||||
Sugar = Sucre
|
||||
Raw Strawberry pie = Tarte crue aux fraises
|
||||
Raw Blackberry pie = Tarte crue aux mûres
|
||||
Raw Blueberry pie = Tarte crue aux myrtilles
|
||||
Raw Raspberry pie = Tarte crue aux framboises
|
||||
Raw Gooseberry pie = Tarte crue aux groseilles
|
||||
Raw Mixed Berry pie = Tarte crue au mélange de baies
|
||||
Cooked Strawberry pie = Tarte cuite aux fraises
|
||||
Cooked Blackberry pie = Tarte cuite aux mûres
|
||||
Cooked Blueberry pie = Tarte cuite aux myrtilles
|
||||
Cooked Raspberry pie = Tarte cuite aux framboises
|
||||
Cooked Gooseberry pie = Tarte cuite aux groseilles
|
||||
Cooked Mixed Berry pie = Tarte cuite au mélange de baies
|
||||
Slice of Strawberry pie = Part de tarte aux fraises
|
||||
Slice of Blackberry pie = Part de tarte aux mûres
|
||||
Slice of Blueberry pie = Part de tarte aux myrtilles
|
||||
Slice of Raspberry pie = Part de tarts aux framboises
|
||||
Slice of Gooseberry pie = Part de tarte aux groseilles
|
||||
Slice of Mixed Berry pie = Part de tarte au mélange de baies
|
||||
|
||||
[Bushes] Loaded. = [Buissons] Chargés.
|
@ -1,43 +0,0 @@
|
||||
# Template
|
||||
|
||||
Strawberry =
|
||||
Blackberry =
|
||||
Blueberry =
|
||||
Raspberry =
|
||||
Gooseberry =
|
||||
Mixed Berry =
|
||||
Basket with Strawberry Pies =
|
||||
Basket with Blackberry Pies =
|
||||
Basket with Blueberry Pies =
|
||||
Basket with Raspberry Pies =
|
||||
Basket with Gooseberry Pies =
|
||||
Basket with Mixed Berry Pies =
|
||||
currently fruitless =
|
||||
Strawberry Bush =
|
||||
Blackberry Bush =
|
||||
Blueberry Bush =
|
||||
Raspberry Bush =
|
||||
Gooseberry Bush =
|
||||
Mixed Berry Bush =
|
||||
Basket =
|
||||
Sugar =
|
||||
Raw Strawberry pie =
|
||||
Raw Blackberry pie =
|
||||
Raw Blueberry pie =
|
||||
Raw Raspberry pie =
|
||||
Raw Gooseberry pie =
|
||||
Raw Mixed Berry pie =
|
||||
Cooked Strawberry pie =
|
||||
Cooked Blackberry pie =
|
||||
Cooked Blueberry pie =
|
||||
Cooked Raspberry pie =
|
||||
Cooked Gooseberry pie =
|
||||
Cooked Mixed Berry pie =
|
||||
Slice of Strawberry pie =
|
||||
Slice of Blackberry pie =
|
||||
Slice of Blueberry pie =
|
||||
Slice of Raspberry pie =
|
||||
Slice of Gooseberry pie =
|
||||
Slice of Mixed Berry pie =
|
||||
|
||||
[Bushes] Loaded. =
|
@ -1,44 +0,0 @@
|
||||
# Turkish translation
|
||||
# mahmutelmas06@hotmail.com
|
||||
|
||||
Strawberry = Çilek
|
||||
Blackberry = Böğürtlen
|
||||
Blueberry = Yaban mersini
|
||||
Raspberry = Ahududu
|
||||
Gooseberry = Bektaşi üzümü
|
||||
Mixed Berry = Dut
|
||||
Basket with Strawberry Pies = Çilekli pasta sepeti
|
||||
Basket with Blackberry Pies = Böğürtlenli pasta sepeti
|
||||
Basket with Blueberry Pies = Yaban mersini pastalı sepet
|
||||
Basket with Raspberry Pies = Ahududulu pasta sepeti
|
||||
Basket with Gooseberry Pies = Bektaşi üzümlü pasta sepeti
|
||||
Basket with Mixed Berry Pies = Dutlu pasta sepeti
|
||||
currently fruitless = şu anda meyvesiz
|
||||
Strawberry Bush = Çilek fidanı
|
||||
Blackberry Bush = Böğürtlen fidanı
|
||||
Blueberry Bush = Yaban mersini fidanı
|
||||
Raspberry Bush = Ahududu fidanı
|
||||
Gooseberry Bush = Bektaşi üzümü fidanı
|
||||
Mixed Berry Bush = Dut fidanı
|
||||
Basket = Sepet
|
||||
Sugar = Şeker
|
||||
Raw Strawberry pie = Çilekli çiğ pasta
|
||||
Raw Blackberry pie = Böğürtlenli çiğ pasta
|
||||
Raw Blueberry pie = Yaban mersinli çiğ pasta
|
||||
Raw Raspberry pie = Ahududulu çiğ pasta
|
||||
Raw Gooseberry pie = Bektaşi üzümlü çiğ pasta
|
||||
Raw Mixed Berry pie = Dutlu çiğ pasta
|
||||
Cooked Strawberry pie = Pişmiş çilekli pasta
|
||||
Cooked Blackberry pie = Pişmiş böğürtlenli pasta
|
||||
Cooked Blueberry pie = Pişmiş yaban mersinli pasta
|
||||
Cooked Raspberry pie = Pişmiş ahududulu pasta
|
||||
Cooked Gooseberry pie = Pişmiş bektaşi üzümlü pasta
|
||||
Cooked Mixed Berry pie = Pişmiş dutlu pasta
|
||||
Slice of Strawberry pie = Çilekli pasta dilimi
|
||||
Slice of Blackberry pie = Böğürtlenli pasta dilimi
|
||||
Slice of Blueberry pie = Yaban mersinli pasta dilimi
|
||||
Slice of Raspberry pie = Ahududulu pasta dilimi
|
||||
Slice of Gooseberry pie = Bektaşi üzümlü pasta dilimi
|
||||
Slice of Mixed Berry pie = Dutlu pasta dilimi
|
||||
|
||||
[Bushes] Loaded. = [Bushes] yüklendi.
|
@ -1,9 +1,5 @@
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
-- support for i18n
|
||||
local S = plantlife_i18n.gettext
|
||||
|
||||
plantlife_bushes = {}
|
||||
|
||||
@ -16,7 +12,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||
-- find out which bush type we are dealing with
|
||||
local bush_name = ""
|
||||
local can_harvest = false
|
||||
|
||||
|
||||
if oldnode.name == "bushes:fruitless_bush" then
|
||||
-- this bush has not grown fruits yet (but will eventually)
|
||||
bush_name = oldmetadata.fields.bush_type
|
||||
@ -151,10 +147,8 @@ minetest.register_abm({
|
||||
|
||||
for i, bush_name in ipairs(bushes_classic.bushes) do
|
||||
|
||||
local desc = bushes_classic.bushes_descriptions[i]
|
||||
|
||||
minetest.register_node(":bushes:basket_"..bush_name, {
|
||||
description = S("Basket with "..desc.." Pies"),
|
||||
description = bushes_classic.bushes_descriptions[i][5],
|
||||
drawtype = "mesh",
|
||||
mesh = "bushes_basket_full.obj",
|
||||
tiles = {
|
||||
@ -172,7 +166,6 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
|
||||
local groups = {snappy = 3, bush = 1, flammable = 2, attached_node=1}
|
||||
if bush_name == "mixed_berry" then
|
||||
bush_name = "fruitless";
|
||||
desc = S("currently fruitless");
|
||||
texture_top = "bushes_fruitless_bush_top.png"
|
||||
texture_bottom = "bushes_fruitless_bush_bottom.png"
|
||||
groups.not_in_creative_inventory = 1
|
||||
@ -182,7 +175,7 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
|
||||
end
|
||||
|
||||
minetest.register_node(":bushes:" .. bush_name .. "_bush", {
|
||||
description = S(desc.." Bush"),
|
||||
description = bushes_classic.bushes_descriptions[i][6],
|
||||
drawtype = "mesh",
|
||||
mesh = "bushes_bush.obj",
|
||||
tiles = {"bushes_bush_"..bush_name..".png"},
|
||||
@ -215,5 +208,3 @@ minetest.register_node(":bushes:basket_empty", {
|
||||
paramtype2 = "facedir",
|
||||
groups = { dig_immediate = 3 },
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user