Time Nick Message 12:28 lissobone This channel needs some extra fun. 12:29 lissobone That's why I proudly announce that I like mathematics because I can utilize it in my mods. 12:29 lissobone Well, and I like modding because I can use math. 12:46 MTDiscord using math in mods? Illegal! :O 12:54 definitelya It really seems like #mnetest-dev is where everything happens, and this channel is only active when something off-topic enough happens there. :) 12:58 lissobone Well, I've got a question. 12:58 lissobone I'll first check the lua api to make sure I won't look like a dumbass. 12:59 lissobone Well, I am a dumbass, but at least I didn't fully make myself look that way. 13:45 MTDiscord Only a slight dumbass :p 13:54 MTDiscord Hi all 13:58 MTDiscord A quick question: in builtin/settingtypes.txt there is this line: > Comments and (Readable name) are handled by gettext. Where can I find gettext? I look in the lua_api.txt but there is no such a fonction. I could find in a file something like: lua if (core.gettext) but I don't know where to find that. 13:59 MTDiscord gettext is a translation library 13:59 MTDiscord minetest uses it for the engine, but lua mods use another custom translation library which is more basic 14:00 MTDiscord Where can I find its definition? 14:01 MTDiscord Wait, it's a library not just a function/method? 14:03 MTDiscord for gettext, there's core.gettext, fgettext and fgettext_ne inside of the main menu lua environment 14:05 MTDiscord Thx 16:39 MTDiscord I'm really confused about "hard return" and "soft return". Are they encoded differently? Are two consecutive "new line" characters always interpreted as "hard return" whereas one new line character represents a soft line character? 16:40 MTDiscord This is what created this confusion in my head: https://github.com/minetest/minetest/issues/9068 16:42 MTDiscord I already knew that paragraph seperators (pressing Enter) are different from line seperator inside the same paragraph (Shift + Enter) but I have never thought about their encoding 16:46 rubenwardy The difference is purely in how you interpret them 16:46 rubenwardy So there's no real such thing as hard and soft returns 16:46 rubenwardy There's only lines delimited by new lines 16:47 rubenwardy The idea is that it should ignore new lines unless there's a blank new line 16:47 rubenwardy *unless there's a blank line 16:56 MTDiscord I see. 17:01 MTDiscord Now, that comment in the settingtypes.txt file says: >Comments and (Readable name) are handled by gettext. so I assumed that gettext needed to be changed, but then I saw your comment on the PR: > I think it would be better to have some Lua code which removes all but double line breaks and I'm assuming that gettext is cpp not Lua. So what I understand is that some Lua code has to be made to pre-process the file before handing it to 17:01 MTDiscord gettext. Is that right? 17:02 rubenwardy the code that parses settingtypes.txt needs to be changed 17:03 rubenwardy this will cause merge conflicts with my settings redesign though 17:17 MTDiscord Ok 22:03 MinetestBot 02[git] 04TurkeyMcMac -> 03minetest/minetest: Implement vector and node conversion in Lua (#12609) 13b38ffde https://github.com/minetest/minetest/commit/b38ffdec279bcded98e34f5116c8d676aa9f73a7 (152022-10-18T22:01:44Z) 22:03 MinetestBot 02[git] 04TurkeyMcMac -> 03minetest/minetest: Check for falling `float` nodes in liquid transform (#12862) 13dafdb3e https://github.com/minetest/minetest/commit/dafdb3edb4b65db144d72cd2274a657af671bdd1 (152022-10-18T22:03:05Z)