Adding Support for Additional Languages

If your chart text is in a language other than English, you will 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 subelement 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). If you are adding a new language, you will need to:

To add a new language

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

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

3. Modify the value of the LangCode attribute to be the two-letter code for the desired language. For example, to create a German LanguageSettings subtree, you would set the LangCode to DE. See ISO 639 for recommended language codes.

4. Translate the values of any LanguageSettings subelements that need translating (e.g. Hundred, Thousand).

5. Duplicate all of your ApperanceAssociation elements.

6. Modify the Language attribute for your duplicate AppearanceAssociation elements to match the two letter code from step 2.

7. Translate the text in the each of the duplicate AppearanceAssociation elements to the desired language. Be sure to not change any macros or HTML tags.

8. Save the file and restart PopChart Server.

9. In your PopChart 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. @_TEXTDESCRIPTIONDE).