Package: gtk

Function gtk:default-language

Lambda List

gtk:default-language ()

Return Value

The default language as a pango:language instance.

Details

Returns the Pango language instance for the default language currently in effect. Note that this can change over the life of an application. The default language is derived from the current locale. It determines, for example, whether GTK uses the right-to-left or left-to-right text direction.

This function is equivalent to the pango:language-default function. See that function for details.

Examples

(setq lang (gtk:default-language))
=> #<PANGO-LANGUAGE {C7B3C51}>
(pango:language-to-string lang)
=> "de-de"    
 

See also

2024-11-5