Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Unknown macro: {div}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
Unknown macro: {div}
Unknown macro: {table}
{column:width=80px|padding=0px}{column}{column}{column}
Unknown macro: {tr} Unknown macro: {th} Method Summary
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} getCurrentLanguage()
Gets the current language; based on the current locale settings in the Servoy Client Locale preferences.
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} getI18NMessage(i18nKey)
Gets the real message (for the clients locale) for a specified message key.
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} getI18NMessage(i18nKey, dynamicValues)
Gets the real message (for the clients locale) for a specified message key.
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} setI18NMessage(i18nKey, value)
Sets the value of i18n key for client scope,if value null the setting is removed.
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} setLocale(language, country)
Set/Overwrite the locale for this client.
Unknown macro: {table}
{column:width=100%|padding=0px}{column}
Unknown macro: {tr} Unknown macro: {th} Method Details
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} getCurrentLanguage
Unknown macro: {tr} Unknown macro: {td} Unknown macro: {span} getCurrentLanguage
Unknown macro: {tr} Unknown macro: {td} Returns
Unknown macro: {div} String – a String representing the current language.
Unknown macro: {tr} Unknown macro: {td} Sample
Unknown macro: {div}
var currLang = i18n.getCurrentLanguage();
Unknown macro: {tr} Unknown macro: {td}
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} getI18NMessage
Unknown macro: {tr} Unknown macro: {td} Unknown macro: {span} getI18NMessage
Unknown macro: {span} (i18nKey)
Unknown macro: {tr} Unknown macro: {td} Parameters
Unknown macro: {div} {String} i18nKey – The message key
Unknown macro: {tr} Unknown macro: {td} Returns
Unknown macro: {div} String – a String that is the message for the message key.
Unknown macro: {tr} Unknown macro: {td} Sample
Unknown macro: {div}
// 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'))
Unknown macro: {tr} Unknown macro: {td}
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} getI18NMessage
Unknown macro: {tr} Unknown macro: {td} Unknown macro: {span} getI18NMessage
Unknown macro: {span} (i18nKey, dynamicValues)
Unknown macro: {tr} Unknown macro: {td} Parameters
Unknown macro: {div} {String} i18nKey – The message key
{Object[]} dynamicValues – Arguments array when using parameter substitution.
Unknown macro: {tr} Unknown macro: {td} Returns
Unknown macro: {div} String – a String that is the message for the message key.
Unknown macro: {tr} Unknown macro: {td} Sample
Unknown macro: {div}
// 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'))
Unknown macro: {tr} Unknown macro: {td}
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} setI18NMessage
Unknown macro: {tr} Unknown macro: {td} Unknown macro: {span} void
Unknown macro: {span} setI18NMessage
Unknown macro: {span} (i18nKey, value)
Unknown macro: {tr} Unknown macro: {td} Parameters
Unknown macro: {div} {String} i18nKey – The message key
{String} value – They value for the message key.
Unknown macro: {tr} Unknown macro: {td} Returns
Unknown macro: {div} void
Unknown macro: {tr} Unknown macro: {td} Sample
Unknown macro: {div}
//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
//this method saves message for current locale, so if locale is changed with setLocale, all messages set from scripting will be lost
i18n.setI18NMessage('mykey.username.text','my_name')
Unknown macro: {tr} Unknown macro: {td}
Unknown macro: {tbody} Unknown macro: {tr} Unknown macro: {td} setLocale
Unknown macro: {tr} Unknown macro: {td} Unknown macro: {span} void
Unknown macro: {span} setLocale
Unknown macro: {span} (language, country)
Unknown macro: {tr} Unknown macro: {td} Parameters
Unknown macro: {div} {String} language – The lowercase 2 letter code
{String} country – The upper case 2 letter code.
Unknown macro: {tr} Unknown macro: {td} Returns
Unknown macro: {div} void
Unknown macro: {tr} Unknown macro: {td} Sample
Unknown macro: {div}
//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');
Unknown macro: {tr} Unknown macro: {td}