Page 1 of 1

Translations

Posted: Thu Jun 05, 2014 9:00 am
by mpilo0
Hi,
Is there a way to change the language of the profound job while the job is running?

Basically, what we are doing is we have a button to change languages, when the user hits that button, it changes the profound language using the PUISETLANG.
If we exit the current screen and re-enter it, it works fine, but i want it to change on the next render of the screen(User never leaves the screen), So the user could change the language then simply hit the refresh button and everything would be translated.

Re: Translations

Posted: Fri Jun 06, 2014 7:44 am
by esdaled
I have been able to accomplish this by defining the dspf as USROPN on the f-spec, then closing and re-opening the file after using PUISETLANG.

Re: Translations

Posted: Fri Jun 06, 2014 9:47 am
by David
The reason Michael's technique is necessary is that the translations are processed only once per open of the display file, for performance reasons. Think of a display with 100s of labels to look up in the database. This happens the first time the record format is written. At this time, the display file metadata is processed and the translations are performed. The data is then stored in and retrieved from memory until the file is closed.

Re: Translations

Posted: Fri Jun 06, 2014 2:58 pm
by mpilo0
Thats what i thought was hapenning. Thank you for both of your answers!!

Re: Translations

Posted: Mon Jun 09, 2014 4:22 pm
by David
Ah, sorry, Michael, I mixed you guys up. Of course, I meant to refer to Dave's suggested technique...