- Creating a CSS Style for the Timestamp Text
- Inserting a New SPAN Tag and ID Attribute to Serve as a Container for the Timestamp
- Applying the Action
- Using the Last Modified (ID) Action to Insert a Page Last Modified Timestamp
- Changing the Language for the Days of the Week
- Wrapping Your Displayed Text with Custom Tags
- About this article
Changing the Language for the Days of the Week
Because the Clock/Date (ID) and Last Modified (ID) actions enable you to display different date formats, they are well suited to different international uses. For even more flexibility in displaying the days of the week, you can also change them from the default language of English to any other language you want. To do this, you need to make a few modifications to the script files associated with these actions.
To change the days of the week to another language:
First locate the file named clockdate_ID.scpt and duplicate it so that you'll have a backup of the original file. The file is located in GoLive Application, Modules, Jscripts, Actions, Others.
Move the duplicated script outside the Actions folder and place it somewhere else on your drive for safekeeping. (You should always keep a backup of the original action script somewhere outside the Actions folder so you can revert to it if needed.)
Open the original clockdate_ID.scpt file in GoLive and locate the line of code that reads as follows:
days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday",
Change the days to whatever language you want to use, starting with Sunday. Remember to change just the text between the quotation marks, as in this example:
days = new Array("Domingo","Lunes","Martes","Miercoles","Jueves",
Save the script file.
After you've saved the script changes, you're ready to apply the action, and the days of the week now display in the language of your choice. To go back to English just change them back again and resave the script.
Figure 13 Changing your timestamp's language and date format.
You can perform these same modifications on the Last Modified (ID) action as well. Use the file named lastmodified_ID.scpt, which is located in GoLive Application, Modules, Jscripts, Actions, Message, and follow the same directions.