Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

language

set [the] language to resourceName

where resourceName is a language supported by HyperCard.

The language property returns or sets the language in which HyperCard displays scripts. The default setting is English, and it’s always available.

To use other languages, a script translator resource must exist in the current stack, any stack later in the message-passing order, or in HyperCard itself.

Contrast this property with the scriptingLanguage of object, which describes an object's scripting system.


Examples

if the language is not "English" then 
   sort international by field 1
else
   sort by field 1
end if

Placeholders

resourceName
A text expression that evaluates to the name of a resource in the current stack, a stack being used, the Home stack, or HyperCard itself.

Resources have different types. Some common resource types used with HyperCard are PICT, ICON, XCMD, and XFCN.

object
HyperTalk DefinitionThe object HyperCard, or any expression that identifies an object by name, number, or id.

For example:

HyperCard
me
[the] target
button 1
background part 6
card field id 3894
this card
next background
stack "My Stack"
AppleScript DefinitionAn identifiable part of an application, or a thing within an application that can respond to commands.

« itemDelimiter | HyperTalk Reference | left »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

language

set [the] language to resourceName

where resourceName is a language supported by HyperCard.

The language property returns or sets the language in which HyperCard displays scripts. The default setting is English, and it’s always available.

To use other languages, a script translator resource must exist in the current stack, any stack later in the message-passing order, or in HyperCard itself.

Contrast this property with the scriptingLanguage of object, which describes an object's scripting system.


Examples

if the language is not "English" then 
   sort international by field 1
else
   sort by field 1
end if

Placeholders

resourceName
A text expression that evaluates to the name of a resource in the current stack, a stack being used, the Home stack, or HyperCard itself.

Resources have different types. Some common resource types used with HyperCard are PICT, ICON, XCMD, and XFCN.

object
HyperTalk DefinitionThe object HyperCard, or any expression that identifies an object by name, number, or id.

For example:

HyperCard
me
[the] target
button 1
background part 6
card field id 3894
this card
next background
stack "My Stack"
AppleScript DefinitionAn identifiable part of an application, or a thing within an application that can respond to commands.

« itemDelimiter | HyperTalk Reference | left »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View