Locale settings

From PxPlus

Jump to: navigation, search

Locale Settings

In computing, a locale is a set of parameters that defines the user's language, country and any special variant preferences that the user wants to see in their user interface. Usually a locale identifier consists of at least a language identifier and a region identifier.

It is now possible to quickly access the operating systems locale settings. A single call to *getlocale will return a particular parameter if it is available.

  CALL "*getlocale","ABBREVMONTHNAMES",ans$

This will return the abbreviated month names in whatever language the operating system is set to.

Language Abbreviated Month Names
English (Canadian) Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec
German (Germany) Jan,Feb,Mrz,Apr,Mai,Jun,Jul,Aug,Sep,Okt,Nov,Dez
Spanish (Columbia) ene,feb,mar,abr,may,jun,jul,ago,sep,oct,nov,dic


List of available locale parameters in Windows

Parameter Description
ENGLISHLANGUAGENAME English name of language, eg "German"
LOCALIZEDDISPLAYNAME Localized name of locale, eg "German (Germany)" in UI language
LOCALIZEDLANGUAGENAME Language Display Name for a language, eg "German" in UI language
ISO639LANGNAME ISO abbreviated language name, eg "en"
NATIVELANGUAGENAME Native name of language, eg "Deutsch"
COUNTRYNAME Localized name of country, eg "Germany" in UI language
ENGCOUNTRYNAME English name of country, eg "Germany"
NATIVECOUNTRYNAME Native name of country, eg "Deutschland"
ISO3166CTRYNAME ISO abbreviated country name, eg "US"
MEASURE 0 = Metric, 1 = US Imperial
DECIMAL Decimal separator, eg "." for 1,234.00
THOUSAND Thousand separator, eg "," for 1,234.00
DIGITS Number of fractional digits eg 2 for 1.00
LZERO Leading zeros for decimal, 0 for .97, 1 for 0.97
CURRENCY Local monetary symbol, eg "$"
INTLSYMBOL Intl monetary symbol, eg "USD"
MONDECIMALSEP Monetary decimal separator, eg "." for $1,234.00
MONTHOUSANDSEP Monetary thousand separator, eg "," for $1,234.00
SHORTDATE Short date format string, eg "MM/dd/yyyy"
LONGDATE Long date format string, eg "dddd, MMMM dd, yyyy"
TIMEFORMAT Time format string, eg "HH:mm:ss"
AMPM Period designators, eg "AM,PM"
DAYNAMES Long day names
ABBREVDAYNAMES Abbreviated day names
MONTHNAMES Long month names
ABBREVMONTHNAMES Abbreviated month names


List of available locale parameters in Linux

Parameter Description
ENGLISHLANGUAGENAME English name of language, eg "German"
ISO639LANGNAME ISO abbreviated language name, eg "en"
NATIVELANGUAGENAME Native name of language, eg "Deutsch"
ENGCOUNTRYNAME English name of country, eg "Germany"
NATIVECOUNTRYNAME Native name of country, eg "Deutschland"
ISO3166CTRYNAME ISO abbreviated country name, eg "US"
MEASURE 1 = Metric, 2 = US Imperial
DECIMAL Decimal separator, eg "." for 1,234.00
THOUSAND Thousand separator, eg "," for 1,234.00
DIGITS Number of fractional digits eg 2 for 1.00
CURRENCY Local monetary symbol, eg "$"
INTLSYMBOL Intl monetary symbol, eg "USD"
MONDECIMALSEP Monetary decimal separator, eg "." for $1,234.00
MONTHOUSANDSEP Monetary thousand separator, eg "," for $1,234.00
SHORTDATE Short date format string, eg "MM/dd/yyyy"
LONGDATE Long date format string, eg "dddd, MMMM dd, yyyy"
TIMEFORMAT Time format string, eg "HH:mm:ss"
AMPM Period designators, eg "AM,PM"
DAYNAMES Long day names
ABBREVDAYNAMES Abbreviated day names
MONTHNAMES Long month names
ABBREVMONTHNAMES Abbreviated month names
MEASURE 1 = Metric, 0 = US Imperial
Personal tools