Project

General

Profile

Feature #3537

Add new $keylang identifier

Added by westor (GR) 3 months ago. Updated about 2 months 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!

History

#1

Updated by Per Amundsen 3 months 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.

#2

Updated by westor (GR) 3 months 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!

#3

Updated by Per Amundsen 3 months 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.

#4

Updated by westor (GR) 3 months 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-
}

#5

Updated by Per Amundsen 3 months 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?

#6

Updated by westor (GR) 2 months 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.

#7

Updated by Per Amundsen about 2 months ago

  • Status changed from New to Rejected

Also available in: Atom PDF