Question

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?

Was it helpful?

Solution

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..

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top