Translation of the names of attachments in the product card

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
1 year 7 months ago #351466

Is it possible to enter a translation for several languages of the names of attachments for products.

Best regards,
Tomek

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
1 year 7 months ago #351492

Hi,

It's not possible with the translation system built in HikaShop.
However, if you use Falang for your translations, then in the Falang translations listing, you can translate your HikaShop files and thus change the name / filename of your product files and images per language.

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
1 year 7 months ago #351498

Nicolas,
that's not good.
Installing the entire Falang component just to translate attachments?
Any chance this will change?

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
1 year 7 months ago #351508

Hi,

Then, with custom view overrides, you can change the image display code to handle translation overrides.
For example, in the product / show_block_product_files view file, you can change:
$file->file_name
to :
hikashop_translate($file->file_name)

Then, add your translation override in the language files overrides under the Languages tab of the HikaShop configuration.
For example if the name of the file is "HikaShop in English", you can add the fr-FR override:
HIKASHOP_IN_ENGLISH="HikaShop en Français"

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
1 year 7 months ago #351546

Thanks Nicolas,
but will it work for several files for one product, and different files for different products?

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
1 year 7 months ago #351555

Yes it will.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum