Problem with translation

  • Posts: 18
  • Thank you received: 0
  • Hikashop Business
16 hours 55 minutes ago #369700

-- HikaShop version -- : 6.1.1 Business
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.2.29
-- Browser(s) name and version -- : Chrome 143.0.7499.41

I am in the process of migrating a Joomla website (Italian and English version), with Hikashop and Falang, from Joomla 3 to Joomla 5, not with the automatic Joomla upgrade but creating a new site and then importing contents.

I installed Hikashop and imported the products successfully; then I installed Falang and also imported its tables.

Translation of pages and menus is working, but product custom fields (whose contents were created and translated via the language files it-IT_com_hikashop.ini and en-GB_com_hikashop.ini) are not (only the language constants are shown).

Plus, although Italian is set as the main admin and frontend language and the Italian translation files are correctly installed, the Hikashop admin interface is still in English, as are all core Hikashop frontend strings (e.g., “add to cart”).

Italian language files are correctly present in the language/it-IT folders, and have the right contents. But it seems they aren’t read by Hikashop, neither on the backend nor on the frontend.

But If I put some of the translated constants in the override file, they work. I could then copy all the contents of the language files in the override files, but I don’t think this is the correct working procedure.

Last, I noticed that in the old site, the language strings that have line breaks are correctly rendered, while in the new one, they are not (<br /> tags instead work). Is this a Joomla issue or is it specific to Hikashop? I’ll have to do a massive search and replace on the language files, or is there a way to avoid this?

Thanks in advance for your reply
Marco

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

  • Posts: 84810
  • Thank you received: 13809
  • MODERATOR
11 hours 22 minutes ago #369702

Hi,

Thank you for your feedback. We made a big effort recently to progress the translations on several languages, including Italian.
Following your feedback, I checked the Italian language file and there was an unfortunate mistake with one of the translations, which lead to Joomla not being able to process the language file anymore.
I've fixed the issue on our end.
Go in your HikaShop configuration page, and under the Languages tab, edit the Italian language file. Then, click on the "load latest version from our server" button, validate, and save.
You'll then get the new version of the language file with the fix I just made and you'll be able to see the HikaShop Italian translations on your website.

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

  • Posts: 18
  • Thank you received: 0
  • Hikashop Business
10 hours 44 minutes ago #369704

Thank you. Now Hikashop in the administration is in Italian, as it should be. But there is still the linebreak issue. I copied into the Italian language override file all the translations that worked in Joomla 3, but they don't work unless any line break is removed. So I ask again: is it an issue that cannot be solved without searching and replacing all linebreaks with <br /> tags?

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

Time to create page: 0.054 seconds
Powered by Kunena Forum