Skip to content

Commit

Permalink
[5.2] Check whether there is a language file from the frontend (#44730)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 authored Jan 18, 2025
1 parent 5df5fc4 commit 65acec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions administrator/components/com_mails/src/Helper/MailsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ public static function loadTranslationFiles($extension, $language = 'en-GB')
case 'com':
default:
$source = JPATH_ADMINISTRATOR . '/components/' . $extension;

$lang->load($extension, JPATH_BASE, $language, true)
|| $lang->load($extension, JPATH_BASE . '/components/' . $extension, $language, true);

break;

case 'mod':
Expand Down

0 comments on commit 65acec1

Please sign in to comment.