0

I have a Magento 2 setup with a danish language package installed and porto theme. But the search fields text "All categories" is not translated:

2

I tried to add a i18n folder in my theme. Both in the the root "porto_child" and in the Magento_Search.

enter image description here

The content of da_dk.csv:

"All categories", "Alle kategorier"

But I can't get it to translate.

I saw this post How to properly transalte All Categories to another language? But I don't have a vendor/mageplaza folder, though the danish translation is from Mageplaze. I don't know where that translation lives?

1 Answer 1

0

you can find below file in your module

Mageplaza\Search\Helper\Data.php

and find function

getCategoryTree()

enter image description here

and use here All Categories word with standard magento way..

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.