# If you want to have your Eggdrop messages displayed in a language other
# than English, change this setting to match your preference. An alternative
# would be to set the environment variable EGG_LANG to that value.
#
# Languages included with Eggdrop: Danish, English, French, Finnish, German.
#addlang "english"
You can try to get the addlang line from config. If it's starting with # the languge is english, if not get the language from the addlang line
That could be a posibility
It could be an option, but it won't work in every cases
My own example: I have several eggdrop using a short .conf which call the main eggdrop.conf. So, the eggdrop see "myrobot.conf" and not eggdrop.conf which contains the addlang directive.
I'll try to hack the language.c file to add a tcl-command "getlang" which will return the core language.
CrazyCat wrote: ↑Thu Oct 03, 2019 9:49 am
It could be an option, but it won't work in every cases
My own example: I have several eggdrop using a short .conf which call the main eggdrop.conf. So, the eggdrop see "myrobot.conf" and not eggdrop.conf which contains the addlang directive.
I'll try to hack the language.c file to add a tcl-command "getlang" which will return the core language.
Do you think that will make things easier, CrazyCat?
Last edited by Dufresne on Wed May 15, 2024 6:22 am, edited 2 times in total.
CrazyCat wrote:Not sure, but I need this feature, so I think I'm not the only one.
Even if 0.1% of eggdrop owners use it, it's usefull
A link to this thread was posted in #eggdrop , on Freenode IRC network .
Here is part of what was said there.
<nick deleted> Easy button solution is to retrieve the name of the config file being used (can't remember how, but I think it can be done through eggdrop) and then grep for addlang
<nick deleted> But, its not terrible to add something like that if he wants it, I think
<nick deleted> Ask him to post it to github, we can talk about it there
CrazyCat wrote:Not sure, but I need this feature, so I think I'm not the only one.
Even if 0.1% of eggdrop owners use it, it's usefull
You really should post on github.
A little birdy told me that they are considering it, and might even be fiddling around with it some already.
There is no guarantee though. Too soon for that. No idea on how long it might be, either.
As I understand it, if you post on github and and issue is referenced, then you would be notified.
I guess that is the place to find out if they do a patch.
Good luck with it.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !