| View previous topic :: View next topic |
| Author |
Message |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Thu Oct 03, 2019 5:54 am Post subject: how to get eggdrop lang ? |
|
|
Hello there,
I want to do a script which will automatically use the eggdrop lang, but I can't find which command or variable can be used to retrieve it.
Do you know if it exists anfd how I can get the information ?
Regards,
CrazyCat _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
BLaCkShaDoW Op

Joined: 11 Jan 2009 Posts: 115 Location: Romania
|
Posted: Thu Oct 03, 2019 8:12 am Post subject: using config |
|
|
| Code: | # 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  _________________ BLaCkShaDoW Production @ WwW.TclScripts.Net |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Thu Oct 03, 2019 9:49 am Post subject: |
|
|
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. _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
Dufresne Voice
Joined: 04 Oct 2019 Posts: 1
|
Posted: Mon Oct 07, 2019 7:52 am Post subject: |
|
|
| Do you think that will make things easier, CrazyCat? |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Sat Oct 12, 2019 6:56 pm Post subject: |
|
|
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  _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sun Oct 13, 2019 11:36 am Post subject: |
|
|
| 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.
| Quote: |
<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
|
And I believe that is found here:
https://github.com/eggheads/eggdrop
I hope this helps. _________________ For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia ! |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sun Oct 13, 2019 2:04 pm Post subject: |
|
|
| 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 ! |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Tue Oct 22, 2019 10:26 am Post subject: |
|
|
| 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  |
Your request / idea was heard.
Better yet, somebody up there in Eggdrop Land took their time to work on it.
Have a look here :
https://github.com/eggheads/eggdrop/pull/883
 _________________ For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia ! |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
|