View Issue Details

IDProjectCategoryView StatusLast Update
0005176OXID eShop (all versions)2.3. Extensions (modules, themes)public2022-02-02 09:19
Reporterd3 Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Summary0005176: As a developer i want to define the file-structure in a module by myself
DescriptionFor example we have a base folder of a module:
/modules/vendorid/modid/
hereinafter referred to as /base/

So we want to put the menu.xml in there.
So i have to create the file in /base/menu.xml.
i can't declare the file in the metadata.php:
'menu' => array('theme' => 'path/to/menu.xml'),
examle:
'menu' => array('admin' => 'menu/admin/menu.xml'),

Now we want translate some strings.
like in http://www.shoptimax.de/blog/technisches/sprachdateien-bei-modulen-in-4-75-0/ explained.
I have to use the following structure:
frontend: /modules/mymodule/translations/de/mymodule_lang.php
backend: /modules/mymodule/views/admin/de/mymodule_lang.php

'lang' => array('theme' => array('langid' => 'path/to/lang.php')),
examle:
'lang' => array('admin' => array('de' => 'translations/de/lang.php')),
or
this can be used for all themes:
'lang' => array('global' => array('de' => 'translations/de/lang.php')),

Additional Informationthanks to marat for the title :-)

--

Sorry for removing the bad title - Sven
TagsNo tags attached.
ThemeNot defined
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Relationships

related to 0004886 resolvedLinas Kukulskis module language translations structure 
related to 0005042 resolvedSvenBrunk metadata-blocks doesn't support multiple themes 

Activities

ray

2013-06-18 21:48

reporter   ~0008787

related: https://bugs.oxid-esales.com/view.php?id=4886

svetlana

2014-03-28 10:06

reporter   ~0009765

waiting for the PO decision.

dajoho

2014-04-29 11:36

reporter   ~0009864

Any progress on this? We'd like to see this feature too.

SvenBrunk

2022-02-02 09:19

administrator   ~0013708

Replaced the bad title by something more clear