Child pages
  • i18n

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{hidden} DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden} {sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#getCurrentCountry]\() Gets the current country; based on the current locale settings in the Servoy Client Locale preferences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getCurrentLanguage]\() Gets the current language; based on the current locale settings in the Servoy Client Locale preferences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getCurrentTimeZone]\() Gets the current timezone of the client; based on the current locale settings in the Servoy Client Locale preferences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getDefaultDateFormat]\() Gets the current default date format; based on the current locale settings in the Servoy Client Locale preferences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getDefaultNumberFormat]\() Gets the current default number format; based on the current locale settings in the Servoy Client Locale preferences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getI18NMessage]\(i18nKey, dynamicValues) Gets the real message (for the clients locale) for a specified message key.{td}{tr}{tbody}{tbody}{tr}{td}[JSDataSet]{td}{td}[#getLanguages]\() Returns a dataset with rows that contains a language key (en) and the displayname (English) column.{td}{tr}{tbody}{tbody}{tr}{td}[JSDataSet]{td}{td}[#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.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getTimeZoneOffset]\(timezone, date) Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getTimeZones]\() Returns an array of known timezones.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setI18NMessage]\(i18nKey, value) Sets the value of i18n key for client scope,if value null the setting is removed.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setI18NMessagesFilter]\(columnName, value) Call this if you want to add a filter for a column (created by you) in the i18n table.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setLocale]\(language, country) Set/Overwrite the locale for this client.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A}{tr:id=name}{td}h6.getCurrentCountry{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getCurrentCountry{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_des|text=|trigger=button}{sub-section}{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_des|trigger=none|class=sIndent}Gets the current country; based on the current locale settings
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryGet the list of available time zones.Gets the list of countries available for localizationGets the currency format from client (using client's locale).Gets the current country; based on the current locale settings in the Servoy Client Locale preferences.Gets the current private extensions; based on the current locale settings in the Servoy Client Locale preferences.Gets the current language; based on the current locale settings in the Servoy Client Locale preferences.Gets the current time zone of the client; based on the current locale settings in the Servoy Client Locale preferences.Gets the date format from client (using client's locale).Gets the current default date format from server; based on the current admin settings.Gets the current default number format from server; based on the current admin settings.Gets the real message (for the clients locale) for a specified message key.Gets the real message (for the clients locale) for a specified message key.Gets the real message using specified locale for a specified message key.Gets the real message using the specified locale for a specified message key.Returns a dataset with rows that contains a language key (en) and the displayname (English) column.Gets the number format from client (using client's locale).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.Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date.Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date.Returns an array of known timezones.voidSets the value of i18n key for client scope,if value null the setting is removed.voidSet/Overwrite the locale for this client.voidSet/Overwrite the locale for this client.voidSets the current time zone of the client.

functionservoy sDetail2100%height:30px2Methods DetailsgetAvailableTimeZoneIDsname

getAvailableTimeZoneIDs()

dessIndent
Get the list of available time zones.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowgetCountriesname

getCountries()

dessIndent
Gets the list of countries available for localization
ret

Returns

sIndent a String array containing the available countries.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getCurrencyFormatname

getCurrencyFormat()

dessIndent
Gets the currency format from client (using client's locale).
ret

Returns

sIndent a String representing the currency format.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getCurrentCountryname

getCurrentCountry()

dessIndent
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.
ret

Returns

sIndent a String representing the current country.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getCurrentExtensionsname

getCurrentExtensions()

dessIndent
Gets the current private extensions; 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.
ret

Returns

sIndent an array of Strings representing the current extensions.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getCurrentLanguagename

getCurrentLanguage()

dessIndent
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
(i18n)
 in the Servoy Developer User's Guide, 
beginning with
and the 
Introduction
chapter 
to
on 
i18n{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_ret|text=|trigger=button}{sub-section}{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_ret|trigger=none|class=sIndent}[String] -- a String representing the current country.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_see|text=|trigger=button}{sub-section}{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_see|text=|trigger=button}{sub-section}{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_sam|text=|trigger=button}{sub-section}{sub-section:DEC62E6F-AB35-47F6-B8AB-B63FFB17E02A_sam|class=sIndent|trigger=none}{code:language=javascript} var currCountry = i18n.getCurrentCountry(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7C9A5F2E-BEDD-429A-8CDE-30BE5E315979}{tr:id=name}{td}h6.getCurrentLanguage{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getCurrentLanguage{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_des|text=|trigger=button}{sub-section}{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_des|trigger=none|class=sIndent}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 (i18n) in the Servoy Developer User's Guide, beginning with the Introduction to i18n{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_ret|text=|trigger=button}{sub-section}{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_ret|trigger=none|class=sIndent}[String] -- a String representing the current language.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_see|text=|trigger=button}{sub-section}{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_see|text=|trigger=button}{sub-section}{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_sam|text=|trigger=button}{sub-section}{sub-section:7C9A5F2E-BEDD-429A-8CDE-30BE5E315979_sam|class=sIndent|trigger=none}{code:language=javascript} var currLang = i18n.getCurrentLanguage(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=537BEA2D-FD22-4751-BFE0-97FF033323BD}{tr:id=name}{td}h6.getCurrentTimeZone{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getCurrentTimeZone{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_des|text=|trigger=button}{sub-section}{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_des|trigger=none|class=sIndent}Gets the current timezone of the client; based on the current locale settings in the Servoy Client Locale preferences.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_ret|text=|trigger=button}{sub-section}{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_ret|trigger=none|class=sIndent}[String] -- a String representing the current timezone.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_see|text=|trigger=button}{sub-section}{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_see|text=|trigger=button}{sub-section}{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_sam|text=|trigger=button}{sub-section}{sub-section:537BEA2D-FD22-4751-BFE0-97FF033323BD_sam|class=sIndent|trigger=none}{code:language=javascript} var currTimeZone = i18n.getCurrentTimeZone(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7E9CA5F4-0CAE-4130-8DDD-F501884B67AA}{tr:id=name}{td}h6.getDefaultDateFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getDefaultDateFormat{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_des|text=|trigger=button}{sub-section}{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_des|trigger=none|class=sIndent}Gets the current default date format; based on the current locale settings in the Servoy Client Locale preferences.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_ret|text=|trigger=button}{sub-section}{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_ret|trigger=none|class=sIndent}[String] -- a String representing the default date format.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_see|text=|trigger=button}{sub-section}{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_see|text=|trigger=button}{sub-section}{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_sam|text=|trigger=button}{sub-section}{sub-section:7E9CA5F4-0CAE-4130-8DDD-F501884B67AA_sam|class=sIndent|trigger=none}{code:language=javascript} var defaultDateFormat = i18n.getDefaultDateFormat(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=574C292D-B90C-43D8-B651-57A4415DE3EB}{tr:id=name}{td}h6.getDefaultNumberFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getDefaultNumberFormat{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_des|text=|trigger=button}{sub-section}{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_des|trigger=none|class=sIndent}Gets the current default number format; based on the current locale settings in the Servoy Client Locale preferences.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_ret|text=|trigger=button}{sub-section}{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_ret|trigger=none|class=sIndent}[String] -- a String representing the default number format.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_see|text=|trigger=button}{sub-section}{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_see|text=|trigger=button}{sub-section}{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_sam|text=|trigger=button}{sub-section}{sub-section:574C292D-B90C-43D8-B651-57A4415DE3EB_sam|class=sIndent|trigger=none}{code:language=javascript} var defaultNumberFormat = i18n.getDefaultNumberFormat(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=68E01193-78DE-4AA4-B297-6E79167533FA}{tr:id=name}{td}h6.getI18NMessage{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getI18NMessage{span}{span:id=iets|style=float: left;}\(i18nKey, dynamicValues){span}{td}{tr}{tr:id=des}{td}{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_des|text=|trigger=button}{sub-section}{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_des|trigger=none|class=sIndent}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.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_prs|trigger=none}i18nKey -- The message key \[dynamicValues\] -- Arguments array when using parameter substitution. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_ret|text=|trigger=button}{sub-section}{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_ret|trigger=none|class=sIndent}[String] -- a String that is the message for the message key.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_see|text=|trigger=button}{sub-section}{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_see|text=|trigger=button}{sub-section}{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_sam|text=|trigger=button}{sub-section}{sub-section:68E01193-78DE-4AA4-B297-6E79167533FA_sam|class=sIndent|trigger=none}{code:language=javascript} // returns 'Welcome my_name in my solution' // if the key 'mykey.username.text' is 'Welcome {0} in my solution' i18n.getI18NMessage('mykey.username.text',new Array('my_name')) {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EB8F8E21-DCBB-4189-BF33-5078589A29D6}{tr:id=name}{td}h6.getLanguages{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSDataSet]{span}{span:id=iets|style=float: left; font-weight: bold;}getLanguages{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_des|text=|trigger=button}{sub-section}{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_des|trigger=none|class=sIndent}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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_ret|text=|trigger=button}{sub-section}{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_ret|trigger=none|class=sIndent}[JSDataSet] -- a JSDataSet with all the languages.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_see|text=|trigger=button}{sub-section}{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=link}{td}*External links*\\{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_see|text=|trigger=button}{sub-section}{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_link|class=sIndent|trigger=none}http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt {sub-section}{td}{tr}{tr:id=sam}{td}*Sample*\\{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_sam|text=|trigger=button}{sub-section}{sub-section:EB8F8E21-DCBB-4189-BF33-5078589A29D6_sam|class=sIndent|trigger=none}{code:language=javascript} var set = i18n.getLanguages(); for(var i=1;i<=set.getMaxRowIndex();i++) { application.output(set.getValue(i, 1) + " " + set.getValue(i, 2)); } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=470BF12D-FBA7-4989-A5F4-0D81406C0AE6}{tr:id=name}{td}h6.getSystemMessages{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSDataSet]{span}{span:id=iets|style=float: left; font-weight: bold;}getSystemMessages{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_des|text=|trigger=button}{sub-section}{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_des|trigger=none|class=sIndent}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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_ret|text=|trigger=button}{sub-section}{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_ret|trigger=none|class=sIndent}[JSDataSet] -- a JSDataSet with all the system messages.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_see|text=|trigger=button}{sub-section}{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_see|text=|trigger=button}{sub-section}{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_sam|text=|trigger=button}{sub-section}{sub-section:470BF12D-FBA7-4989-A5F4-0D81406C0AE6_sam|class=sIndent|trigger=none}{code:language=javascript} var set = i18n.getSystemMessages(); for(var i=1;i<=set.getMaxRowIndex();i++) { application.output(set.getValue(i, 1) + " " + set.getValue(i, 2)+ " " + set.getValue(i, 3)); } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7996002F-566D-465D-9BFA-E879E438C061}{tr:id=name}{td}h6.getTimeZoneOffset{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getTimeZoneOffset{span}{span:id=iets|style=float: left;}\(timezone, date){span}{td}{tr}{tr:id=des}{td}{sub-section:7996002F-566D-465D-9BFA-E879E438C061_des|text=|trigger=button}{sub-section}{sub-section:7996002F-566D-465D-9BFA-E879E438C061_des|trigger=none|class=sIndent}Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7996002F-566D-465D-9BFA-E879E438C061_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7996002F-566D-465D-9BFA-E879E438C061_prs|trigger=none}timezone -- The timezone to get the offset for. \[date\] -- The date in the timezone (default current data) {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7996002F-566D-465D-9BFA-E879E438C061_ret|text=|trigger=button}{sub-section}{sub-section:7996002F-566D-465D-9BFA-E879E438C061_ret|trigger=none|class=sIndent}[Number] -- an int representing the timezone offset from UTC.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7996002F-566D-465D-9BFA-E879E438C061_see|text=|trigger=button}{sub-section}{sub-section:7996002F-566D-465D-9BFA-E879E438C061_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7996002F-566D-465D-9BFA-E879E438C061_see|text=|trigger=button}{sub-section}{sub-section:7996002F-566D-465D-9BFA-E879E438C061_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7996002F-566D-465D-9BFA-E879E438C061_sam|text=|trigger=button}{sub-section}{sub-section:7996002F-566D-465D-9BFA-E879E438C061_sam|class=sIndent|trigger=none}{code:language=javascript} var timeZoneOffset = i18n.getTimeZoneOffset('America/Los_Angeles'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=344AFD33-7777-42BE-B41B-A5816CE7313D}{tr:id=name}{td}h6.getTimeZones{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getTimeZones{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_des|text=|trigger=button}{sub-section}{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_des|trigger=none|class=sIndent}Returns an array of known timezones.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_ret|text=|trigger=button}{sub-section}{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_ret|trigger=none|class=sIndent}[String]\[] -- an Array with all the timezones.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_see|text=|trigger=button}{sub-section}{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_see|text=|trigger=button}{sub-section}{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_sam|text=|trigger=button}{sub-section}{sub-section:344AFD33-7777-42BE-B41B-A5816CE7313D_sam|class=sIndent|trigger=none}{code:language=javascript} var timeZones = i18n.getTimeZones(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8D51B0EA-E15D-4E16-A02F-6D478E9750A6}{tr:id=name}{td}h6.setI18NMessage{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setI18NMessage{span}{span:id=iets|style=float: left;}\(i18nKey, value){span}{td}{tr}{tr:id=des}{td}{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_des|text=|trigger=button}{sub-section}{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_des|trigger=none|class=sIndent}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){sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_prs|trigger=none}i18nKey -- The message key value -- They value for the message key. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_ret|text=|trigger=button}{sub-section}{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_see|text=|trigger=button}{sub-section}{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_see|text=|trigger=button}{sub-section}{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_sam|text=|trigger=button}{sub-section}{sub-section:8D51B0EA-E15D-4E16-A02F-6D478E9750A6_sam|class=sIndent|trigger=none}{code:language=javascript} //sets the value of i18n key for client scope; if value null the setting is removed //Warning: already created form elements with i18n text lookup will not change, //so call this method in the solution startup method or in methods from first form i18n.setI18NMessage('mykey.username.text','my_name') {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2F1BBEC3-4356-4D60-9580-1CFD18242EA5}{tr:id=name}{td}h6.setI18NMessagesFilter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setI18NMessagesFilter{span}{span:id=iets|style=float: left;}\(columnName, value){span}{td}{tr}{tr:id=des}{td}{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_des|text=|trigger=button}{sub-section}{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_des|trigger=none|class=sIndent}Call this if you want to add a filter for a column (created by you) in the i18n table. So that you can have multiple default values and multiple values per locale for one key.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_prs|trigger=none}columnName -- The column name that is the filter column in the i18n table. value -- The filter value. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_ret|text=|trigger=button}{sub-section}{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_see|text=|trigger=button}{sub-section}{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_see|text=|trigger=button}{sub-section}{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_sam|text=|trigger=button}{sub-section}{sub-section:2F1BBEC3-4356-4D60-9580-1CFD18242EA5_sam|class=sIndent|trigger=none}{code:language=javascript} // Puts i18n in filter mode - this allows you to have multiple default/per locale // values for one key and to use one of them based on the filter parameters. // Let's say you added a new column "message_variant" to your i18n table. // Now you can have keys that will translate to a language differently depending on the used variant // For example you have 2 rows in you table for key X, language EN, different values and different "message_variant" (let's say 1 and 2) // If you want the solution to use the first variant, you will have to call: i18n.setI18NMessagesFilter('message_variant', '1') // ATTENTION: if you use setI18NMessagesFilter(...) it is not recommended to use the i18n Dialog (especially before the filter is applied through JS). {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C8417B0E-7426-4DD1-8E6F-93E9059F7781}{tr:id=name}{td}h6.setLocale{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setLocale{span}{span:id=iets|style=float: left;}\(language, country){span}{td}{tr}{tr:id=des}{td}{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_des|text=|trigger=button}{sub-section}{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_des|trigger=none|class=sIndent}
Internationalization-I18N in the Programming Guide.
ret

Returns

sIndent a String representing the current language.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getCurrentTimeZonename

getCurrentTimeZone()

dessIndent
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).
ret

Returns

sIndent a String representing the current time zone.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDateFormatname

getDateFormat()

dessIndent
Gets the date format from client (using client's locale).
ret

Returns

sIndent a String representing the date format.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDefaultDateFormatname

getDefaultDateFormat()

dessIndent
Gets the current default date format from server; based on the current admin settings.
ret

Returns

sIndent a String representing the default date format.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDefaultNumberFormatname

getDefaultNumberFormat()

dessIndent
Gets the current default number format from server; based on the current admin settings.
ret

Returns

sIndent a String representing the default number format.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getI18NMessagename

getI18NMessage(i18nKey)

dessIndent
Gets the real message (for the clients locale) for a specified message key.
prs

Parameters

sIndenti18nKeyThe message key
ret

Returns

sIndent a String that is the message for the message key.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getI18NMessagename

getI18NMessage(i18nKey, dynamicValues)

dessIndent
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.
prs

Parameters

sIndenti18nKeyThe message keydynamicValuesArguments array when using parameter substitution.
ret

Returns

sIndent a String that is the message for the message key.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getI18NMessagename

getI18NMessage(i18nKey, dynamicValues, language, country)

dessIndent
Gets the real message using specified 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.
prs

Parameters

sIndenti18nKeyThe message keydynamicValuesArguments array when using parameter substitution.languageThe lowercase 2 letter code of the localecountryThe upper case 2 letter code of the locale
ret

Returns

sIndent a String that is the message for the message key.
clients

Supported Clients

sIndentWebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getI18NMessagename

getI18NMessage(i18nKey, language, country)

dessIndent
Gets the real message using the specified locale for a specified message key.
prs

Parameters

sIndenti18nKeyThe message keylanguageThe lowercase 2 letter code of the localecountryThe upper case 2 letter code of the locale
ret

Returns

sIndent a String that is the message for the message key.
clients

Supported Clients

sIndentWebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getLanguagesname

getLanguages()

dessIndent
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.
ret

Returns

sIndent a JSDataSet with all the languages.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getNumberFormatname

getNumberFormat()

dessIndent
Gets the number format from client (using client's locale).
ret

Returns

sIndent a String representing the number format.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getSystemMessagesname

getSystemMessages()

dessIndent
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.
ret

Returns

sIndent a JSDataSet with all the system messages.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getTimeZoneOffsetname

getTimeZoneOffset(timeZoneId)

dessIndent
Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date.
prs

Parameters

sIndenttimeZoneIdThe time zone to get the offset for.
ret

Returns

sIndent an int representing the time zone's offset from UTC.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getTimeZoneOffsetname

getTimeZoneOffset(timeZoneId, date)

dessIndent
Returns the offset (in milliseconds) of this time zone from UTC for the current date or at the specified date.
prs

Parameters

sIndenttimeZoneIdThe time zone to get the offset for.dateThe date in the time zone (default current date). Needed in case daylight saving time/GMT offset changes are used in the time zone.
ret

Returns

sIndent an int representing the time zone's offset from UTC.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getTimeZonesname

getTimeZones()

dessIndent
Returns an array of known timezones.
ret

Returns

sIndent an Array with all the timezones.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setI18NMessagename

setI18NMessage(i18nKey, value)

dessIndent
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)
prs

Parameters

sIndenti18nKeyThe message keyvalueThey value for the message key.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
setLocalename

setLocale(language, country)

dessIndent
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-649. see http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt
).

The 
country
language must be 
an
a 
upper case
lowercase 2 letter code defined by 
IS
ISO-
3166
639.
see ISO 639-1 codes at http://
www
en.
chemie.fu-berlin.de/diverse/doc/ISO_3166.html NOTE: For more information on i18n, see the chapter on Internationalization (i18n) in the Servoy Developer User's Guide, beginning with the Introduction to i18n{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_prs|trigger=none}language -- The lowercase 2 letter code country -- The upper case 2 letter code. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_ret|text=|trigger=button}{sub-section}{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_see|text=|trigger=button}{sub-section}{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_see|text=|trigger=button}{sub-section}{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_sam|text=|trigger=button}{sub-section}{sub-section:C8417B0E-7426-4DD1-8E6F-93E9059F7781_sam|class=sIndent|trigger=none}{code:language=javascript} //Warning: already created form elements with i18n text lookup will not change, //so call this method in the solution startup method or in methods from first form i18n.setLocale('en','US'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
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.
prs

Parameters

sIndentlanguageThe lowercase 2 letter codecountryThe upper case 2 letter code.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
setLocalename

setLocale(language, country, extensions)

dessIndent
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

The extensions must be an array of strings indicating for example different industries. Each extension string must consist of only letters and digits with a max length of 8 characters
see private extensions at https://docs.oracle.com/javase/tutorial/i18n/locale/extensions.html

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.
prs

Parameters

sIndentlanguageThe lowercase 2 letter codecountryThe upper case 2 letter codeextensionsarray of private extensions strings
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setTimeZonename

setTimeZone(timezone)

dessIndent
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".
prs

Parameters

sIndenttimezonethe client's time zone
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow