mirror of
				https://github.com/mt-mods/plantlife_modpack.git
				synced 2025-11-03 23:25:26 +01:00 
			
		
		
		
	add support for intllib translation mod
just for completeness (german tidiness?)
This commit is contained in:
		@@ -2,6 +2,14 @@
 | 
				
			|||||||
-- now maintained by VanessaE
 | 
					-- now maintained by VanessaE
 | 
				
			||||||
--
 | 
					--
 | 
				
			||||||
-- License:  WTFPL
 | 
					-- 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 = {}
 | 
					bushes_classic = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -53,4 +61,4 @@ plantslib:spawn_on_surfaces({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
 | 
					minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
print("[Bushes] Loaded.")
 | 
					print(S("[Bushes] Loaded."))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user