From ae0ec9d2feea48615b6ad33f8d027fd2d0fa24bb Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sun, 9 Jul 2017 12:04:39 -0700 Subject: [PATCH] [glow] Update to Git patch 7becf6d: https://github.com/AntumMT/mod-glow/tree/7becf6d --- README.md | 3 ++- mods/lighting/glow/init.lua | 8 +++++++- mods/lighting/glow/locale/de.txt | 5 +++++ mods/lighting/glow/locale/template.txt | 5 +++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 mods/lighting/glow/locale/de.txt create mode 100644 mods/lighting/glow/locale/template.txt diff --git a/README.md b/README.md index 8b129da5..1c529a9c 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m * [bags][] ([BSD 3-Clause][lic.bags]) -- version: [f17d829 Git][ver.bags] *2015-10-11* ([patched][patch.bags]) * [inventory_plus][] ([BSD 3-Clause][lic.inventory_plus]) -- version: [fd71e3d Git][ver.inventory_plus] *2016-05-13* * lighting/ - * [glow][] ([GPL][lic.gpl2.0]) -- version: [78d0166 Git][ver.glow] *2017-05-16* + * [glow][] ([GPL][lic.gpl2.0]) -- version: [78d0166 Git][ver.glow] *2017-05-16* ([patched][patch.glow]) * [ilights][] ([CC BY-SA][lic.ccbysa]) -- version [7060243 Git][ver.ilights] *2017-05-18* ([patched][patch.ilights]) * walking_light ([petermalone fork][walking_light]) ([WTFPL / CC BY-SA][lic.walking_light]) -- version: [b23d836 Git][ver.walking_light] *2017-06-21* ([patched][patch.walking_light]) * materials/ @@ -548,6 +548,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m [patch.farming_plus]: https://github.com/AntumMT/mod-farming_plus/tree/8bee49a [patch.gems_encrustable]: https://github.com/AntumMT/mod-gems_encrustable/tree/791bff5 [patch.gems_tools]: https://github.com/AntumMT/mod-gems_tools/tree/abe21e3 +[patch.glow]: https://github.com/AntumMT/mod-glow/tree/7becf6d [patch.hbarmor]: https://github.com/AntumMT/mod-hbarmor/tree/587dae9 [patch.helicopter]: https://github.com/AntumMT/mod-helicopter/tree/9ffee1f [patch.homedecor]: https://github.com/AntumMT/mp-homedecor/tree/d0d79dc diff --git a/mods/lighting/glow/init.lua b/mods/lighting/glow/init.lua index 14d3f1cc..72c4237a 100644 --- a/mods/lighting/glow/init.lua +++ b/mods/lighting/glow/init.lua @@ -2,7 +2,13 @@ local S if minetest.global_exists("intllib") then - S = intllib.Getter() + if intllib.make_gettext_pair then + -- New method using gettext. + S = intllib.make_gettext_pair() + else + -- Old method using text files. + S = intllib.Getter() + end else S = function(s) return s end end diff --git a/mods/lighting/glow/locale/de.txt b/mods/lighting/glow/locale/de.txt new file mode 100644 index 00000000..584c3908 --- /dev/null +++ b/mods/lighting/glow/locale/de.txt @@ -0,0 +1,5 @@ +# Translation by Xanthin + +Glow Worms in Stone = Gluehwuermchen im Stein +Glow Shrooms = Leuchtpilze +Fireflies = Leuchtkaefer diff --git a/mods/lighting/glow/locale/template.txt b/mods/lighting/glow/locale/template.txt new file mode 100644 index 00000000..c5c54959 --- /dev/null +++ b/mods/lighting/glow/locale/template.txt @@ -0,0 +1,5 @@ +# Template + +Glow Worms in Stone = +Glow Shrooms = +Fireflies =