View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004886 | OXID eShop (all versions) | 4.06. Language and translations | public | 2013-02-01 14:17 | 2013-02-01 15:01 |
Reporter | tabsl | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 4.7.3 / 5.0.3 revision 54408 | ||||
Summary | 0004886: module language translations structure | ||||
Description | the directory structure for translation-files in modules (frontend/admin) should be the same as in the oxid-core. since 4.7/5.0 the structure is: frontend: /modules/mymodule/translations/de/mymodule_lang.php admin: /modules/mymodule/views/admin/de/mymodule_lang.php but it should be oxid core like: frontend: /modules/mymodule/appliaction/views/azure/de/mymodule_lang.php admin: /modules/mymodule/application/views/admin/de/mymodule_lang.php at the moment it´s very confusing ... | ||||
Steps To Reproduce | oxLang::_appendModuleLangFiles() | ||||
Additional Information | http://forum.oxid-esales.com/showthread.php?t=17091 | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
general shop translations is in application/translation dir. the same is with modules. for admin in shop application/views/admin. the same is with modules. translations in applications/views/azure/de/ - is only themes, and in general should only extend whats missing in general shop translation or add specific constants |
|
> general shop translations is in application/translation dir. the same is with modules. OK > for admin in shop application/views/admin. the same is with modules. not OK incorrect: /modules/mymodule/views/admin/de/mymodule_lang.php correct: /modules/mymodule/application/views/admin/de/mymodule_lang.php look into: oxLang::_appendModuleLangFiles() |
|
in module, you do not need application dir at all. in module we just extend models, controllers, core etc. files. so in shop application/views/admin/de in module: /modules/mymodule/views/admin/de/ |