egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to get eggdrop lang ?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
CrazyCat
Master


Joined: 13 Jan 2002
Posts: 479
Location: France

PostPosted: Thu Oct 03, 2019 5:54 am    Post subject: how to get eggdrop lang ? Reply with quote

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 speaking IRC network
Back to top
View user's profile Send private message Visit poster's website
BLaCkShaDoW
Halfop


Joined: 11 Jan 2009
Posts: 98
Location: Romania

PostPosted: Thu Oct 03, 2019 8:12 am    Post subject: using config Reply with quote

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 Razz
That could be a posibility Razz
_________________
BLaCkShaDoW Productions @ WwW.TclScripts.Net
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Master


Joined: 13 Jan 2002
Posts: 479
Location: France

PostPosted: Thu Oct 03, 2019 9:49 am    Post subject: Reply with quote

It could be an option, but it won't work in every cases Sad
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 speaking IRC network
Back to top
View user's profile Send private message Visit poster's website
Dufresne
Voice


Joined: 04 Oct 2019
Posts: 1

PostPosted: Mon Oct 07, 2019 7:52 am    Post subject: Reply with quote

Do you think that will make things easier, CrazyCat?
Back to top
View user's profile Send private message
CrazyCat
Master


Joined: 13 Jan 2002
Posts: 479
Location: France

PostPosted: Sat Oct 12, 2019 6:56 pm    Post subject: Reply with quote

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 Smile
_________________
https://www.eggdrop.fr - French speaking IRC network
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1042

PostPosted: Sun Oct 13, 2019 11:36 am    Post subject: Reply with quote

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 Smile


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
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1042

PostPosted: Sun Oct 13, 2019 2:04 pm    Post subject: Reply with quote

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 Smile


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. Smile
_________________
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber