diff --git a/locale/template.pot b/locale/template.pot deleted file mode 100644 index eabcc87..0000000 --- a/locale/template.pot +++ /dev/null @@ -1,5 +0,0 @@ -# Translation by - - -Glass = -Obsidian Glass = diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..db06276 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,5 @@ +# Translation by + + +Glass= +Obsidian Glass= diff --git a/mod.conf b/mod.conf index 72a76c2..9840a78 100644 --- a/mod.conf +++ b/mod.conf @@ -3,4 +3,4 @@ description = Enhances default glass to make it colorable. version = 0.2 author = Jordan Irwin (AntumDeluge) depends = default -optional_depends = intllib, unifieddyes +optional_depends = unifieddyes diff --git a/nodes.lua b/nodes.lua index bf820c9..670c74d 100644 --- a/nodes.lua +++ b/nodes.lua @@ -14,17 +14,7 @@ -- @module nodes --- Boilerplate to support localized strings if intllib mod is installed. -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 S = core.get_translator() local enable_colors = core.global_exists('unifieddyes') or core.get_modpath('unifieddyes')