Salesforce

How to add, update and delete a Language Resource Template in WorldServer

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentSDL WorldServer
Symptoms/Context

How to add, update and delete a default Language Resource Template in WorldServer

Resolution
A Language Resource Template (LRT) defines the segmentation rules for any number of source languages.  

Important: If your WorldServer environment uses multiple instances of the  FTS Server, you need to synchronize and duplicate the mappings between language resource templates and file type configurations.

Please remember: ***THIS IS A GLOBAL CHANGE IN WORLDSERVER AND SHOULD ONLY BE IMPLEMENTED WITH THIS IN MIND***   
Deploying a Language Resource Template may affect the segmentation of all current non-segmented projects and may impact the TM leverage against existing TM resources.
 
1- How to add a default LRT to SDL WorldServer 10.4.x to 11.1.1:
  1. Create a Language Resource Template (LRT) in SDL Trados Studio 2017 or 2019, with whatever special changes you need to the abbreviation list.  Refer to this article: How to Create a Language Resource Template. Use a single Language Resource Template for all source languages for which you need to modify segmentation. The FTS server can use one template at most.
  2. Stop the FTS (SDL File Type Support Service).
  3. Copy the Language Resource Template file that you have previously created in SDL Trados Studio to C:/Program Files/SDL/FileTypeSupportServer. Note: this is the default path and it will probably vary in your environment. 
  4. Edit the <appSettings> section of the file Sdl.WorldServer.FileTypeSupport.Server.HostProcess.exe.config file (located on the server where WorldServer is installed and in the FileTypeSupportServer folder directoryto uncomment the following line: 
    <add key="LanguageResourceTemplate" value="<LanguageResource file path>"/>
  5. Replace the exact file path and the language ressource name (file extension .*sdltm.resource) with the correct directory and the correct template file name. For instance: 
    <add key="LanguageResourceTemplate" value="C:/Program Files/SDL/FileTypeSupportServer"/>
  6. Restart FTS
2- How to add a default Language Resource Template starting from WorldServer 11.2.x:
  1. Create a Language Resource Template in SDL Trados Studio 2017, 2019 or 2021 with whatever special changes you need to the abbreviation list.  Refer to this article: How to Create a Language Resource Template. Use a single Language Resource Template for all source languages for which you need to modify segmentation. The FTS server can use one template at most.
  2. Stop the FTS (SDL File Type Support Service).
  3. Copy the Language Resource Template file that you have previously created in SDL Trados Studio to a directory of your choice. Let's assume it is D:\SDL\FileTypeSupportServer\[dateiname].sdltm.resource. Note: this directory will vary in your environment. 
  4. In the Sdl.WorldServer.FileTypeSupport.Server.HostProcess.exe.config file (located on the server where WorldServer is installed and in the FileTypeSupportServer folder directory) you will find this section: 
    <!--
        <languageResourceTemplates defaultLanguageResourceTemplate="C:\Default_Language_Resource_Template.sdltm.resource">
          <templates>      
            <add name="My custom language resource template config1" filterInfoId="70" languageResourceTemplate="C:\Sample_Language_Resource_Template2.sdltm.resource" />
            <add name="My custom language resource template config2" filterInfoId="70" filterConfigId="1057" languageResourceTemplate="C:\Sample_Language_Resource_Template2.sdltm.resource" />
          </templates>
        </languageResourceTemplates>  
        -->
  5. The default language resource file is defined by this attribute: <languageResourceTemplates defaultLanguageResourceTemplate=
  6. Therefore, copy this line <languageResourceTemplates defaultLanguageResourceTemplate="C:\Test_folder\Default_Language_Resource_Template.sdltm.resource"/> from the commented out section replace the default path with the one where your Resource Template file is actually saved. For example:
   <!--
    <languageResourceTemplates defaultLanguageResourceTemplate="C:\Test_folder\Default_Language_Resource_Template.sdltm.resource">
      <templates>      
        <add name="My custom language resource template config1" filterInfoId="70" languageResourceTemplate="C:\Sample_Language_Resource_Template2.sdltm.resource" />
        <add name="My custom language resource template config2" filterInfoId="70" filterConfigId="1057" languageResourceTemplate="C:\Sample_Language_Resource_Template2.sdltm.resource" />
      </templates>
    </languageResourceTemplates>  
    -->  
  <languageResourceTemplates defaultLanguageResourceTemplate="D:\SDL\FileTypeSupportServer\MyLanguageRessourcefile.sdltm.resource"/></languageResourceTemplate

7. Save your changes.
8. Restart FTS
9. Starting from WorldServer 11.2., you can also define a  Language Resource Template to be mapped to a specific file type configuration. This is an additional setting to the default Language Resource template. To learn how to configure this setting, please refer to this section of the SDL Documentation and in this article:

Mapping language resource templates to file type configurations in WorldServer

3- How to UPDATE  an existing Language Resource Template to WorldServer:
  1. Download the Language Resource Template from the folder on the server where it is stored. You can check the path in the Sdl.WorldServer.FileTypeSupport.Server.HostProcess.exe.config file if you are unsure of its location.
  2. Open the Language Resource Template in SDL Trados Studio and edit it
  3. Save your changes
  4. Stop FTS
  5. Replace the previous version on the server with the updated version of the template. The file name should remain the same.
  6. Restart FTS.
Important: always double check that the key in the Sdl.WorldServer.FileTypeSupport.Server.HostProcess.exe.config file points to the correct folder path and template name. For instance: 

WorldServer 10.4.x to 11.1.1
<add key="LanguageResourceTemplate" value="D:\SDL\FileTypeSupportServer\[dateiname].sdltm.resource" />

WorldServer 11.2. and later
<languageResourceTemplates defaultLanguageResourceTemplate="D:\SDL\FileTypeSupportServer\MyLanguageRessourcefile.sdltm.resource"/>
 
4- How to DELETE  an existing Language Resource Template from WorldServer:
  1. Stop FTS
  2. Remove the Language Resource Template file from its folder location.
  3. Open the Sdl.WorldServer.FileTypeSupport.Server.HostProcess.exe.config file and comment out the key using <!-- and --> .The key above would then look like this: 
    WorldServer 10.4. to 11.1.1:
    
    <!-- <add key="LanguageResourceTemplate" value="D:\SDL\FileTypeSupportServer\[dateiname].sdltm.resource" /> -->
    
    WorldServer 11.2:
    
    <!-- <languageResourceTemplates defaultLanguageResourceTemplate="D:\SDL\FileTypeSupportServer\MyLanguageRessourcefile.sdltm.resource"/> -->
  4. Restart FTS
Root Cause
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by