This is the system-locale Reference Manual, version 1.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:49:34 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
system-locale
System locale and language discovery
Yukari Hafner <shinmera@tymoon.eu>
Yukari Hafner <shinmera@tymoon.eu>
zlib
1.0.0
documentation-utils
(system).
cffi
(system)., for feature (:or :windows :win32 :win :nx)
package.lisp
(file).
toolkit.lisp
(file).
windows.lisp
(file).
locale.lisp
(file).
documentation.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
system-locale/system-locale.asd
system-locale/package.lisp
system-locale/toolkit.lisp
system-locale/windows.lisp
system-locale/locale.lisp
system-locale/documentation.lisp
system-locale/toolkit.lisp
package.lisp
(file).
system-locale
(system).
system-locale/windows.lisp
(:or :windows :win32 :win)
toolkit.lisp
(file).
system-locale
(system).
system-locale/locale.lisp
windows.lisp
(file).
toolkit.lisp
(file).
system-locale
(system).
*fallback-locale*
(special variable).
*languages*
(special variable).
*locales*
(special variable).
discover-active-languages
(function).
discover-active-locales
(function).
language
(function).
(setf language)
(function).
languages
(function).
(setf languages)
(function).
locale
(function).
(setf locale)
(function).
locale-charset
(function).
locale-equal
(function).
locale-language
(function).
locale-region
(function).
locales
(function).
(setf locales)
(function).
system-locale/documentation.lisp
locale.lisp
(file).
system-locale
(system).
Packages are listed by definition order.
system-locale
org.shirakumo.system-locale
common-lisp
.
*fallback-locale*
(special variable).
*languages*
(special variable).
*locales*
(special variable).
discover-active-languages
(function).
discover-active-locales
(function).
language
(function).
(setf language)
(function).
languages
(function).
(setf languages)
(function).
locale
(function).
(setf locale)
(function).
locale-charset
(function).
locale-equal
(function).
locale-language
(function).
locale-region
(function).
locales
(function).
(setf locales)
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
The default fallback locale used if no system locale can be discovered.
This is, by default, en_US.UTF-8.
See LOCALE
The list of user-preferred languages, with the most preferred first.
This list is empty if no user-preferences could be found.
This variable is unbound if LANGUAGES has not yet been called.
See LANGUAGES
See LANGUAGE
The list of user-preferred locales, with the most preferred first.
This list is empty if no user-preferences could be found.
This variable is unbound if LOCALES has not yet been called.
See LOCALES
See LOCALE
Attempts to discover user-preferred system languages.
Returns a list of found language codes.
It considers the following environment variables:
- LANGUAGE
In addition it will extract the language code from all
locales returned by DISCOVER-ACTIVE-LOCALES.
See DISCOVER-ACTIVE-LOCALES
See LANGUAGES
Attempts to discover user-preferred system locales.
Returns a list of found locales.
It considers the following environment variables:
- LC_ALL
- LC_MESSAGES
- LANG
On Windows, it also considers the following WINAPI calls:
- GetUserDefaultLocaleName
- GetSystemDefaultLocaleName
See LOCALES
Accessor to the user-preferred language.
This returns the first matching item returned by LANGUAGES,
or the language-code part of *FALLBACK-LOCALE* if no match
by STRING-EQUAL is found.
If the fallback language was returned, the secondary value
is :FALLBACK.
Setting this place will add the given language to the
*LANGUAGES* list if it is not yet present, and otherwise
move it to the front of the list.
See LANGUAGES
See *FALLBACK-LOCALE*
Accessor to the list of user-preferred languages.
This may be NIL if no preferred languages have been found.
If REDISCOVER is non-NIL, DISCOVER-ACTIVE-LANGUAGES is
always called. Otherwise, if the *LANGUAGES* variable is
bound, its value is returned instead.
See *LANGUAGES*
See DISCOVER-ACTIVE-LANGUAGES
Accessor to the user-preferred locale.
This returns the first matching item returned by LOCALES, or *FALLBACK-LOCALE* if no match by LOCALE-EQUAL is found.
If the fallback locale was returned, the secondary value
is :FALLBACK.
Setting this place will add the given locale to the
*LOCALES* list if it is not yet present, and otherwise
move it to the front of the list.
See LOCALE-EQUAL
See LOCALES
See *FALLBACK-LOCALE*
Returns the charset-code part of a locale.
"en_US.UTF-8" => "UTF-8"
"en_US" => NIL
"en.UTF-8" => "UTF-8"
"en" => NIL
"_US.UTF-8" => "UTF-8"
"_US" => NIL
".UTF-8" => "UTF-8
Returns true if the two locales are equal.
Equal means that all the locale parts that are
given in both locales match.
"en" "en_US" => T
"en_GB" "_US" => NIL
etc.
Returns the language-code part of a locale.
"en_US.UTF-8" => "en"
"en_US" => "en"
"en.UTF-8" => "en"
"en" => "en"
"_US.UTF-8" => NIL
"_US" => NIL
".UTF-8" => NIL
Returns the language region-code part of a locale.
"en_US.UTF-8" => "US"
"en_US" => "US"
"en.UTF-8" => NIL
"en" => NIL
"_US.UTF-8" => "US"
"_US" => "US"
".UTF-8" => NIL
Accessor to the list of user-preferred locales.
This may be NIL if no preferred locales have been found.
If REDISCOVER is non-NIL, DISCOVER-ACTIVE-LOCALES is
always called. Otherwise, if the *LOCALES* variable is
bound, its value is returned instead.
See *LOCALES*
See DISCOVER-ACTIVE-LOCALES
Jump to: | %
(
D F G L M S W |
---|
Jump to: | %
(
D F G L M S W |
---|
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | D F L P S T W |
---|
Jump to: | D F L P S T W |
---|