Use built-in Minetest localization & drop intllib support
parent
2475cdee0d
commit
a0e4e8ac7f
|
@ -1,5 +0,0 @@
|
||||||
# Translation by
|
|
||||||
|
|
||||||
|
|
||||||
Glass =
|
|
||||||
Obsidian Glass =
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Translation by
|
||||||
|
|
||||||
|
|
||||||
|
Glass=
|
||||||
|
Obsidian Glass=
|
2
mod.conf
2
mod.conf
|
@ -3,4 +3,4 @@ description = Enhances default glass to make it colorable.
|
||||||
version = 0.2
|
version = 0.2
|
||||||
author = Jordan Irwin (AntumDeluge)
|
author = Jordan Irwin (AntumDeluge)
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = intllib, unifieddyes
|
optional_depends = unifieddyes
|
||||||
|
|
12
nodes.lua
12
nodes.lua
|
@ -14,17 +14,7 @@
|
||||||
-- @module nodes
|
-- @module nodes
|
||||||
|
|
||||||
|
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
local S = core.get_translator()
|
||||||
local S
|
|
||||||
if core.global_exists('intllib') then
|
|
||||||
if intllib.make_gettext_pair then
|
|
||||||
S = intllib.make_gettext_pair()
|
|
||||||
else
|
|
||||||
S = intllib.Getter()
|
|
||||||
end
|
|
||||||
else
|
|
||||||
S = function(s) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local enable_colors = core.global_exists('unifieddyes') or core.get_modpath('unifieddyes')
|
local enable_colors = core.global_exists('unifieddyes') or core.get_modpath('unifieddyes')
|
||||||
|
|
Loading…
Reference in New Issue