Change 'collapse all' and 'expand all' labels language

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
infgge00
Profound User
Posts: 28
Joined: Mon May 05, 2014 4:15 am
First Name: Giovani
Last Name: Garcia Estevez
Company Name: SISA, S.L.
Contact:

Change 'collapse all' and 'expand all' labels language

Post by infgge00 »

Hi! I have set pui["language"] = "es_ES" (Spanish of Spain), and this labels are shown in Portuguese language. This maybe is a translation error.

How can I set this labels in Spanish? Thanks
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Change 'collapse all' and 'expand all' labels language

Post by Scott Klement »

It looks like you're setting it correctly. It's very strange that you'd get Portuguese!

Can you give me an example of a label value that you're getting that's wrong. Let me know what it's showing you and what word would be better, and I'll look to see if our translation dictionary is using the wrong words, or if it's really somehow pulling the Portuguese words.
infgge00
Profound User
Posts: 28
Joined: Mon May 05, 2014 4:15 am
First Name: Giovani
Last Name: Garcia Estevez
Company Name: SISA, S.L.
Contact:

Re: Change 'collapse all' and 'expand all' labels language

Post by infgge00 »

Label 'collapse all' should be 'contraer todo' in Spanish. Now It shows 'recoger tudo'. I don´t know if it´s really Portoguese, but It sounds like this.

Label 'expand all' should be 'expandir todo'. Now it shows 'espandir tudo'.

It is an stupid thing, I know, but we have some customers that ... They are 'special' You know? ;)

Thanks so much
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Change 'collapse all' and 'expand all' labels language

Post by Scott Klement »

Those are not quite the same as the Portuguese translations. It looks like you have found some bad translations in our es_ES support. I do not speak Spanish, and so I did not know that these were incorrect -- I had to trust the guy who sent us the Spanish translations, and it looks like there were some errors in his Spanish.

I will correct them for the next release of Profound UI. In the meantime, you can change the translations on your installation by creating a JavaScript file to customize the messages, as described here:
http://www.profoundlogic.com/docs/displ ... ge+Support

Let me know if you have any problems.
infgge00
Profound User
Posts: 28
Joined: Mon May 05, 2014 4:15 am
First Name: Giovani
Last Name: Garcia Estevez
Company Name: SISA, S.L.
Contact:

Re: Change 'collapse all' and 'expand all' labels language

Post by infgge00 »

Ok! I have the javascript settings file with Spanish translation, but In the documentation don´t exists any tag with 'collapse all' and 'expand all' text. I´ve tried with this:

pui["runtimeText"]["es_ES"]["collapse all"]

but profoundui didn´t recognize it. The same case with "expand all".

Don´t worry, I can wait for next release. Thanks so much
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Change 'collapse all' and 'expand all' labels language

Post by Scott Klement »

Your code should look like this:

Code: Select all

pui["runtimeText"]["es_ES"]["collapseAll"]          = "Contraer todo";
pui["runtimeText"]["es_ES"]["expandAll"]            = "Expandir todo";
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests