mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2026-01-14 02:15:32 +01:00
Use a single `intllib.Getter' for all the texts.
Just a minimal code reduction, but big reduction in code duplication. This could help if in the future, support for different "internationalization" mods will be added, or in case Minetest supports I18N/L10N internally in the engine.
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
-- This file supplies refrigerators
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if homedecor.intllib_modpath then
|
||||
dofile(homedecor.intllib_modpath.."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
local S = homedecor.gettext
|
||||
|
||||
minetest.register_node('homedecor:refrigerator', {
|
||||
drawtype = "nodebox",
|
||||
|
||||
Reference in New Issue
Block a user