Adding Support for Additional Languages

If the chart text is in a language other than English, you probably want the descriptive text to be generated in that same language. The DLink.xml file allows you to customize it for other languages.

The LanguageSettings property contains information used by all chart types and textboxes for a given language. It has an attribute LangCode, whose value is the uppercase, two-letter code for the language. Currently, there is only one language code in this version of DLink.xml (EN for English). When adding a new language, do the following:

To add a new language

  1. Open DLink.xml in a text or XML editor.

  2. Duplicate (copy and paste) the LanguageSettings property.

  3. Modify the value of the LangCode attribute to the two-letter code for the desired language.

  4. For example, to create a German LanguageSettings subtree, set the LangCode to DE. See ISO 639 for the recommended language codes.

  5. Translate the values of any LanguageSettings properties that need translating (e.g., Hundred or Thousand).

  6. Duplicate all of the AppearanceAssociation properties.

  7. Modify the Language attribute for the duplicate AppearanceAssociation properties to match the two-letter code from Step 2.

  8. Translate the text in the each of the duplicate AppearanceAssociation properties to the desired language. Do not change any macros or HTML tags.

  9. Save the file and restart Corda Server™.

  10. In the Corda® Embedder code, set the language attribute to the language code from Step 2 (e.g., language=" DE "). Or if you use the @_TEXTDESCRIPTION server command, place the new language code after the command (e.g., @_TEXTDESCRIPTION DE).