Adding and editing language tokens

You can add and edit the language you set for your website.

You can edit a language by clicking Language details in the Languages tab of the website settings.

Number

Description

1

Click Settings, then Website

2

Click the Languages tab

3

Select the language you wish to view, then click Language details

To edit a language

  1. In the side menu, click Settings.

  2. In the Features section, click Website.

  3. From the list of tabs, click Languages.

  4. From the drop-down list, select a language to edit.

  5. Click Language details.

  6. Edit any of the available options. See the table below to learn about the options.

  7. Click Save changes.

Language detail

Description

Name

The name of the language.

Code

A unique code used to identify the language.

Location

If you manage more than one space, select the space that uses the language.

Active

Set to YES if you want the language to be available on your website.

Working with tokens

To view the tokens, select a language from the drop-down list in the Languages tab of the website settings. The tokens list displays the language tokens in their source language (SOURCE TEXT) and the target language (TRANSLATED AS).

To edit a token

  1. If the side menu is not visible, click.

  2. In the side menu, click Settings.

  3. In the Features section, click Website.

  4. From the list of tabs, click Languages.

  5. From the drop-down list, select a language for which you want to edit a token.

  6. From the token list, select a token to edit.

  7. In the Translated as textbox, change the default translation of the source text.

  8. Click Save changes.

To delete a token

  1. In the side menu, click Settings.

  2. In the Features section, click Website.

  3. From the list of tabs, click Languages.

  4. From the drop-down list, select a language in which you want to delete.

  5. From the token list, click the token you want to delete.

  6. Click Delete.

  7. Click Yes to confirm.

Alternatively, watch the animation below to use More optionsto delete a token.

Adding a token to a website template file

Tokens have the following format in the website template files:

Number

Description

1

Examples of tokens in the template code's HTML code

Access the website template files by going to the Templates tab in the website settings. Select the file that you want to add the new language token to. The token must have the following format:

{% T TokenName %}

Adding a new language

To add a new language, you must export the complete list of available tokens in XML format so you can translate it. Once you have added your translations to the file, you can than import it back into the system.

To export language tokens

  1. In the side menu, click Settings.

  2. In the Features section, click Website.

  3. From the list of tabs, click Languages.

  4. From the drop-down list, select a language the tokens of which you want to export.

  5. Click Language Details.

  6. From the More options drop-down list, click Export Tokens.

  7. Click Continue to confirm.

An XML file list is created, containing all of the values that need translating.

To edit the translations file

Open or save the file to your computer to translate the language tokens. You have to edit the value="" field in the XML file for the language that you are translating. All translations for all the languages on your Nexudus account are in this file. You can edit them as required.

Number

Description

1

The value="" field in the exported XML token file

Remember that values between {} are dynamic fields and should not be edited.

When you finish translating the tokens in the XML file, you can import the file to your account.

To import the XML language tokens file

  1. In the side menu, click Settings.

  2. In the Features section, click Website.

  3. From the list of tabs, click Languages.

  4. From the drop-down list, select a language the tokens of which you want to export.

  5. Click Language Details.

  6. From the More options drop-down list, click Import.

  7. Click Upload fileand select your translated XML file.

  8. Click Continue.

  9. In the Name and Code textboxes, type the details of your new language.

  10. Set Active to YES.

  11. Click Save changes.

The new language is now available in your account. You can review the tokens of your new language from the list in the Languages tab.

Last updated