Project

General

Profile

Actions

Feature #3537

closed

Add new $keylang identifier

Added by westor (GR) over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/04/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All

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!

Actions #1

Updated by Per Amundsen over 7 years ago

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.

Actions #2

Updated by westor (GR) over 7 years ago

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!

Actions #3

Updated by Per Amundsen over 7 years ago

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.

Actions #4

Updated by westor (GR) over 7 years ago

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-
}

Actions #5

Updated by Per Amundsen over 7 years ago

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?

Actions #6

Updated by westor (GR) over 7 years ago

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.

Actions #7

Updated by Per Amundsen over 7 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF