Localization with a remoteform
Louis Kirouac
lkirouac at gmail.com
Mon Sep 21 09:00:30 EDT 2020
Hi
Further to this question
I now understand $st for properties
I didn't understand it before because it doesn't react like the stgettext
function
If i set in the construct of the RemoteTask :
Do $ctask.$stringtablelocale.$assign('fr_ca')
They both work to give the french translation
but if i change after login :
If iLanguage
Do $ctask.$stringtablelocale.$assign('en_ca')
Else
Do $ctask.$stringtablelocale.$assign('fr_ca')
End If
stgettext works ok
but $st uses the initial locale
Louis Kirouac
514-248-2884
On Sat, 19 Sep 2020 at 10:31, Louis Kirouac <lkirouac at gmail.com> wrote:
> Hi $all
>
> I have set up the TSV stringtable file, and the JavaScript file in
> html/strings/libname/file.js
>
> I have something like this working:
>
> Do $cinst.$objs.SubListContextMenuBar.$tabtext.$assign(stgettext('Print'))
>
>
> In the documentation it says:
>
>
> String table functions
>
> The client accesses the current string table for the stgettext() function,
> and properties assigned with the $st prefix.
>
> I don't understand the "properties assigned with the $st prefix"
>
> Is it possible to define a Tab Control tabtext to get the local value ??
>
> I would like to set it up in design and not have to rely on code to change
> the tab's name.
>
> Thanks for your help
>
> Louis Kirouac
>
>
More information about the omnisdev-en
mailing list