Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2326

Joomla! 5.x Coding • PLG_FINDER_QUERY_FILTER_BRANCH_S_

$
0
0
I've just started to style the smart search and on my local development site, I first did a test search to see what the default styling looks like. I discovered something that apparently people do encounter and have even in previous Joomla versions with the Smart Search.

When you do a search, the results show up but in the footer, there are two language constants that show up and I have not found an actual reason and solution why it does this. In my search results, this shows up:

Code:

Type: Article  Author: PLG_FINDER_QUERY_FILTER_BRANCH_S_ANDRE Category: PLG_FINDER_QUERY_FILTER_BRANCH_S_TRAIL_EATING_BLOG
After doing a global search with my code editor for everything in the Joomla installation, these constants show up in 25 results. These parts are for the labels, for example: PLG_FINDER_QUERY_FILTER_BRANCH_S_AUTHOR="Author"

As you can see from the search results do show these labels. However, for some reason, it's loading the constants with the value relating to the author and category added as a suffix-based constant. To find out why this is, I looked at this file:

Code:

D:\xampp\htdocs\traileating\administrator\components\com_finder\src\Helper\LanguageHelper.php on Line 62 and 63.
We see this code:

Code:

  public static function branchSingular($branchName)    {        $return   = preg_replace('/[^a-zA-Z0-9]+/', '_', strtoupper($branchName));        $language = Factory::getApplication()->getLanguage();        if ($language->hasKey('PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return) || JDEBUG) {            return 'PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return;        }        return $branchName;    }
Does anyone know why this happens and how to solve it? Because this appears to happen to others over the last few years, there is very little on this. Or, is this going to be a Joomla bug submission?

NOTE: This is Joomla 5.0.2, Smart Search enabled, and no custom changes have been made yet--straight out of the box default. My language is set to en-GB.

Incidentally, this happens also when I switch to the Cassiopeia template.

Statistics: Posted by GPixels — Mon Feb 12, 2024 6:57 pm



Viewing all articles
Browse latest Browse all 2326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>