Configure GWC-JS for right-to-left languages

If your Genero Web Client for JavaScript (GWC-JS) application uses a language such as Arabic, you need to set up your application for right-to-left language, and set the correct locale.

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. In the application configuration file (application.xcf), 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®
    <ENVIRONMENT_VARIABLE Id="LANG">Arabic_Algeria.28596</ENVIRONMENT_VARIABLE>
  2. In your .4st file, set the reverse presentation style attribute to "yes" for the UserInterface node, in order to get a mirrored display of your forms:
    ...
      <Style name="UserInterface">
         <StyleAttribute name="reverse" value="yes" />
      </Style>
    ...
For more details, see the Right-to-left languages support topic in the Localization chapter of Genero Business Development Language User Guide