Glory! wrote:WTFPL.
Thank you. Added note to first post.
Glory! wrote:WTFPL.
cimbakahn wrote:Shoot! I just realized, i could be wrong. awards coughs up this message: WARNING: Undeclared global variable "intllib" accessed at ...kahn/.minetest/mods/dreambuilder_modpack/awards/init.lua:8 I thought the fact that awards knew anything about intllib ment it was supported, now i am not so sure?
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
minetest.register_craftitem("spacetest:lead", {
description = S(" Space")
})
minetest.register_craftitem("spacetest:trail", {
description = S("Space ")
})
\sSpace = \sLeer
Space\s = Leer\s
kaeza wrote:Dependencies: default
\ \Space = \ \Leer
Space\ \ = Leer\ \
Wuzzy wrote:this is totally not what the documentation said. This seems to be a bug in the mod.
The documentation says I must use “/s”.
Wuzzy wrote:Sadly, this mod breaks when mod security is on. :-(
2016-11-09 00:13:32: ERROR[Main]: ModError: Failed to load and run script from /home/wuzzy/src/minetest/git/minetest/bin/../mods/teletool/init.lua:
2016-11-09 00:13:32: ERROR[Main]: Attempt to access external file /home/wuzzy/src/minetest/git/minetest/bin/../mods/intllib/intllib.lua with mod security on.
2016-11-09 00:13:32: ERROR[Main]: stack traceback:
2016-11-09 00:13:32: ERROR[Main]: [C]: in function 'dofile'
2016-11-09 00:13:32: ERROR[Main]: .../src/minetest/git/minetest/bin/../mods/teletool/init.lua:3: in main chunk
2016-11-09 00:13:32: ERROR[Main]: Siehe debug.txt für Details.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
awards
food_sweet
homedecor
maptools
prehistoric_modpack
bedrock2
dice2
doc_minetest_game
hbarmor
hbhunger
hudbars
inventory_icon
magicbeans_w
mana
mtg_plus
orienteering
origin
pedology
pep
pseudonodes
returnmirror
teletool
tsm_surprise
wateringcan
Wuzzy wrote:[intllib-using mods fail security tests]
Oddly, this is not even the boilerplate code from the intllib README. But when I looked on earlier versions of intllib, the dofile was still there.
[I wrote patches to fix a bunch of the affected mods]
WARNING[Main]: intllib.Getter is deprecated.Please use intllib.make_gettext_pair instead.
burli wrote:Is there somewhere a tutorial how to use intllib? I try to add it, but it doesn't work. And if I use Getter I get this messageYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
WARNING[Main]: intllib.Getter is deprecated.Please use intllib.make_gettext_pair instead.
I want to use and support this
Edit: It's working now. And I just replaced Getter with make_gettext_pair
Users browsing this forum: No registered users and 49 guests