Custom texts and available languages

This guide describes how to change texts in the web viewer using custom-text.config. Each text in the web viewer and custom added texts may be controlled in custom-texts.config and each text is defined by its unique keytext.

 

Adding custom texts

Use the following steps to change a text in the web viewer:

  1. Decide if custom text shall apply to all sites in the server or to a specific site.

  2. Locate the custom-text.config file in C:\inetpub\wwwroot\AssertWeb\App_Data\

    1. If the text shall apply to all sites, open the custom-text.config file located in the App_Data folder

    2. If the text shall apply to a specific site, open the custom-text.config file located in the App_Data\<sitename> folder

  3. Find the exact keytext needed to identify the text to be changed.

    1. All texts in web viewer are defined in the Strings.en.resx file below.

    2. Use the name tag to identify the keytext to use.

  4. Add a new keytext in the custom-text.config file with the new custom translation needed.

  5. Restart IIS and reset web browser cache to see change.


Sample custom text file

<?xml version="1.0" encoding="utf-16"?> <CustomText xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Texts> <Text keytext="Search"> <Translation language="en-US">Search serial number</Translation> <Translation language="sv-SE">Sök serienummer</Translation> </Text> </Texts> </CustomText>

Copy text

From version 5.2 it is possible to copy a text into another keytext. The keytext will then get the values of another keytext. Any specified translations will still be used.

It is not possible to copy in several steps, a copy cannot refer to a text which is already a copy. Copy will always take the values of the directly referred keytext.

<?xml version="1.0" encoding="utf-16"?> <CustomText xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Texts> <!-- Copy will copy values from keytext Products --> <Text keytext="Catalogue" copy="Product"> <!-- For en-US use this instead -- <Translation language="en-US">Alternative text</Translation> </Text> </Texts> </CustomText>

 

Language codes

The application is translated into a set of languages. Texts are connected to languages using ISO 639-1 and ISO 3166. E.g. ISO 639 and ISO 3166 four to eight letter language and culture codes as "de-DE" or "sr-Latn-RS". The application is currently translated into the languages below.

Languages

Currently the application is translated into the below languages.

Language code

Language

Notes

Language code

Language

Notes

en-US

English (US)

 

en 

English 

 

en-GB 

English (GB) 

 

bg 

Bulgarian 

 

cs

Czech

 

da 

Danish

 

de 

German 

 

el 

Greek (modern)

 

et

Estonian 

 

fi 

Finnish 

 

fr 

French

 

hr 

Croatian

 

hu 

Hungarian

 

it 

Italian 

 

jp 

Japanese 

 

ko 

Korean 

 

lt 

Lithuanian

 

lv 

Latvian 

 

nb

Norwegian (Bokmål)

 

nl 

Dutch 

 

pl 

Polish 

 

pt-BR 

Portuguese (BR) 

 

ro

Romanian 

 

ru

Russian

 

sk 

Slovak

 

sl

Slovenian

 

sv 

Swedish 

 

th

Thai

Added in version 5.3

tr 

Turkish 

 

uk

Ukranean

Added in version 5.1

vi

Vietnamese

Added in version 5.3

zh-CN 

Chinese (simplified)