Locale Viper Module
Viper Methods
Global Viper Method | Description |
---|---|
Locale.CalculateAge Viper Method | Formats the time difference between two dates as a userfriendly string in the given locale. |
Locale.Culture.Getstring Viper Method | Gets the string resource associated with the given identifier for the specified localization culture. |
Locale.Culture.Localize Viper Method | Returns a localization-resolved string or returned the string unchanged, using a specific culture. |
Locale.Culture.Translate Viper Method | Given a string resource value for the neutral resource culture, returns the associated system string resource value localized for the current UI culture, if it exists, or null otherwise. |
Locale.Flush Viper Method | Flushes the cached string resources. |
Locale.FormatAge Viper Method | Formats the time difference between two dates as a userfriendly string in the given locale. |
Locale.FormatCurrency Viper Method | Formats the currency to its equivalent string representation using the current culture settings. |
Locale.FormatDateTime Viper Method | Formats the date time to its equivalent string representation using the current culture settings. |
Locale.FormatDateTimeCustom Viper Method | Formats the date time using specified formatting pattern with the current culture settings. |
Locale.FormatLongDate Viper Method | Formats the date to its equivalent long date string representation using the current culture settings. |
Locale.FormatLongDateLongTime Viper Method | Formats the date to its equivalent long date, long time string representation using the current culture settings. |
Locale.FormatLongDateShortTime Viper Method | Formats the date to its equivalent long date, short time string representation using the current culture settings. |
Locale.FormatLongTime Viper Method | Formats the date to its equivalent long time string representation using the current culture settings. |
Locale.FormatNumber Viper Method | Formats the number to its equivalent string representation using the current culture settings. |
Locale.FormatNumberCustom Viper Method | Formats the given number using a custom formatting pattern. |
Locale.FormatShortDate Viper Method | Formats the date to its equivalent short date string representation using the current culture settings. |
Locale.FormatShortDateTime Viper Method | Formats the date time to its equivalent short datetime string representation using the current culture settings. |
Locale.FormatShortTime Viper Method | Formats the date to its equivalent short time string representation using the current culture settings. |
Locale.FormatString Viper Method | Formats the specified string/number into the specified format in the current culture. |
Locale.FormatStringForCulture Viper Method | Formats the specified string/number into the specified format. |
Locale.FormatTimeSpan Viper Method | Returns a formatted string representing the elapsed time span since the specified{html.link('DATATYPE.DATETIME')}value until now. |
Locale.GetCulture Viper Method | Gets the current culture. |
Locale.GetCultureFromChannel Viper Method | Gets the culture from the current channel. |
Locale.GetCultureFromUser Viper Method | Gets the culture from the user's profile. |
Locale.GetCultureFromUserAgent Viper Method | Gets the culture from the user agent's headers |
Locale.GetDisplayName Viper Method | Gets the display name of the current culture. |
Locale.GetKey Viper Method | Returns the resource key associated with the given resource value in the default culture. Returns null if no match was found. |
Locale.GetLCID Viper Method | Gets the LCID of the given culture. |
Locale.GetName Viper Method | Gets the name of the current culture. |
Locale.GetParent Viper Method | Gets the parent culture. |
Locale.GetSetupFromDatabase Viper Method | Returns the localization string resources for the specified application, as present in the CMS database. |
Locale.GetSetupFromItem Viper Method | Returns the localization string resources found in the XML of the specified item. |
Locale.GetString Viper Method | Gets the string resource associated with the given identifier for the current localization culture. |
Locale.GetWeekOfYear Viper Method | Gets the number of the week in the current locale. |
Locale.IsResourceIdentifier Viper Method | Tests if the supplied string is a resource identifier. |
Locale.Localize Viper Method | Returns a localization-resolved string or returned the string unchanged. |
Locale.MonthName Viper Method | Returns the name of the month with the given index in the current channel's localization culture. |
Locale.SetLocale Viper Method | Sets the locale of the current render to the locale of the given culture. |
Locale.Setup Viper Method | Performs a setup of the localization by synchronizing resource strings from an XML source to the database. |
Locale.Translate Viper Method | Given a string resource value for the neutral resource culture, returns the associated system string resource value localized for the current UI culture, if it exists, or null otherwise. |
Locale.WeekdayName Viper Method | Returns the name of the weekday with the given index in the current channel's localization culture. |
See Also
-
Locale.CalculateAge Viper Method
Formats the time difference between two dates as a userfriendly string in the given locale. -
Locale.Culture.Getstring Viper Method
Gets the string resource associated with the given identifier for the specified localization culture. -
Locale.Culture.Localize Viper Method
Returns a localization-resolved string or returned the string unchanged, using a specific culture. -
Locale.Culture.Translate Viper Method
Given a string resource value for the neutral resource culture, returns the associated system string resource value localized for the current UI culture, if it exists, or null otherwise. -
Locale.Flush Viper Method
Flushes the cached string resources. -
Locale.FormatAge Viper Method
Formats the time difference between two dates as a userfriendly string in the given locale. -
Locale.FormatCurrency Viper Method
Formats the currency to its equivalent string representation using the current culture settings. -
Locale.FormatDateTime Viper Method
Formats the date time to its equivalent string representation using the current culture settings. -
Locale.FormatDateTimeCustom Viper Method
Formats the date time using specified formatting pattern with the current culture settings. -
Locale.FormatLongDate Viper Method
Formats the date to its equivalent long date string representation using the current culture settings. -
Locale.FormatLongDateLongTime Viper Method
Formats the date to its equivalent long date, long time string representation using the current culture settings. -
Locale.FormatLongDateShortTime Viper Method
Formats the date to its equivalent long date, short time string representation using the current culture settings. -
Locale.FormatLongTime Viper Method
Formats the date to its equivalent long time string representation using the current culture settings. -
Locale.FormatNumber Viper Method
Formats the number to its equivalent string representation using the current culture settings. -
Locale.FormatNumberCustom Viper Method
Formats the given number using a custom formatting pattern. -
Locale.FormatShortDate Viper Method
Formats the date to its equivalent short date string representation using the current culture settings. -
Locale.FormatShortDateTime Viper Method
Formats the date time to its equivalent short datetime string representation using the current culture settings. -
Locale.FormatShortTime Viper Method
Formats the date to its equivalent short time string representation using the current culture settings. -
Locale.FormatString Viper Method
Formats the specified string/number into the specified format in the current culture. -
Locale.FormatStringForCulture Viper Method
Formats the specified string/number into the specified format. -
Locale.FormatTimeSpan Viper Method
Returns a formatted string representing the elapsed time span since the specified{html.link('DATATYPE.DATETIME')}value until now. -
Locale.GetCulture Viper Method
Gets the current culture. -
Locale.GetCultureFromChannel Viper Method
Gets the culture from the current channel. -
Locale.GetCultureFromUser Viper Method
Gets the culture from the user's profile. -
Locale.GetCultureFromUserAgent Viper Method
Gets the culture from the user agent's headers -
Locale.GetDisplayName Viper Method
Gets the display name of the current culture. -
Locale.GetKey Viper Method
Returns the resource key associated with the given resource value in the default culture. Returns null if no match was found. -
Locale.GetLCID Viper Method
Gets the LCID of the given culture. -
Locale.GetName Viper Method
Gets the name of the current culture. -
Locale.GetParent Viper Method
Gets the parent culture. -
Locale.GetSetupFromDatabase Viper Method
Returns the localization string resources for the specified application, as present in the CMS database. -
Locale.GetSetupFromItem Viper Method
Returns the localization string resources found in the XML of the specified item. -
Locale.GetString Viper Method
Gets the string resource associated with the given identifier for the current localization culture. -
Locale.GetWeekOfYear Viper Method
Gets the number of the week in the current locale. -
Locale.IsResourceIdentifier Viper Method
Tests if the supplied string is a resource identifier. -
Locale.Localize Viper Method
Returns a localization-resolved string or returned the string unchanged. -
Locale.MonthName Viper Method
Returns the name of the month with the given index in the current channel's localization culture. -
Locale.SetLocale Viper Method
Sets the locale of the current render to the locale of the given culture. -
Locale.Setup Viper Method
Performs a setup of the localization by synchronizing resource strings from an XML source to the database. -
Locale.Translate Viper Method
Given a string resource value for the neutral resource culture, returns the associated system string resource value localized for the current UI culture, if it exists, or null otherwise. -
Locale.WeekdayName Viper Method
Returns the name of the weekday with the given index in the current channel's localization culture.
- Macro
- Macro Parameters
- Macro Parameter Properties
-
Vipers
-
Global Viper Methods
- AIM Viper Class
- Audit Viper Class
- Buffer Viper Class
- Cache Viper Class
- CacheFile Viper Class
- Calendar Viper Class
- Channel Viper Class
- Char Viper Class
- Cms Viper Class
- ContentType Viper Class
- Convert Viper Class
- Database Viper Class
- DataTable Viper Class
- DateTime Viper Class
- Debug Viper Class
- DigiD Viper Class
- Env Viper Class
- FileSystem Viper Class
- FlexLayout Viper Class
- Html Viper Class
- Html.Color Viper Class
- Html.Css Viper Class
- Image Viper Class
- ImageProperties Viper Class
- ItemComments Viper Class
- ItemData Viper Class
- License Viper Class
-
- Locale.CalculateAge Viper Method
- Locale.Culture.Getstring Viper Method
- Locale.Culture.Localize Viper Method
- Locale.Culture.Translate Viper Method
- Locale.Flush Viper Method
- Locale.FormatAge Viper Method
- Locale.FormatCurrency Viper Method
- Locale.FormatDateTime Viper Method
- Locale.FormatDateTimeCustom Viper Method
- Locale.FormatLongDate Viper Method
- Locale.FormatLongDateLongTime Viper Method
- Locale.FormatLongDateShortTime Viper Method
- Locale.FormatLongTime Viper Method
- Locale.FormatNumber Viper Method
- Locale.FormatNumberCustom Viper Method
- Locale.FormatShortDate Viper Method
- Locale.FormatShortDateTime Viper Method
- Locale.FormatShortTime Viper Method
- Locale.FormatString Viper Method
- Locale.FormatStringForCulture Viper Method
- Locale.FormatTimeSpan Viper Method
- Locale.GetCulture Viper Method
- Locale.GetCultureFromChannel Viper Method
- Locale.GetCultureFromUser Viper Method
- Locale.GetCultureFromUserAgent Viper Method
- Locale.GetDisplayName Viper Method
- Locale.GetKey Viper Method
- Locale.GetLCID Viper Method
- Locale.GetName Viper Method
- Locale.GetParent Viper Method
- Locale.GetSetupFromDatabase Viper Method
- Locale.GetSetupFromItem Viper Method
- Locale.GetString Viper Method
- Locale.GetWeekOfYear Viper Method
- Locale.IsResourceIdentifier Viper Method
- Locale.Localize Viper Method
- Locale.MonthName Viper Method
- Locale.SetLocale Viper Method
- Locale.Setup Viper Method
- Locale.Translate Viper Method
- Locale.WeekdayName Viper Method
- Logging Viper Class
- Login Viper Class
- Math Viper Class
- Payment Viper Class
- Personalization Viper Class
- PlaceHolder Viper Class
- Poll Viper Class
- Publication Viper Class
- RenderTemplate Viper Class
- Request Viper Class
- Response Viper Class
- Scf Viper Class
- Security Viper Class
- Session Viper Class
- Site Viper Class
- Smartlet Viper Class
- SmartletEditor Viper Class
- SmartletPreset Viper Class
- Smi Viper Class
- SmiData Viper Class
- Spice Viper Class
- Sql Viper Class
- StandardsCompliance Viper Class
- Storage Viper Class
- String Viper Class
- SXML Viper Class
- Sys Viper Class
- Tags Viper Class
- Translation Viper Class
- Url Viper Class
- User Viper Class
- UserItemFeedback Viper Class
- Xml Viper Class
- Local Viper Methods
-
Global Viper Methods
- SXML Data Types
- Examples
- Tips & Tricks