To translate a customtext field

  • Posts: 719
  • Thank you received: 3
11 years 5 months ago #104748

Hi,
I'd like to add a customtext via Display>customfields> table address
I choose a "customtext" on field type
So, how can i have the text on two languages?
I just tried with a Joomla overrides but it does not work.
I tried with an hikashop translate field on hikashop file Language and it does not work.
How can i do?


my site with Hikashop
www.lacasettabio.it

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #104780

Please Log in or Create an account to join the conversation.

  • Posts: 719
  • Thank you received: 3
11 years 5 months ago #104820

Hi,
so I'm the second user to ask it! ;)

But i have a problem.

On my version i have:
"return @$field->field_options;" (here there is the word customtext in square brackets)

if i change with:
"return $this->trans(@$field->field_options);" (also here there is the word customtext in square brackets)


I have the frontend and the backend on error 500

If i change with:
"return $this->trans(@$field->field_options);" (without the word customtext in square brackets)


There is not an error 500 but, on the text place, i have the word "Array"

What can I do?

PS: it is impossible to write the customtext in square brackets on this forum !?!? :huh:


my site with Hikashop
www.lacasettabio.it
Last edit: 11 years 5 months ago by lacasetta.

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #104822

The forum removed the brackets on the other post.
I've fixed the code now, please look again.

Please Log in or Create an account to join the conversation.

  • Posts: 719
  • Thank you received: 3
11 years 5 months ago #104832

Ok, now it works! :cheer:
Thanks.

Will the new code be on the next release or i have to change it again?


my site with Hikashop
www.lacasettabio.it

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #104834

It will be in next release of course.

The following user(s) said Thank You: lacasetta

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum