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.
Translations
-
- Profound User
- Posts: 49
- Joined: Wed Jan 08, 2014 11:49 am
- First Name: Michael
- Last Name: Pilote
- Company Name: Oceanex
- Phone: (514) 875-8558
- State / Province: Quebec
- Country: Canada
- Contact:
-
- Profound User
- Posts: 72
- Joined: Fri May 08, 2009 2:43 pm
- First Name: David
- Last Name: Esdale
- Company Name: Guardian General Insurance
- City: Port of Spain
- State / Province: Outside Canada/USA
- Country: Trinidad and Tobago
- Location: Trinidad
- Contact:
Re: Translations
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.
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Translations
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.
-
- Profound User
- Posts: 49
- Joined: Wed Jan 08, 2014 11:49 am
- First Name: Michael
- Last Name: Pilote
- Company Name: Oceanex
- Phone: (514) 875-8558
- State / Province: Quebec
- Country: Canada
- Contact:
Re: Translations
Thats what i thought was hapenning. Thank you for both of your answers!!
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Translations
Ah, sorry, Michael, I mixed you guys up. Of course, I meant to refer to Dave's suggested technique...
Who is online
Users browsing this forum: No registered users and 4 guests