Feature #4586
openAdd $spellchecklang to return the default and per channel spellchecker language
0%
Description
Hello,
I wanna suggest an identifier that could look and return the currently set spellchecker language, the default or the custom if an window is specified too, i will provide more examples to make it more clear.
Usage :
$spellchecklang([Window Name]) $spellchecklang = with no parameters, will return the default set language. $spellchecklang(#test) = with a channel window parameter will return the language set for this channel.
Examples :
Command: //echo -a IS: $spellchecklang
Results: en
Command: //echo -a IS: $spellchecklang(#test)
Results: gr
- Thanks!
Updated by Per Amundsen over 5 years ago
What is the use-case you need this for?
Updated by westor (GR) over 5 years ago
It can be useful if you wanna print what language is currently set in editbox spell checker
example if someone wants to display in statusbar what language is set for the specific window or default he can't now.
And generally for future scripting usage, especially a guy asked me if he can see (via scripting) what language he set for the active window, i searched a bit and didn't found anything related.
BUT
As i saw in $editbox adiirc wiki there is already " .spellcheckword " , so what about an extra property there like " .spellchecklang " instead of a new identifier?
.spellcheckword - Gets the current word at the cursor position formatted for spellchecking. (AdiIRC only) .spellchecklang - Gets the current spellchecker set language for this window. (AdiIRC only)