View Issue Details

IDProjectCategoryView StatusLast Update
0004886OXID eShop (all versions)4.06. Language and translationspublic2013-02-01 15:01
Reportertabsl 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.7.3 / 5.0.3 revision 54408 
Target VersionFixed in Version 
Summary0004886: module language translations structure
Descriptionthe 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 ReproduceoxLang::_appendModuleLangFiles()
Additional Informationhttp://forum.oxid-esales.com/showthread.php?t=17091
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0005176 assignedflorian.auer the forgotten functions of metadata.php 

Activities

Linas Kukulskis

2013-02-01 14:31

reporter   ~0008364

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

tabsl

2013-02-01 14:53

reporter   ~0008365

> 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()

Linas Kukulskis

2013-02-01 15:01

reporter   ~0008366

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/