Advertisement:

Author Topic: [SOLVED] How to translate category  (Read 715 times)

al

  • Newbie
  • *
  • Posts: 17
[SOLVED] How to translate category
« on: November 04, 2017, 10:09:55 pm »
Hi,

I can't translate category. Only english version is taken.

See pictures below.

Default language is French.
So, how can I translate categories ?

Thanks
« Last Edit: November 06, 2017, 11:55:21 pm by al »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to translate category
« Reply #1 on: November 05, 2017, 01:41:15 pm »
Hi,

That looks like a known bug when you're running MariaDB (maybe MySQL 5.7 as well? ???).

There' s an official fix still on develop stage, make a backup of your oc-includes/osclass/model/Category.php and replace its contents with this code:

https://raw.githubusercontent.com/osclass/Osclass/4a4d05059f3bc6c531fe1b03c33dc41b52e08b28/oc-includes/osclass/model/Category.php

Regards

al

  • Newbie
  • *
  • Posts: 17
Re: How to translate category
« Reply #2 on: November 06, 2017, 11:54:38 pm »
Hi,

That looks like a known bug when you're running MariaDB (maybe MySQL 5.7 as well? ???).

There' s an official fix still on develop stage, make a backup of your oc-includes/osclass/model/Category.php and replace its contents with this code:

https://raw.githubusercontent.com/osclass/Osclass/4a4d05059f3bc6c531fe1b03c33dc41b52e08b28/oc-includes/osclass/model/Category.php

Regards

It works. thanks Teseo
How can I mark your response as best answer ?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [SOLVED] How to translate category
« Reply #3 on: November 09, 2017, 02:46:34 pm »
You're welcome. :)

"SOLVED" in the title of this thread is fine, there's no "Best answer" mechanism here.

Regards