Logo

Docs

  • HOME

Class: I18nDico

I18nDico

new I18nDico()

Create a new instance of I18nDico
Properties:
Name Type Description
dicoJson String json object containing the language entries
language String The language of the dico
name String The name of the dico
Source:
  • i18n/I18nDico.js, line 57
See:
  • I18n
  • Resource
Examples
Load Dico from app
		function loadI18n(p_app){
			var i18n = p_app.i18n;
            i18n.load({
				onSuccess:function(){
					var dico = i18n.dicos[0];
					dico.load({
						onSuccess:function(){
							alert("Dico "+dico.name+" loaded!");
						}
					});				
				}
			});
		};
	
Load designer Dico from process
		function loadi18n(p){
            var i18n = p.i18n;
            i18n.load({
				onSuccess:function(){
					i18n.loadDesignerDico({
						onSuccess:function(){
							alert(JSON.stringify(i18n.designerDico));
						}			   
					});				
				}
			});
		};

Methods

generateUrl()

Overrides Resource's generateUrl method to return the request url
Source:
  • i18n/I18nDico.js, line 78
See:
  • Resource#generateUrl

load(options)

Override Resource load method.
Parameters:
Name Type Description
options object options to be used during the call
Properties
Name Type Argument Description
onSuccess Resource~onSuccess a callback function called in case of a success
onFailure Resource~onFailure <optional>
a callback function called in case of a failure
baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:
  • i18n/I18nDico.js, line 91
See:
  • Resource#load

loadPreset()

Overrides Resource's loadPreset method.
Source:
  • i18n/I18nDico.js, line 72
See:
  • Resource#loadPreset

update(options)

Update override.
Parameters:
Name Type Description
options object options to be used during the call
Properties
Name Type Argument Description
onSuccess Resource~onSuccess a callback function called in case of a success
onFailure Resource~onFailure <optional>
a callback function called in case of a failure
baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:
  • i18n/I18nDico.js, line 136
See:
  • Resource#update
Example
Update Library
		function loadI18n(p_app){
			var i18n = p_app.i18n;
			var opti18n = {};
			opti18n.onSuccess =  function(){
				var library = i18n.languages[0];
				var optLib = {};
				optLib.onSuccess = function(){
					library.dicoJson.widget.id_name.text="New Name";//Change JSON values
					optUp = {};
					optUp.onSuccess=function(){
					   alert("Lib updated!");
					};
					optUp.onFailure=function(e){
					   alert("Lib NOT updated! "+JSON.stringify(e));
					};
					library.update(optUp);
				};
				library.load(optLib);
			};
			i18n.load(opti18n);
		};

Index

Classes

  • AccessLog
  • AllLaneUserList
  • AppInstanceReport
  • Context
  • Customer
  • CustomerDomainList
  • CustomerList
  • CustomerSubscriptionList
  • CustomerTrafficList
  • CustomList
  • CustomListList
  • Domain
  • Host
  • HostList
  • HostMode
  • I18n
  • I18nDico
  • Lane
  • LaneList
  • LanePoolList
  • LogLog
  • Metadata
  • Oauth
  • OauthList
  • Pool
  • PoolList
  • Preferences
  • Process
  • ProcessList
  • Project
  • ProjectAppliQuery
  • ProjectChildList
  • ProjectLaneList
  • ProjectList
  • ProjectProcess
  • ProjectProcessList
  • ProjectProcessQuery
  • ProjectVersion
  • ProjectVersionList
  • Report
  • RequestLog
  • Resource
  • SavedQuery
  • Subscription
  • Token
  • Traffic
  • Usage
  • User
  • UserAccessList
  • UserDelegation
  • UserDelegationList
  • UserLaneList
  • UserList
  • UserRepresentationList
  • UserSupportAuth
  • UserSupportAuthList
  • WebInterface
  • WebInterfaceList

Global

  • context

© Akorbi Digital RMP. All Rights Reserved - Legal terms - Contact