Commit Graph

14 Commits (master)

Author SHA1 Message Date
Герхард PICCORO Lenz McKAY 3eacc17e73
Fix 0.4 compatibility (#16)
* added minetest 0.4 compatibility due the trasnlation missing support

* if translation is not supported use english on compat/mtg.lua
* improved the code of translation of the already init.lua
* this solves: closes https://github.com/minetest-mods/lavastuff/issues/13
* this solves: closes https://codeberg.org/minenux/lavastuff/issues/1
* close https://codeberg.org/minenux/lavastuff/issues/1

* real fix for compatibility later trasnlations

* real fix for https://github.com/minetest-mods/lavastuff/issues/13
* use native translator or intlib property as must be, but mock if both fails

* fix modname and use intlib depennds only in older engines

* autodetect mod name from minetest api
* added only intllib in depends.txt for older 0.4.X, mod.conf its for 5+
  so due 5+ has built in internationalization its not necesary in that file

* added the depends only when necesary for intllib

* Update init.lua usage or MODNAME and MODPATH

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>

* puff also uage ot the MODNAME in get translator

* update luacheck as suggested by lonewolf

i dont know how to avoid the usage of those variables.. but he suggested to just put those .. https://github.com/minetest-mods/lavastuff/pull/16#issuecomment-1036497969

* move intllib to others to do not fail in checks agains moderns engine

also added ',' at the en of the line

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2022-02-23 21:13:38 -08:00
LoneWolfHT f9d2556204 Add support for MineClone2 2020-05-20 20:05:13 -07:00
LoneWolfHT 7b405a49a9 Only register crafts if MTG found, mcl2 and nodecore support 2020-05-20 10:14:16 -07:00
LoneWolfHT ace00db751 Update mod.conf to include depends 2019-03-27 14:29:19 -07:00
LoneWolfHT 8ab5b86cd2 Fix fatal typo 2019-01-26 14:10:01 -08:00
LoneWolfHT bc9afaed94 Add support for moreblocks 2019-01-25 16:38:58 -08:00
LoneWolfHT 4b0ace495d Use minetest_game's stairs mod to register stairs and slabs 2019-01-25 16:30:21 -08:00
ChimneySwift 029ff677a3
Added Toolranks Optional Dependency 2017-11-18 16:54:01 +10:00
Lone_Wolf 563acb34c0
Remove 3d_armor dependency 2017-11-15 23:10:22 -08:00
Lone_Wolf 18341ea1c6
Update depends.txt 2017-10-27 12:28:33 -07:00
Lone_Wolf 531af14df7 Update depends.txt 2017-10-16 21:26:00 -07:00
Lone_Wolf 6e6a84ed9f Update depends.txt 2017-10-16 21:24:55 -07:00
Lone_Wolf 6841adf1c1 Update depends.txt 2017-10-08 21:31:22 -07:00
Lone_Wolf 7947c2e3db Add mod stuff 2017-10-08 17:49:28 -07:00