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
  • Awesome thanks!.. Whats the best way to override this? Commented Sep 11, 2020 at 7:05
  • @JonasBorneland please check here: stackoverflow.com/a/45429776/10748606 Commented Sep 11, 2020 at 8:31
  • Thanks!! I will make an helper override Commented Sep 11, 2020 at 9:11

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.