Spec-Zone.ru › ColdFusion

getLocaleLanguage

Gets the language from where the locale belongs to.

getLocaleLanguage() → returns string

This function requires Lucee. Not supported on Adobe ColdFusion, etc.
See Also: getLocale GetLocaleInfo getLocaleDisplayName getLocaleCountry

Compatibility

Lucee:

DEPRECATED since version 5.0 Lucee5+ Deprecated in favor of getLocaleInfo()

Examples
Sample code invoking the getLocaleLanguage function

Output current Locale's display name than set it to swiss locale

writeOutput(getLocaleLanguage());
writeOutput(' → ');
setLocale('de_ch');
writeOutput(getLocaleLanguage());

© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/getlocalelanguage

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API