Problem with translation

  • Posts: 19
  • Thank you received: 0
  • Hikashop Business
3 days 21 hours 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: 84813
  • Thank you received: 13811
  • MODERATOR
3 days 15 hours 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: 19
  • Thank you received: 0
  • Hikashop Business
3 days 15 hours 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.

  • Posts: 84813
  • Thank you received: 13811
  • MODERATOR
3 days 42 minutes ago #369705

Hi,

I'm sorry but I didn't understand that part. Could you provide a precise example of the problem ?

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

  • Posts: 19
  • Thank you received: 0
  • Hikashop Business
56 minutes ago #369736

The original language files contained a number of constants whose text had some linebreaks, such as:
CONSTANT="text 1 text2
text 3 text 4
text5"

In Joomla 3 these constants were correctly rendered with the appropriate lineabreaks. In Joomla 5 the linebreaks are causing error, so that the whole content of the .ini language file is not applied.

Hope now the issue is more clear

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

Time to create page: 0.056 seconds
Powered by Kunena Forum