summaryrefslogtreecommitdiff
path: root/bushes_classic
diff options
context:
space:
mode:
Diffstat (limited to 'bushes_classic')
-rw-r--r--bushes_classic/cooking.lua9
-rw-r--r--bushes_classic/init.lua9
-rw-r--r--bushes_classic/locale/es.txt43
-rw-r--r--bushes_classic/nodes.lua7
4 files changed, 63 insertions, 5 deletions
diff --git a/bushes_classic/cooking.lua b/bushes_classic/cooking.lua
index 25af7e8..0e0810a 100644
--- a/bushes_classic/cooking.lua
+++ b/bushes_classic/cooking.lua
@@ -1,4 +1,9 @@
-local S = biome_lib.intllib
+local S
+if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
-- Basket
@@ -71,7 +76,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
else
minetest.register_craftitem(":bushes:"..berry, {
- description = desc,
+ description = S(desc),
inventory_image = "bushes_"..berry..".png",
groups = {berry = 1, [berry] = 1},
on_use = minetest.item_eat(1),
diff --git a/bushes_classic/init.lua b/bushes_classic/init.lua
index 021f569..17a86a6 100644
--- a/bushes_classic/init.lua
+++ b/bushes_classic/init.lua
@@ -3,7 +3,12 @@
--
-- License: WTFPL
-local S = biome_lib.intllib
+local S
+if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
bushes_classic = {}
@@ -17,7 +22,7 @@ bushes_classic.bushes = {
}
bushes_classic.bushes_descriptions = {
- "Strawberry",
+ "Strawberry",
"Blackberry",
"Blueberry",
"Raspberry",
diff --git a/bushes_classic/locale/es.txt b/bushes_classic/locale/es.txt
new file mode 100644
index 0000000..fc74322
--- /dev/null
+++ b/bushes_classic/locale/es.txt
@@ -0,0 +1,43 @@
+# 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.
diff --git a/bushes_classic/nodes.lua b/bushes_classic/nodes.lua
index 352e2a9..e45c7e7 100644
--- a/bushes_classic/nodes.lua
+++ b/bushes_classic/nodes.lua
@@ -1,4 +1,9 @@
-local S = biome_lib.intllib
+local S
+if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
plantlife_bushes = {}