zc158 - this is not a bug so if inappropriate please move to a more convenient discussion location.
With zc158 I am trying to understand about loading language files to enable the:
. payment plugin SecurePayXML
. shipping plugin AuPost
. ot-total module paymentmoduelfee
. to work better with PHP8.2 and edit orders and still operate with zc157d.
In admin/modules.php
at approx line 182 the $languageLoader->hasLanguageFile is called and passes
(DIR_FS_CATALOG . DIR_WS_LANGUAGES, $_SESSION['language'], $file, '/modules/' . $module_type)
$module_type does not require the folder slash "/" on the end as this is added in the public function hasLanguageFile in /includes/classes/ResourceLoaders/LanguageLoader.php
This function looks for the pre zc158 language file first and if it exists returns true
else it looks for the zc158 lang.language file and if it exists returns true
When control is passed back to admin/modules.php
the $languageLoader->loadExtraLanguageFiles(DIR_FS_CATALOG . DIR_WS_LANGUAGES, $_SESSION['language'], $file, '/modules/' . $module_type);
is called in /includes/classes/ResourceLoaders/LangaugeLoader.php
The public function loadExtraLanguageFiles calls the arrayLoader
$this->arrayLoader->loadExtraLanguageFiles($rootPath, $language, $fileName, $extraPath);
with the original $extrapath but does not append the folder slash "/" nor does it look for the zc158 lang.language file.
I'm looking for assistance to understand how this is supposed to work.
Bookmarks