Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70

Language

Localization_language library's Language constructor that creates an object used for translating strings. After the object is created, it checks the phone's lang/locale settings and attempts to load any localized string files available. For example, if the phone's locale is set to es_mx (Spanish/Mexico), the Language constructor checks the app's directory for a 'strings-es_mx.js' file and attempts to load language keys from this file. For more information about creating localized apps see Building Localized Apps in the Guides section.

...

Creates a new Language object.

Code Block
var lang = new Language(parameters);

Initialization Parameters

...

The functionality of this object is included in the  app extended library . It is recommended you use the app library if you wish to use this feature. 

Methods

Name 

Description 

translate

Look up a language key and test it against the currently specificed language.