Whatever message this page gives is out now! Go check it out!
SetLocale(new_locale) |
Parameter | Description |
new_locale | The name of a locale; for example, "English (US)" |
Chinese (China mainland) | French (Belgian) | Korean |
Chinese (Hong Kong SAR of China) | French (Canadian) | Norwegian (Bokmal) |
Chinese (Taiwan region) | French (Standard) | Norwegian (Nynorsk) |
Dutch (Belgian) | French (Swiss) | Portuguese (Brazilian) |
Dutch (Standard) | German (Austrian) | Portuguese (Standard) |
English (Australian) | German (Standard) | Spanish (Modern) |
English (Canadian) | German (Swiss) | Spanish (Standard) |
English (New Zealand) | Italian (Standard) | Swedish |
English (UK) | Italian (Swiss) | |
English (US) | Japanese |
-Duser.language=de -Duser.region=DE. |
<cfset Session.oldlocale = SetLocale(newLocale)> |
<h3>SetLocale Example</h3>
<p>SetLocale sets the locale to the specified new locale for the current session.
<p>A locale encapsulates the set of attributes that govern the display and
formatting of date, time, number, and currency values.
<p>The locale for this system is <cfoutput>#GetLocale()#</cfoutput>
<p><cfoutput><I>the old locale was #SetLocale("English (UK)")#</I>
<p>The locale is now #GetLocale()#</cfoutput>