Jump to content

Cant find translation :(


andreicos82

Recommended Posts

Hi, 

I've took a closer look, and it seems it's a Ps variable bug. 

The easiest way of doing it now is to edit using PHP the following file and change the code itself inside the module: 

/modules/ps_facetedsearch/src/Filters/block.php

approximately line 434

change 'Available' to whatever you need it. 
 

 $availabilityOptions = [
                0 => [
                    'name' => $this->context->getTranslator()->trans(
                        'Not available',
                        [],
                        'Modules.Facetedsearch.Shop'
                    ),
                    'nbr' => 0,
                ],
                1 => [
                    'name' => $this->context->getTranslator()->trans(
                        'Available',
                        [],
                        'Modules.Facetedsearch.Shop'
                    ),
                    'nbr' => 0,
                ], 

Don't forget to clear the Module cache after. 

I hope it solves your problem. 

Cheers, 

Leo 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...