Feature #3537
closed
Add new $keylang identifier
Added by westor (GR) over 7 years ago.
Updated over 7 years ago.
Description
Hello,
I wanna suggest an new identifier $keylang that will return the language that is set in the keyboard.
Example:
//echo -a IS: $keylang
IS: ENG
- Thanks!
I can do that, but is this something you have a need for, if so what need?
Asking because I prefer to add features that's gonna be used.
It's something useful that you can play in a LOT of situations while you enter a text into dialogs editbox and you want to add only english text and into a lot more situations, if the addition is too hard then forget it, but if it is simple then it would be good to see that adiirc supported.
- Thanks!
It's simple but I feel like I need an example for why this is needed, if you want to add some kind of translation, maybe the keyboard layout is not the best way, maybe the current locale aka $locale could be added instead.
Something like:
alias nick {
if ($keylang !== ENG) { echo 4 -a ERROR: Please specify only english characters because the IRCD cannot support other language characters! | halt }
!nick $1-
}
Most european keyboards can type ascii characters, so I think this is a bad way to test, maybe test the actual text for ascii characters instead?
As this seems to be somethng not so useful then you can reject and close it.
I didn't knew that most european keyboards can type ascii chars.
- Status changed from New to Rejected
Also available in: Atom
PDF