From 217717559376e09c5384f7431533c3b423ea8040 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 16 Mar 2017 13:08:10 -0600 Subject: [PATCH] fix internationalization --- plants/cave_wheat.lua | 4 ++++ plants/dimple_cup.lua | 4 ++++ plants/pig_tail.lua | 4 ++++ plants/plump_helmet.lua | 4 ++++ plants/quarry_bush.lua | 4 ++++ plants/sweet_pod.lua | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/plants/cave_wheat.lua b/plants/cave_wheat.lua index a509b8f..38cbd87 100644 --- a/plants/cave_wheat.lua +++ b/plants/cave_wheat.lua @@ -1,3 +1,7 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + local wheat_names = {} local register_cave_wheat = function(number) diff --git a/plants/dimple_cup.lua b/plants/dimple_cup.lua index 7c53564..735aaf6 100644 --- a/plants/dimple_cup.lua +++ b/plants/dimple_cup.lua @@ -1,3 +1,7 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + local dimple_names = {} local register_dimple_cup = function(number) diff --git a/plants/pig_tail.lua b/plants/pig_tail.lua index a436204..6aea481 100644 --- a/plants/pig_tail.lua +++ b/plants/pig_tail.lua @@ -1,3 +1,7 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + local pig_tail_names = {} local register_pig_tail = function(number) diff --git a/plants/plump_helmet.lua b/plants/plump_helmet.lua index 8ff66d2..4d89890 100644 --- a/plants/plump_helmet.lua +++ b/plants/plump_helmet.lua @@ -1,3 +1,7 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + local displace_x = 0.125 local displace_z = 0.125 diff --git a/plants/quarry_bush.lua b/plants/quarry_bush.lua index e4372f0..72a4da2 100644 --- a/plants/quarry_bush.lua +++ b/plants/quarry_bush.lua @@ -1,3 +1,7 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + local quarry_names = {} local register_quarry_bush = function(number) diff --git a/plants/sweet_pod.lua b/plants/sweet_pod.lua index 19de0f2..cd2a096 100644 --- a/plants/sweet_pod.lua +++ b/plants/sweet_pod.lua @@ -1,3 +1,7 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + local sweet_names = {} local register_sweet_pod = function(number)