Does own extension really overwrite all translations?
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- alexkereszturi
- Posts: 8
- Joined: 24 Dec 2024, 11:16
Does own extension really overwrite all translations?
Using Typo3 with an own extension.
In Folder "myExtension/Resources/Private/Extensions/myExtension/i18n" there's a de.po file which (when converted) overwrites the default translations in "/vendor/aimeos/aimeos-core/i18n"
Works fine for:
- msgid "tax"
- msgid "stock-high"
- msgid "price:default"
and others
Fails with:
- msgid "CHF"
I had to change and convert the de.po in ""/vendor/aimeos/aimeos-core/i18n" to achieve a change in the frontend.
What am I doing wrong? Does an own extension really overwrite all translations? Also those in the "/currency"-Folder of the aimeos-core?
In Folder "myExtension/Resources/Private/Extensions/myExtension/i18n" there's a de.po file which (when converted) overwrites the default translations in "/vendor/aimeos/aimeos-core/i18n"
Works fine for:
- msgid "tax"
- msgid "stock-high"
- msgid "price:default"
and others
Fails with:
- msgid "CHF"
I had to change and convert the de.po in ""/vendor/aimeos/aimeos-core/i18n" to achieve a change in the frontend.
What am I doing wrong? Does an own extension really overwrite all translations? Also those in the "/currency"-Folder of the aimeos-core?
Re: Does own extension really overwrite all translations?
If you have these lines in your manifest.php file of your own extension, overwriting currencies should work too:
Code: Select all
'i18n' => [
'admin' => 'i18n',
'admin/ext' => 'i18n',
'client' => 'i18n',
'client/code' => 'i18n',
'controller/common' => 'i18n',
'controller/frontend' => 'i18n',
'controller/jobs' => 'i18n',
'country' => 'i18n',
'currency' => 'i18n',
'language' => 'i18n',
'mshop' => 'i18n',
'mshop/code' => 'i18n',
],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
