Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » language

Note: This is a work in progress and many formatting issues have been fixed. 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 Definition

The 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 Definition

An identifiable part of an application, or a thing within an application that can respond to commands.

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View