View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007122 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2020-04-18 19:25 | 2024-07-17 15:06 |
Reporter | leofonic | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Product Version | 6.2.0 | ||||
Summary | 0007122: Module translations are not available in onactivate method | ||||
Description | I use module translations in onactivate method to create some language specific database entries. This doesn't work anymore because translations are no longer available during activation. | ||||
Steps To Reproduce | 1. Open the file source/modules/oe/gdproptin/Core/GdprOptinModule.php 2. Add this line in the onActivate method: var_dump(\OxidEsales\EshopCommunity\Core\Registry::getLang()->translateString('OEGDPROPTIN_STORE_DELIVERY_ADDRESS', 0, false)); 3. Activate the GDPR Opt-in module and inspect the output. In Oxid 6.1.5 Output is the translated string. In Oxid 6.2.0 Output is 'OEGDPROPTIN_STORE_DELIVERY_ADDRESS' | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
@leofonic: Would you please elaborate a bit on your use case? Although we can think of multiple ways to solve this, it heavily depends on what exactly you are trying. |
|
Due to missing response, I will close this ticket. Please re-open in case you have new feedback. |