This find came up in a thread in German forum about another issue with plg_system_redirect
.
plg_system_redirect
with activated setting collect_urls
.plugins\system\redirect\redirect.php
:
echo Text::_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE');
PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE
PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE
translated to An error occurred while updating the database.
PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE
not translated
When I set in line 42 protected $autoloadLanguage = true;
instead of protected $autoloadLanguage = false;
the string is translated.
Question before I provide a PR is if it is by purpose that $autoloadLanguage
is false
and not true
?
Labels |
Added:
No Code Attached Yet
|
Yes, because there is no need to load language files on every request.
Where should the language then be loaded?
Preferably right before the strings are used.
Then I'm out concerning pr and someone else has to take over.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-12-09 23:34:37 |
Closed_By | ⇒ | ReLater |
Status | Closed | ⇒ | New |
Closed_Date | 2022-12-09 23:34:37 | ⇒ | |
Closed_By | ReLater | ⇒ |
Labels |
Added:
bug
|
Labels |
Added:
PBF
|
Labels |
Removed:
PBF
|
Yes, because there is no need to load language files on every request.