Setlocale; Locale Support - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions

SetLocale

Sets the locale to the specified new locale for the current session.
Note
See also GetLocale.
Syntax
SetLocale( new_locale)
new_locale
The name of the locale you want to set.

Locale support

ColdFusion can be expected to support the following locales in a default Windows NT
installation::
Locales Supported by ColdFusion
Dutch (Belgian)
Dutch (Standard)
English (Australian)
English (Canadian)
English (New Zealand)
English (UK)
English (US)
French (Belgian)
Note
Example
<!--- This example shows SetLocale --->
<HTML>
<HEAD>
<TITLE>SetLocale Example</TITLE>
</HEAD>
<BODY>
SetLocale returns the old locale in case it needs to be restored.
French (Canadian)
French (Standard)
French (Swiss)
German (Austrian)
German (Standard)
German (Swiss)
Italian (Standard)
Italian (Swiss)
The variable Server.ColdFusion.SupportedLocales is initialized at startup
with a comma-delimited list of the locales that ColdFusion and the
operating system support. GetLocale( ) will return an entry from that list.
SetLocale will fail if called with a locale name not on that list.
511
Norwegian (Bokmal)
Norwegian (Nynorsk)
Portuguese (Brazilian)
Portuguese (Standard)
Spanish (Mexican)
Spanish (Modern)
Spanish (Standard)
Swedish

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents