View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004527 | OXID eShop (all versions) | 4.06. Language and translations | public | 2012-09-16 09:42 | 2012-11-20 15:08 |
Reporter | WBL_BjoernLange | Assigned To | |||
Priority | high | Severity | block | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.7.0_5.0.0_beta2 | ||||
Target Version | 4.8.0_5.1.0_beta1 | Fixed in Version | 4.7.1 / 5.0.1 revision 52468 | ||
Summary | 0004527: Module-Language-Data can not be overwritten | ||||
Description | oxLang::_getLangFilesPathArray loads the custom language files prior the module language files in the modules dir. There is no way overloading the module language from the modules-Dir except from adding a module.// admin lang files $sAdminPath = $sOutDir . 'admin/' . $sLang . '/'; $aLangFiles[] = $sAdminPath . "lang.php"; $aLangFiles[] = $sOutDir . $sLang . '/translit_lang.php'; $aTmpFiles = glob( $sAdminPath."*_lang.php" ); if ( is_array( $aTmpFiles ) && count( $aTmpFiles ) ) { $aLangFiles = array_merge( $aLangFiles, $aTmpFiles); } // themes options lang files $sThemePath = $sOutDir . '*/' . $sLang . '/theme_options.php'; $aTmpFiles = glob( $sThemePath ); if ( is_array( $aTmpFiles ) && count( $aTmpFiles ) ) { $aLangFiles = array_merge( $aLangFiles, $aTmpFiles); } //load admin modules lang files if ( is_array( $aModuleInfo ) ) { foreach ( $aModuleInfo as $sPath ) { $aModuleFiles = glob( $myConfig->getModulesDir().$sPath.'/out/admin/' . $sLang . '/*_lang.php' ); if ( is_array( $aModuleFiles ) && count( $aModuleFiles ) ) { $aLangFiles = array_merge( $aLangFiles, $aModuleFiles ); } Imho this approach blocks developers, to load languages from the module dir directly because the customer is not able to change the language texts of a module. The better way would be, to load the custom-files after the module files. | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||