Culture.current

Property. Assigns the culture of the current user.

  1. Culture current [@property getter]
  2. Culture current [@property setter]
    class Culture
    @property static
    void
    current

Examples

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).

Meta