Does own extension really overwrite all translations?

Questions around the TYPO3 integration and plugins
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!
User avatar
alexkereszturi
Posts: 8
Joined: 24 Dec 2024, 11:16

Does own extension really overwrite all translations?

Post by alexkereszturi » 26 Jan 2025, 16:11

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?

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Does own extension really overwrite all translations?

Post by aimeos » 27 Jan 2025, 10:06

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, Image give us a star

Post Reply