Droog71 / chat_translator

A mod that uses LibreTranslate to translate chat messages in Minetest.
GNU Affero General Public License v3.0
6 stars 1 forks source link

The debug.txt gets bypassed #5

Open JohannesPaulHoffmann opened 10 months ago

JohannesPaulHoffmann commented 10 months ago

Hi!

The debug.txt gets bypassed (by the (about) to (get) posted Chat Messages).

Regards, Johannes

Droog71 commented 10 months ago

Hi!

The debug.txt gets bypassed (by the (about) to (get) posted Chat Messages).

Regards, Johannes

I'm not sure if the modding api chat functions are meant to be printing to debug.txt or not. If you want to log messages, you can add some lines to your init.lua file like the one below.

minetest.register_on_chat_message(function(name, message)
    minetest.log("action", "CHAT: <" .. name .. "> " .. message)
    --existing code
end)
JohannesPaulHoffmann commented 10 months ago

Hi!

The DMs aren't Logged, can You please build in both functions, as /me is excluded anyways into the init.lua?

I temporarily did Disable now the Mod, but I 'even' thought of a mediation and translation mode, so the first to translate also phrases, while the last mode is a word:word translation, so an actual translation, as the LibreTranslate way is (till now) really slow, but maybe Their dictionaries are in an inefficient form, dunno(?).

Regards, Johannes