View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002840 | OXID eShop (all versions) | 4.06. Language and translations | public | 2011-05-05 15:06 | 2011-08-18 08:58 |
Reporter | rrosendahl | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.0 revision 34568 | ||||
Fixed in Version | 4.5.2 revision 38481 | ||||
Summary | 0002840: Multilang fields in non-standard tables (e.g. in custom tables) | ||||
Description | It is currently not possible to define own database tables with multilang fields: The multilang table names are returned by the getMultilangTables() function in oxfunctions.php and this value is used directly in oxShop::generateViews(). This makes it impossible to use multilanguage fields when writing modules, without the shop owner having to edit the modules/functions.php file for every module that provides tables with multilanguage fields. One way to solve this might be to move the getMultilangTables() call in the oxShop class into a separate (protected) method, so that it can be overriden by a module, adding additional table names to the result. You might also consider putting the "$this->getConfig()->getConfigParam( 'aMultiShopTables' )" call into a protected getter in oxShop, so that both the multilang and multishop tables can be extended by overriding the oxShop class by modules. In addition to that, the oxfunctions.php getViewName() function also fetches the multilang table names directly from the getMultilangTables() function, so oxShop isn't the only place that would need changing. | ||||
Steps To Reproduce | Create a custom database table with multilang fields (e.g. data, data_1, data_2, data_3). No language views are created for this table and the multilang fields will thus not be used when switching languages in the frontend. | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||