Configure right-to-left languages

If your Genero Browser Client (GBC) application uses a language such as Arabic or Hebrew, you need to set up your application for right-to-left language and set the correct locale.

Before you begin

Make sure that the locale you want to use is installed on your system. If the locale is not installed, follow your operating system's requirements to install locales. For example, for Arabic support on a Linux®/UNIX™ platform, make sure Arabic locales are installed (for example, check that the locale -a command displays the "ar_DZ.iso88596" locale).

  1. Open your application configuration file (application.xcf) with a text editor, and include a reference to the LANG environment variable.

    In our example, LANG is set for the Arabic language in Algeria.

    On Linux®/UNIX™ systems:
    <ENVIRONMENT_VARIABLE Id="LANG">ar_DZ.iso88596</ENVIRONMENT_VARIABLE>
    On Windows® systems:
    <ENVIRONMENT_VARIABLE Id="LANG">Arabic_Algeria.28596</ENVIRONMENT_VARIABLE>
  2. Open your application's presentation styles file (application.4st) with a text editor. To get a mirrored display of your forms, set the reverse presentation style attribute to "yes" for the UserInterface node:
    <Style name="UserInterface">
         <StyleAttribute name="reverse" value="yes" />
      </Style>
  3. Test if your application works as expected.
    Tip:

    You may need to use CTRL + F5 to clear the browser cache before you see your changes.

    For more details, see Right-to-left languages support topic in the Genero Business Development Language User Guide.