|
Editing the Localization Script File
Before making changes to any script file, be sure to make a back-up copy so you can restore the original if needed. Keep in mind that even simple text changes could alter the layout of your Web Templates. This documentation is not intended to take the place of having working knowledge of HTML, script files, or framesets.
Edit the Localization script file to change the text of the Template navigation, search forms, page text, or alert messages, whether you are making simple word changes or converting the Web Templates to another language. The Web Template elements are broken out in the Localization script file according to their function. To completely change all text within the Web Templates to a language other than English, you will need to modify text in the following files:
- localization.js
- basic.js
- index.html
- about.html
- help.html
- publish_my_favorites.html
If you do not have HTML editing software, use Notepad, or a similar program to make changes to the script file.
To open the Localization script file in Notepad:
From the Start menu, select All Programs > Accessories > Notepad.
From the File menu in Notepad, select Open. An Open dialog box appears.
From the Files of type pulldown list located at the bottom of the Open dialog box, select All Documents.
From the pulldown list at the top of the Open dialog box, browse to docs/site-templates/client, and select the file named localization.js. The Localization script file opens.
Edit the items that are enclosed in double quotes and save your changes. Using Notepad may generate a warning message that saving the document in a Text-Only format will remove all formatting. Disregard this warning and click Yes to continue saving the document.
If you need to use double quotes for punctuation, use the special HTML character entity to represent quotes, " as in the following example:
var header_title = " "The Digital Experience" ";
Note: When the use of diacritical marks is required, you can eliminate the need for extended HTML characters by saving the localization.js file as a UTF-8 (not Unicode) text file after making your changes.
In the image below, a sample of the variables that can be edited within the Localization script file are shown in blue.

The navigation element variables shown above in the Global navigation section of the localization.js appear in only lowercase letters, while within the body of the page the navigation elements are automatically capitalized. This is accomplished through a Java Script function located in the global.js file which is called in the body of the index.html page:
<script language = "javascript">
<!--
toUpper(name of navigation element);
//-->
</script>
This Java Script function automatically capitalizes the first letter of the navigation in the body of the index.html page. In most cases the Java Script functions correctly. However in some instances the use of certain character sets in the navigation may cause a break in the navigation elements in the body text, displaying an unfinished word or sentence. If this occurs, open the index.html file and replace the Java Script snippet shown above with the text you want to display.
Return to top of page
CONTENTdm® is a registered trademark of DiMeMa, Inc. © 1997-2005 DiMeMa, Inc. All Rights Reserved.
|