Bug with hikashop_translate()

  • Posts: 20
  • Thank you received: 0
6 hours 21 minutes ago #369232

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 6.0.0
-- PHP version -- : 8.3

Hikashop always translates product names.
I have a product with both Cyrillic and English chars (that's how it's required):
"Крем корректирующий Азеline (Азелайн)"

See that it contains English chars "line", all other are Cyrillic.

The problem is that function hikashop_translate() strips all non-English chars and translates it using weird simple LINE key which exists in Hikashop translation file.

Please either don't strip the non-language chars via "$val = preg_replace('#[^A-Z_0-9]#','',strtoupper($o));"
or rename all simple keys in language files, the keys like LINE, COLUMN, should not exists.
In normal Joomla component all language keys should have the component-specific prefix: COM_HIKASHOP_

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

  • Posts: 84624
  • Thank you received: 13765
  • MODERATOR
2 hours 48 minutes ago #369233

Hi,

You can turn on the "Non-latin translation keys" setting of the HikaShop configuration:
www.hikashop.com/support/documentation/5...onfig.html#languages
This way, instead of using the latin letters of the name as key for the translation, it will use a hash of all the characters and prefix it. This will prevent overlap with other translation keys.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum