"Sputnik" help  
Sputnik Help
LangInfo(<culture>)

Description

Retrieves an array containing detailed information about the specified language or culture. The function accepts either the string representation (e.g., "en-US") or the corresponding macro (e.g., @LangEnUS). If the requested language/culture is not found, undef is returned.

Parameters

<culture> The language or culture to retrieve information for.

Return Value

Success: Returns an array with detailed information about the specified language/culture.
Failure: Returns undef if the requested language/culture is not found.

Remarks

 

Related

Example

Example of usage:

printr LangInfo(@LangEnUS);
printr LangInfo(@LangJaJP);
// PRINTS
// Array
// (
//     [Name] => en-US
//     [Display] => English (United States)
//     [English] => English (United States)
//     [Native] => English (United States)
//     [TwoLetterISO] => en
//     [ThreeLetterISO] => eng
//     [ThreeLetterWindows] => ENU
//     [LCID] => 1033
//     [ShortDatePattern] => M/d/yyyy
//     [LongDatePattern] => dddd, MMMM d, yyyy
//     [ShortTimePattern] => h:mm tt
//     [LongTimePattern] => h:mm:ss tt
//     [NumberDecimalSeparator] => .
//     [NumberGroupSeparator] => ,
//     [CurrencySymbol] => $
//     [CalendarType] => System.Globalization.GregorianCalendar
//     [FirstDayOfWeek] => Sunday
// )
// Array
// (
//     [Name] => ja-JP
//     [Display] => Japanese (Japan)
//     [English] => Japanese (Japan)
//     [Native] => 日本語 (日本)
//     [TwoLetterISO] => ja
//     [ThreeLetterISO] => jpn
//     [ThreeLetterWindows] => JPN
//     [LCID] => 1041
//     [ShortDatePattern] => yyyy/MM/dd
//     [LongDatePattern] => yyyy'年'M'月'd'日'
//     [ShortTimePattern] => H:mm
//     [LongTimePattern] => H:mm:ss
//     [NumberDecimalSeparator] => .
//     [NumberGroupSeparator] => ,
//     [CurrencySymbol] => ¥
//     [CalendarType] => System.Globalization.GregorianCalendar
//     [FirstDayOfWeek] => Sunday
// )

It is possible to find via the Name:

printr LangInfo("en-US");
// PRINTS
// Array
// (
//     [Name] => en-US
//     [Display] => English (United States)
//     [English] => English (United States)
//     [Native] => English (United States)
//     [TwoLetterISO] => en
//     [ThreeLetterISO] => eng
//     [ThreeLetterWindows] => ENU
//     [LCID] => 1033
//     [ShortDatePattern] => M/d/yyyy
//     [LongDatePattern] => dddd, MMMM d, yyyy
//     [ShortTimePattern] => h:mm tt
//     [LongTimePattern] => h:mm:ss tt
//     [NumberDecimalSeparator] => .
//     [NumberGroupSeparator] => ,
//     [CurrencySymbol] => $
//     [CalendarType] => System.Globalization.GregorianCalendar
//     [FirstDayOfWeek] => Sunday
// )

It is also possible to find via LCID:

printr LangInfo(1033);
// PRINTS
// Array
// (
//     [Name] => en-US
//     [Display] => English (United States)
//     [English] => English (United States)
//     [Native] => English (United States)
//     [TwoLetterISO] => en
//     [ThreeLetterISO] => eng
//     [ThreeLetterWindows] => ENU
//     [LCID] => 1033
//     [ShortDatePattern] => M/d/yyyy
//     [LongDatePattern] => dddd, MMMM d, yyyy
//     [ShortTimePattern] => h:mm tt
//     [LongTimePattern] => h:mm:ss tt
//     [NumberDecimalSeparator] => .
//     [NumberGroupSeparator] => ,
//     [CurrencySymbol] => $
//     [CalendarType] => System.Globalization.GregorianCalendar
//     [FirstDayOfWeek] => Sunday
// )

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org