Translations

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
mpilo0
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:

Translations

Post 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.
esdaled
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

Post 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.
User avatar
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

Post 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.
mpilo0
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

Post by mpilo0 »

Thats what i thought was hapenning. Thank you for both of your answers!!
User avatar
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

Post by David »

Ah, sorry, Michael, I mixed you guys up. Of course, I meant to refer to Dave's suggested technique...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests