Tokens Reference in languages.xml

20/20 DataShed uses "tokens" inside the languages.xml file to embed dynamic content into the otherwise static language strings. For example, a language package might include a sentence that is used to print today's date to a web page in 20/20 DataShed. Of course, today's date can't possibly exist in the language.xml file unless one were to edit that file every day! So to produce today's date, we could design a "token" which will be replaced by today's date at run-time. For example:
Today's date is [ExampleDateTime]
And the result would be:
Today's date is
Note that the tokens can be written in upper or lower case. If the token is written using only lower-case letters, then the output will also be lower-case. For example:
"View [User_plural]" may produce "View Agents"
while
"View [user_plural]" (the token is all lower-case) may produce "View agents"
As the text is drawn from the languages.xml file to be displayed in a web page, the strings are passed through the processSpecialName() function located in _globals.asp and the tokens are replaced by dynamic values. Below is a complete list of the tokens supported by the processSpecialName() function that you may use in the languages.xml.
[ExampleCurrency]
[ExampleDateTime]
[ExampleDouble]
[ExampleExpiryDate]
[ExampleInteger]
[ExampleLongDate]
[ExampleShortDate]
[ExampleTime]
[fieldAddress]
[fieldBirthDate]
[fieldClass]
[fieldClosingDate]
[fieldCity]
[fieldCompanyName]
[fieldCounty]
[fieldCountry]
[fieldCulture]
[fieldDateLastLoggedIn]
[fieldDateLastModified]
[fieldDateSignedUp]
[fieldDisplayTitle]
[fieldEmail]
[fieldFamily]
[fieldFaxPhone]
[fieldFirstName]
[fieldGeneralDescription]
[fieldGenus]
[fieldHits]
[fieldItemID]
[fieldImageURL]
[fieldInfoURL]
[fieldInfoURLWindowHeight]
[fieldInfoURLWindowWidth]
[fieldItemLimit]
[fieldItemReferenceCode]
[fieldLastName]
[fieldListingPrice]
[fieldListingPriceTerms]
[fieldLoginCount]
[fieldNotes]
[fieldOpeningDate]
[fieldOrder]
[fieldPeopleID]
[fieldPhylum]
[fieldProvince]
[fieldSalePrice]
[fieldUsername]
[fieldPassword]
[fieldPhone]
[fieldPostalCode]
[fieldSecondaryPhone]
[fieldSpecies]
[fieldStatus]
[fieldTransactionType]
[fieldURL]
[fieldUserDefinedBoolean1]
[fieldUserDefinedBoolean2]
[fieldUserDefinedCurrency1]
[fieldUserDefinedCurrency1Terms]
[fieldUserDefinedCurrency2]
[fieldUserDefinedCurrency2Terms]
[fieldUserDefinedCurrency3]
[fieldUserDefinedCurrency4]
[fieldUserDefinedDoubleNumber1]
[fieldUserDefine dDoubleNumber2]
[fieldUserDefinedNumber1]
[fieldUserDefinedNumber1Term]
[fieldUserDefinedNumber2]
[fieldUserDefinedNumber3]
[fieldUserDefinedMemo1]
[fieldUserDefinedMemo2]
[fieldUserDefinedMemo3]
[fieldUserDefinedMemo4]
[fieldUserDefinedMemo5]
[fieldUserDefinedText1]
[fieldUserDefinedText2]
[fieldUserDefinedText3]
[fieldUserDefinedText4]
[fieldUserDefinedText5]
[fieldUserDefinedText6]
[fieldUserDefinedText7]
[fieldUserDefinedText8]
[ListingsURL]
[MainCategory]
[MainCategory_plural]
[ParentCompanyCompanyName]
[ParentCompanyEmail]
[ParentCompanyFirstName]
[ParentCompanyLastName]
[ParentCompanyTitle]
[ParentCompanyURL]
[Request.Form("")]
[SubCategory]
[SubCategory_plural]
[thisAppTitle]
[User]
[User_plural]
<![CDATA[]]>

Related topics


© 2005 - 2007 20/20 Applications. All rights reserved.