- Posts: 196
- Thank you received: 15
Translation of the names of attachments in the product card
- StudioPrzyLesie
-
Topic Author
- Offline
Less
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
Best regards,
Tomek
Please Log in or Create an account to join the conversation.
3 years 4 months ago #351492
by nicolas
Replied by nicolas on topic Translation of the names of attachments in the product card
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.
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.
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
- Posts: 196
- Thank you received: 15
3 years 4 months ago #351498
by StudioPrzyLesie
Replied by StudioPrzyLesie on topic Translation of the names of attachments in the product card
Nicolas,
that's not good.
Installing the entire Falang component just to translate attachments?
Any chance this will change?
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.
3 years 4 months ago #351508
by nicolas
Replied by nicolas on topic Translation of the names of attachments in the product card
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"
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.
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
- Posts: 196
- Thank you received: 15
3 years 4 months ago #351546
by StudioPrzyLesie
Replied by StudioPrzyLesie on topic Translation of the names of attachments in the product card
Thanks Nicolas,
but will it work for several files for one product, and different files for different products?
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.
3 years 4 months ago #351555
by nicolas
Replied by nicolas on topic Translation of the names of attachments in the product card
Yes it will.
Please Log in or Create an account to join the conversation.
Time to create page: 0.234 seconds