(module language mzscheme
(require (lib "list.ss")
(lib "class.ss")
(lib "framework.ss" "framework"))
(provide initialize-get-language
get-language)
(define get-language #f)
(define (initialize-get-language
drscheme:language-configuration:get-settings-preferences-symbol
drscheme:language-configuration:language-settings-language)
(set! get-language (make-get-language
drscheme:language-configuration:get-settings-preferences-symbol
drscheme:language-configuration:language-settings-language)))
(define ((make-get-language
drscheme:language-configuration:get-settings-preferences-symbol
drscheme:language-configuration:language-settings-language))
(let* ([language-settings
(preferences:get
(drscheme:language-configuration:get-settings-preferences-symbol))]
[language
(drscheme:language-configuration:language-settings-language language-settings)]
[name1 (send language get-language-name)]
[name2 (first (last-pair (send language get-language-position)))])
name2)))