In Brief...

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

What:  Locales

Why: Allows the user to automatically change certain stylistic aspects of the document depending on the nationality of the client

Where:  Insert / Control Objects / Action

How:  Place the Locale Action, choose the nationality from the list.

 

 Series 5 Basic Class - Self-Paced Modules

Locales

What are locales?

Setting the locale of a document allows us to automatically control various international standards such as monetary values, etc. We can set a locale as an action in the logic map, thereby automatically modifying our document for different nationalities.

  1. Create a new, blank publication.
  2. Click in the document. You should see the blinking cursor at the top left of the page.

We are going to create a variable with the currency value, and fill it with a numeric value. We will then place it on the page and notice how the monetary symbol changes as we change the current locale.

Creating and Setting a Variable

  1. From the main menu, select Insert / Set Variable...
  2. Click New.
  3. In the Name box, type Currency Value.
  4. In the Type pulldown, select Currency.
  5. Click Create.

The Set Variable box is exposed.

  1. In the Label text box, type Locale Demo Value.
  2. Click the Value value picker, and select Constant / Number.
  3. In the Value box, type 123.45.
  4. Click Create.

Now let's place the variable value on the page.

  1. Click in the document. You should see a blinking cursor at the top left.
  2. From the main menu, select Insert / Field / Variable.
  3. Select the Currency Value variable by ensuring that the blue box to the left is colored in.
  4. Click Create.

Setting the Locale

Now let's set the locale.

  1. In the logic tree, click just above Action (Locale Demo Value).
  2. From the main menu, select Insert / Control Objects / Action...

  1. In the Label box, type Set Locale.
  2. In the Action box, select Change locale.
  3. Click on the folder to the right of Locale.
  4. Choose English (United Kingdom).
  5. Click Create.

Note how the pound sign now automatically appears in front of the value.