Skip to content

Commit

Permalink
[4.4] Language Filter strings (#42687)
Browse files Browse the repository at this point in the history
* [4.4]

* Update administrator/components/com_finder/src/Helper/LanguageHelper.php

Co-authored-by: Richard Fath <[email protected]>

---------

Co-authored-by: Richard Fath <[email protected]>
  • Loading branch information
brianteeman and richard67 authored Feb 6, 2024
1 parent 6253096 commit bef1c83
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ public static function branchSingular($branchName)
{
$return = preg_replace('/[^a-zA-Z0-9]+/', '_', strtoupper($branchName));
$language = Factory::getApplication()->getLanguage();
$debug = Factory::getApplication()->get('debug_lang');

if ($language->hasKey('PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return) || JDEBUG) {
if ($language->hasKey('PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return) || $debug) {
return 'PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return;
}

Expand Down

0 comments on commit bef1c83

Please sign in to comment.