Versions Compared

Key

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

...

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.

View file
nameStrings.en.resx

...

Code Block
languagexml
<?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.

Code Block
languagexml
<?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.

...