Skip to content
Snippets Groups Projects
Commit c043aa11 authored by Xanthin's avatar Xanthin
Browse files

add support for intllib translation mod

just for completeness (german tidiness?)
parent 67eea1d5
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,14 @@
-- now maintained by VanessaE
--
-- License: WTFPL
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
bushes_classic = {}
......@@ -53,4 +61,4 @@ plantslib:spawn_on_surfaces({
minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
print("[Bushes] Loaded.")
print(S("[Bushes] Loaded."))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment