This procedure shows you how to configure GBC for right-to-left languages.
Overview
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.
Prerequisite
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).
Edit your application configuration file
Open your application
.xcf
file with a text editor.
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>
Edit your application's presentation styles file
Open your application
.4st
file with a text editor.
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>
Test
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 the Right-to-left languages support topic in the Localization chapter of Genero Business Development Language User Guide.