System Variable Entry: LOCALE
← Prev | ↑ Chapter | Next → | Index | Symbols
System Variable Entry: LOCALE
Name
LOCALE
Type
string
Default
varies by host
Read-Only
yes
Scope
session; saved in not saved
Description
Displays a code that indicates the current language.
Compatibility
AutoCAD and BricsCAD. AutoCAD all; BricsCAD V20+.
Measured
A French locale: AutoCAD 2022 "FR" (job 16921381038); BricsCAD V25 / V26 "frFR" (jobs 16913315157 / 16921381045).
clautolisp
LOCALE takes its dialect's form, from the locale (LCALL, LCMESSAGES, LANG): the BricsCAD dialects "frFR"; the AutoCAD dialects from 2019 the upper-case language, "FR" ("now returns a code that contains a two or more-letter abbreviation", AutoCAD 2019); before 2019 the three-letter abbreviation Windows' GetLocaleInfo gives with LOCALESABBREVLANGNAME, "FRA" ("ENU", "DEU", "FRC" …) – documented, not measured.