Re: 4GL Dummy Question : Multi Lingual application
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WEd-ptOKuwHnrj9jDTFO-Yy_eD1-4dyACZ75UzpGuixKA@mail.gmail.com> |
The "normal" way to do that is to use different forms for each language.
You can just drop them into different directories (en,fr,de etc) - and
set DBPATH to pick up the right ones.
The other way is to create a field for the label as well as the field
itself - and use a DISPLAY .. TO .. to set up those labels
That normally only works well if you set the field delimiters to
spaces, and set the fields to reverse video - or something like
that...
Otherwise - you'll see something like :
[label ] [field ]
On 28 May 2016 at 08:02, Tore Van Grembergen <[email protected]> wrote:
> Hi,
>
> I am checking if I could use Aubit 4 GL to replace my existing Xbase
> application.
> I managed to get the compiler installed, run "Hello World" and connect to
> my database from a simple 4GL program.
>
> I have read in the mean time the introduction on 4GL from informix (informix
> 4gl concepts and use) and will be starting the INFORMIX-4GL by Example.
> What I can not find is how to make screens multilingual based on the users
> profile.
>
> In my current Xbase program I had created a simple translation of field
> labels via the database.
> E.g. when I needed to show a field label I had something like @10,10 SAY
> TR("FieldName").
> This displayed the translated fieldname based on the language setting of the
> user that was currently logged in into the application and the screen
> involved.
>
> Can this be simulated in a form definition of 4GL ?
> If not via a database function, can it work with resource files ?
>
> Kind regards
>
> Tore
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e