Functions

get_country_name (code)

get_language_name (code)

get_last_error ()

restore_names_prop (engine)

set_debug_level (level)

Details

Xkl.get_country_name(code)
Parameters:

code (str) – ISO 3166 Alpha 2 code: 2 chars, uppercase (US, RU, FR, …)

Returns:

localized country name (USA, Russia, France, … translated)

Return type:

str

Get localized country name, from ISO code

Xkl.get_language_name(code)
Parameters:

code (str) – ISO 639 2B or 2T code: 3 chars, lowercase (eng, rus, fra, …)

Returns:

localized country name (English, Russiam, French, … translated)

Return type:

str

Get localized language name, from ISO code

Xkl.get_last_error()
Returns:

the text message (statically allocated) of the last error

Return type:

str

Xkl.restore_names_prop(engine)
Parameters:

engine (Xkl.Engine) – the engine

Returns:

True on success

Return type:

bool

Restores XKB from the property saved by xkl_backup_names_prop

Xkl.set_debug_level(level)
Parameters:

level (int) – new debug level

Sets maximum debug level. Message of the level more than the one set here - will be ignored