Customize the Language Resources


After completing this topic, you will be able to customize language resources.


Steps:

  1. You want to customize the text for the Actions link that appears in the bubble headers when you play a topic. You want to change "Actions" to "Actions menu".

     

    These language changes for English are made in the resource.xml file in the lang/en folder.

    Step 1

  2. Open the lang/en folder in the WSG skin.

     

    Double-click the lang list item.

    Step 2
  3. Double-click the en list item.

    Step 3
  4. Open the resource.xml file in Notepad.

     

    Double-click the resource.xml list item.

    Step 4
  5. Move the ending resources tag down to provide space for a new element.

     

    Click at the beginning of the last line, </resources>.

    Step 5
  6. Press [Enter] to push the ending tag down.

    Step 6
  7. Open the resource.xml file in the Player project so that you can copy the language element.

     

    Click the Player_WSG tab.

    Step 7
  8. Open the lang/en folder in the Player_WSG project.

     

    Double-click the lang list item.

    Step 8
  9. Double-click the en list item.

    Step 9
  10. Open the resource.xml file in Notepad.

     

    Double-click the resource.xml list item.

    Step 10
  11. You want to find the element set to use the "Actions" value.

     

    Use the Find command to search for  the text that you want to replace.

     

    Click the Edit menu.

    Step 11
  12. Click the Find command.

    Step 12
  13. Search for the text "Actions".

     

    Enter the desired information into the Find what field. Enter

     a valid value
     e.g.
     "Actions"
    .

    Step 13
  14. Click the Find Next button.

    Step 14
  15. Close the Find dialog box.

     

    Click the Close button.

    Step 15
  16. Search finds the interface_action element for the Actions menu.

     

    You want to copy the entire element to the skin.

    Step 16

  17. Copy the interface_action element, including the indent.

     

    Click at the beginning of the interface_action element statement.

    Step 17
  18. Press the [Shift] key and click at the end of the interface_action element statement.

    Step 18
  19. Copy the selected text.

     

    Click the Edit menu.

    Step 19
  20. Click the Copy command.

    Step 20
  21. We have switched to the resource.xml file in the WSG skin.

    Step 21
  22. Paste the copied element in the blank line above the ending </resources> tag.

     

    Click the blank line above the ending </resources> tag.

    Step 22
  23. Paste the copied element.

     

    Click the Edit menu.

    Step 23
  24. Click the Paste command.

    Step 24
  25. Change the "Actions" text to "Actions menu". We have selected the "Actions" text for you.

    Step 25

  26. Enter the desired information into the field. Enter

     a valid value
     e.g.
     "Actions menu"
    .

    Step 26
  27. Save the WSG resource.xml file.

     

    Click the File menu.

    Step 27
  28. Click the Save command.

    Step 28
  29. Close the WSG resource.xml file.

     

    Click the Close button.

    Step 29
  30. Close the Player_WSG resource.xml file.

     

    Click the Close button.

    Step 30
  31. Close the Player_WSG publishing project.

     

    Click the Close button.

    Step 31
  32. Close and save the WSG skin.

     

    Click the Close button.

    Step 32
  33. Confirm the save.

     

    Click the Yes button.

    Step 33
  34. We have published the content and launched the Opening a Document topic in Try It! mode.

     

    The text for the Actions link in the bubble now appears as "Actions menu".

    Step 34

After completing this topic, you are able to customize language resources.