Skip to main content

Translation of the names of attachments in the product card

More
3 years 4 months ago #351466 by StudioPrzyLesie
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.

More
3 years 4 months ago #351492 by nicolas
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.

More
3 years 4 months ago #351498 by StudioPrzyLesie
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.

More
3 years 4 months ago #351508 by nicolas
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.

More
3 years 4 months ago #351546 by StudioPrzyLesie
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.

More
3 years 4 months ago #351555 by nicolas

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

Time to create page: 0.234 seconds
Powered by Kunena Forum