Page History
Cache | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
getAvailableTimeZoneIDs()Get the list of available time zones. Returns Supported Clients Sample getCountries()Gets the list of countries available for localization Returns Supported Clients Sample getCurrentCountry()Gets the current country; based on the current locale settings in the Servoy Client Locale preferences.
NOTE: For more information on i18n, see the chapter on Internationalization in the Servoy Developer User's Guide, and the chapter on Internationalization-I18N in the Programming Guide. Returns Supported Clients Sample getCurrentLanguage()Gets the current language; based on the current locale settings in the Servoy Client Locale preferences.
NOTE: For more information on i18n, see the chapter on Internationalization in the Servoy Developer User's Guide, and the chapter on Internationalization-I18N in the Programming Guide. Returns Supported Clients Sample getCurrentTimeZone()Gets the current time zone of the client; based on the current locale settings in the Servoy Client Locale preferences. For Servoy Web Clients the time zone is given by the browser (if it is possible to obtain it). Returns Supported Clients Sample getDefaultDateFormat()Gets the current default date format; based on the current locale settings in the Servoy Client Locale preferences. Returns Supported Clients Sample getDefaultNumberFormat()Gets the current default number format; based on the current locale settings in the Servoy Client Locale preferences. Returns Supported Clients Sample getI18NMessage(i18nKey)Gets the real message (for the clients locale) for a specified message key. Parameters Returns Supported Clients Sample getI18NMessage(i18nKey, dynamicValues)Gets the real message (for the clients locale) for a specified message key.
You can use parameter substitution by using {n}, where n is a index number of the value thats in the arguments array. Parameters Returns Supported Clients Sample getLanguages()Returns a dataset with rows that contains a language key (en) and the displayname (English) column.
See http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt for a list that could be returned. Returns Supported Clients Sample getSystemMessages()Returns a dataset with rows that contains 3 columns: 'key' (i18n key), 'reference' (reference text for that key) and 'locale ([CURRENT_LOCALE])' (where [CURRENT_LOCALE] is the current language) - with the system messages of servoy.
This means all servoy messages, with all available translations. Returns Supported Clients Sample getTimeZoneOffset(timeZoneId)Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date. Parameters Returns Supported Clients Sample getTimeZoneOffset(timeZoneId, date)Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date. Parameters Returns Supported Clients Sample getTimeZones()Returns an array of known timezones. Returns Supported Clients Sample setI18NMessage(i18nKey, value)Sets the value of i18n key for client scope,if value null the setting is removed.
All forms not yet loaded will change (execute this in solution startup or first form) Parameters Supported Clients Sample setLocale(language, country)Set/Overwrite the locale for this client.
All forms not yet loaded will change (execute this in solution startup or first form).
The language must be a lowercase 2 letter code defined by ISO-639.
see ISO 639-1 codes at http://en.wikipedia.org/wiki/List_of_ISO_639-1_code
The country must be an upper case 2 letter code defined by ISO-3166
see ISO-3166-1 codes at http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
NOTE: For more information on i18n, see the chapter on Internationalization in the Servoy Developer User's Guide, and the chapter on Internationalization-I18N in the Programming Guide. Parameters Supported Clients Sample setTimeZone(timezone)Sets the current time zone of the client.
The parameter should be a string having the format which can be retrieved via i18n.getAvailableTimeZones or
can be seen in the SmartClient Edit -> Preferences -> Locale at the "Default Timezone" combobox.
For instance the time zone for Netherlands is set using the ID "Europe/Amsterdam". Parameters Supported Clients Sample |
Overview
Content Tools
Activity