The following examples shows how to change the current culture.
import tango.io.Print, tango.text.locale.Common; void main() { // Displays the name of the current culture. Println("The current culture is %s.", Culture.current.englishName); // Changes the current culture to el-GR. Culture.current = new Culture("el-GR"); Println("The current culture is now %s.", Culture.current.englishName); } // Produces the following output: // The current culture is English (United Kingdom). // The current culture is now Greek (Greece).
Property. Assigns the culture of the current user.