diff --git a/README.md b/README.md index 63e9ee5b..d76f84bc 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m * [intllib][] ([Unlicense][lic.unlicense]) -- version: [20180811][ver.intllib] *2018-08-11* * inventory/ * [bags][] ([BSD 3-Clause][lic.bags]) -- version: [bc87b45 Git][ver.bags] *2018-04-11* - * [sfinv_buttons][] ([MIT][lic.mit]) -- version [1.0.0 (4f3b075 Git)][ver.sfinv_buttons] *2017-03-19* + * [sfinv_buttons][] ([MIT][lic.mit]) -- version [1.1.0 (ebb1f7c Git)][ver.sfinv_buttons] *2021-01-14* * lighting/ * [glow][] ([GPL][lic.gpl2.0]) -- version: [c611ae0 Git][ver.glow] *2017-07-18* * [ilights][] ([CC BY-SA][lic.ccbysa]) -- version [fa085fd Git][ver.ilights] *2017-07-19* @@ -472,7 +472,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m [ver.pvp_areas]: https://github.com/everamzah/pvp_areas/tree/0188945 [ver.quartz]: https://github.com/minetest-mods/quartz/tree/1c5dca2 [ver.rainbow_ore]: https://github.com/FsxShader2012/rainbow_ore/tree/6e77693 -[ver.sfinv_buttons]: http://repo.or.cz/minetest_sfinv_buttons.git/tree/4f3b075 +[ver.sfinv_buttons]: http://repo.or.cz/minetest_sfinv_buttons.git/tree/ebb1f7c [ver.signs_lib]: https://github.com/minetest-mods/signs_lib/tree/a2f7f62 [ver.simple_protection]: https://github.com/SmallJoker/simple_protection/tree/5aa2f24 [ver.slingshot]: https://github.com/AntumMT/mod-slingshot/tree/bb77525 diff --git a/mods/inventory/sfinv_buttons/README.md b/mods/inventory/sfinv_buttons/README.md index e39eb8f3..ff5922ee 100644 --- a/mods/inventory/sfinv_buttons/README.md +++ b/mods/inventory/sfinv_buttons/README.md @@ -3,9 +3,11 @@ This mod adds a new tab (“More”) to the Simple Fast Inventory [`sfinv`] on which other mods can add their buttons to make it easier to access their core functionality. -The idea is to free users from typing in lame-ass chat commands. ;-) +The idea is to free users from typing in boring chat commands. ;-) -Version: 1.0.0 +Minetest version 5.0.0 or later is required. + +Version: 1.1.0 (This mod uses [semantic versioning](http://semver.org/) as of version 2.0.0 of the standard.) ## API diff --git a/mods/inventory/sfinv_buttons/depends.txt b/mods/inventory/sfinv_buttons/depends.txt deleted file mode 100644 index 4faf4cf6..00000000 --- a/mods/inventory/sfinv_buttons/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -sfinv -intllib? diff --git a/mods/inventory/sfinv_buttons/init.lua b/mods/inventory/sfinv_buttons/init.lua index 7ef5ec42..3abcf4a4 100644 --- a/mods/inventory/sfinv_buttons/init.lua +++ b/mods/inventory/sfinv_buttons/init.lua @@ -1,10 +1,4 @@ --- Boilerplate to support localized strings if intllib mod is installed. -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s) return s end -end +local S = minetest.get_translator("sfinv_buttons") local buttons = {} local button_names_sorted = {} diff --git a/mods/inventory/sfinv_buttons/locale/de.txt b/mods/inventory/sfinv_buttons/locale/de.txt deleted file mode 100644 index ee6bfe35..00000000 --- a/mods/inventory/sfinv_buttons/locale/de.txt +++ /dev/null @@ -1,2 +0,0 @@ -More = Mehr -Go = Los diff --git a/mods/inventory/sfinv_buttons/locale/sfinv_buttons.de.tr b/mods/inventory/sfinv_buttons/locale/sfinv_buttons.de.tr new file mode 100644 index 00000000..041fbecb --- /dev/null +++ b/mods/inventory/sfinv_buttons/locale/sfinv_buttons.de.tr @@ -0,0 +1,3 @@ +# textdomain: sfinv_buttons +More=Mehr +Go=Los diff --git a/mods/inventory/sfinv_buttons/locale/template.txt b/mods/inventory/sfinv_buttons/locale/template.txt index bc82fde4..f89b96c2 100644 --- a/mods/inventory/sfinv_buttons/locale/template.txt +++ b/mods/inventory/sfinv_buttons/locale/template.txt @@ -1,2 +1,3 @@ -More = -Go = +# textdomain: sfinv_buttons +More= +Go= diff --git a/mods/inventory/sfinv_buttons/mod.conf b/mods/inventory/sfinv_buttons/mod.conf index 0b9e942d..62305f71 100644 --- a/mods/inventory/sfinv_buttons/mod.conf +++ b/mods/inventory/sfinv_buttons/mod.conf @@ -1 +1,2 @@ name = sfinv_buttons +depends = sfinv