Page 1 of 1

Function keys translation

Posted: 10 Sep 2021, 20:14
by Franck.A
Hello everybody (from France),

We’re currently converting our Transport Management System into multi-lingual by using the Axes multi-lingual fonctionalities (I already posted a request on this topic a few months ago).

It’s almost completed but we’re encountering an issue with the function keys translation, which actually doesn’t work at all.
We tried modifying the AutoGui rules regarding the function keys management with the CTEXT function, we also tried modifying the css files and some application jasons files but with no result.
Image1.png
Image1.png (37.99 KiB) Viewed 9117 times
We asked the Lansa help desk and they identified a dysfunction that will be fixed with the next release of Axes, but they coudn’t give us any release date .

So my question is :
Has any one encountered this issue and how did you fix it ?

Thanks in advance for any answer or advice.

PS: I add a screenshot of an Axes project without Autogui (thus without function buttons) which shows translated function keys. To be sure that our language files are ok.
Tranl_ok_fct_keys.png
Tranl_ok_fct_keys.png (184.94 KiB) Viewed 9094 times
We also tried to disable th auto-recognition of function keys of the AutoGui rule :
DisabFctRecgns.png
DisabFctRecgns.png (59.25 KiB) Viewed 9073 times
We got the function keys translated but placed at the bottom of the screen:
FctKeys transl_bottom.png
FctKeys transl_bottom.png (63.84 KiB) Viewed 9073 times

Re: Function keys translation

Posted: 30 Sep 2021, 14:53
by Fairdinkum
Hi Franck,

Are you looking for something like the following?

Result: FKey panel extension
Image 1522.png
Image 1522.png (83.46 KiB) Viewed 9047 times
Texts_Cust_XX.txt
Image 1523.png
Image 1523.png (16.6 KiB) Viewed 9047 times

Regards,
Hide

Re: Function keys translation

Posted: 06 Oct 2021, 00:03
by Franck.A
Hi Fairdinkum,

This is precisely what we look to achieve , here is a picture of our dictionnary:
exemple 1.JPG
exemple 1.JPG (20.19 KiB) Viewed 9026 times
Yet we cannot mannage to have our Fx Buttons translated, we tried many different autogui tweaks without success.

Remenbering what you teached me on a previous topic (translating subfile options) I tried to modify the extension axFkeyPanel, in the file axextensions.min.js, I am still on it.

Picture below shows some "TEXT.CUST()" I tried to insert in the function:
The attachment exemple 2.JPG is no longer available

Re: Function keys translation

Posted: 06 Oct 2021, 10:50
by Fairdinkum
Hi Franck,

I've modified axmdextensions.min.js like the following for trial.
Image 1554.png
Image 1554.png (34.67 KiB) Viewed 9021 times
(Before)

Code: Select all

caption: _,
(After)

Code: Select all

caption: TEXT.cust(_.trim()),
It's in DEFINE_EXTENSION_axFkeyPanel().



Important:
- This js file will be overwritten without any notifications when applying a patch/fixpack or upgrading its version.

HTH!

Regards,
Hide

Re: Function keys translation

Posted: 12 Nov 2021, 19:53
by Franck.A
Hi Fairdinkum,

It took us a while to test your solution but we could finally do it and it works great !

Thanks a lot for your help.

If you intend to spend a few days in Paris, let us know, we'll bring you to a nice restaurant !!

Re: Function keys translation

Posted: 17 Nov 2021, 09:35
by Fairdinkum
That's great ;)

Regards,
Hide