Configure the locale at runtime

In multilingual projects where the user locale is not configured, you can prompt the user to select the session locale through graphic objects at runtime.
Use a custom object containing a NetLogic to display a list of locales. The locale selected in the
Session
object changes the locale for the project.
  1. Select
    Template Libraries
    .
  2. Select
    Widgets
    .
  3. Under
    Components
    , drag
    User Editor
    into the
    UI
    folder in
    Project view
    .
  4. In
    Libraries
    , select
    Close
    .
  5. In
    Project view
    , expand the
    UserEditor#
    folder and drag
    LocaleComboBox (type)
    into the
    UI
    folder.
  6. Right-click the
    UserEditor#
    folder and select
    Delete
    .
  7. In
    Delete User Editor#
    , select
    Delete
    .
  8. In
    Project view
    , select the
    UI
    folder.
  9. In the
    Project view
    toolbar, select
    Add
    and then select
    UI Session
    .
  10. (optional) With
    UISession# (type)
    selected in the
    UI
    folder, in
    Properties
    , in
    Locale
    , type the desired starting locale.
  11. In
    Project view
    , select the Presentation Engine.
  12. In
    Properties
    , in
    Session
    , select the
    UISession (type)
    created in Step 9.
  13. Right-click the desired target container or page, select
    New
    , and browse to
    LocaleComboBox (type)
    to create an instance.
  14. In
    Properties
    for the new instance, under
    Events
    , in
    Selection changed
    , select
    Add
    Add new method
    .
  15. Select
    Commands
    Variable commands
    and then select
    Set variable value
    .
  16. In
    VariableToModify
    , choose
    Select node
    and then select
    Aliases
    Session
    VariableToModify
    ActualLanguage
    .
  17. In the
    Value
    property, select the
    LocaleComboBox#
    instance that you are editing, and then choose
    SelectedValue
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.