Translation (localisation) not working after update

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!
claude27
Posts: 12
Joined: 25 Jul 2024, 11:24

Translation (localisation) not working after update

Post by claude27 » 20 Sep 2024, 11:25

After an update of aimeos/aimeos-typo3 from 24.4.2 to 24.7.2 by composer the labels in the frontend are no longer translated in german (The translation in the backend of the aimeos shop is working). For version 24.7.2 it is the same.

E.g. instead of "In den Warenkorb" the label is "Add to basket"

Any ideas how to solve this?

Here in any case an abstract of of the composer report:
Lock file operations: 0 installs, 12 updates, 0 removals
- Upgrading aimeos/ai-admin-graphql (2024.04.7 => 2024.07.1)
- Upgrading aimeos/ai-admin-jqadm (2024.04.9 => 2024.07.5)
- Upgrading aimeos/ai-admin-jsonadm (2024.04.2 => 2024.07.1)
- Upgrading aimeos/ai-client-html (2024.04.7 => 2024.07.3)
- Upgrading aimeos/ai-client-jsonapi (2024.04.1 => 2024.07.2)
- Upgrading aimeos/ai-controller-frontend (2024.04.2 => 2024.07.3)
- Upgrading aimeos/ai-controller-jobs (2024.04.3 => 2024.07.3)
- Upgrading aimeos/ai-payments (2024.04.2 => 2024.07.1)
- Upgrading aimeos/ai-typo3 (2024.04.2 => 2024.07.1)
- Upgrading aimeos/aimeos-base (2024.04.1 => 2024.07.2)
- Upgrading aimeos/aimeos-core (2024.04.7 => 2024.07.4)
- Upgrading aimeos/aimeos-typo3 (24.4.2 => 24.7.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 12 updates, 0 removals
- Downloading aimeos/aimeos-core (2024.07.4)
- Downloading aimeos/ai-admin-jqadm (2024.07.5)
- Downloading aimeos/ai-controller-frontend (2024.07.3)
- Downloading aimeos/ai-client-html (2024.07.3)
- Downloading aimeos/ai-controller-jobs (2024.07.3)
- Downloading aimeos/aimeos-typo3 (24.7.2)
- Upgrading aimeos/aimeos-base (2024.04.1 => 2024.07.2): Extracting archive
- Upgrading aimeos/aimeos-core (2024.04.7 => 2024.07.4): Extracting archive
- Upgrading aimeos/ai-admin-graphql (2024.04.7 => 2024.07.1): Extracting archive
- Upgrading aimeos/ai-admin-jqadm (2024.04.9 => 2024.07.5): Extracting archive
- Upgrading aimeos/ai-admin-jsonadm (2024.04.2 => 2024.07.1): Extracting archive
- Upgrading aimeos/ai-controller-frontend (2024.04.2 => 2024.07.3): Extracting archive
- Upgrading aimeos/ai-client-html (2024.04.7 => 2024.07.3): Extracting archive
- Upgrading aimeos/ai-client-jsonapi (2024.04.1 => 2024.07.2): Extracting archive
- Upgrading aimeos/ai-controller-jobs (2024.04.3 => 2024.07.3): Extracting archive
- Upgrading aimeos/ai-payments (2024.04.2 => 2024.07.1): Extracting archive
- Upgrading aimeos/ai-typo3 (2024.04.2 => 2024.07.1): Extracting archive
- Upgrading aimeos/aimeos-typo3 (24.4.2 => 24.7.2): Extracting archive

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

Re: Translation (localisation) not working after update

Post by aimeos » 22 Sep 2024, 20:36

Can you check what the locale entry at first position in the Locale > Locale panel of the Aimeos admin backend?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 109
Joined: 13 Jul 2015, 23:59

Re: Translation (localisation) not working after update

Post by Metalics » 11 Oct 2024, 03:17

We have the same problem. Only English version of pages shown after updating to Aimeos V24.x
Localization is working on backend as expected.

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

Re: Translation (localisation) not working after update

Post by aimeos » 11 Oct 2024, 12:58

Do you have a locale selector for switching between several language/currency combinations?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 109
Joined: 13 Jul 2015, 23:59

Re: Translation (localisation) not working after update

Post by Metalics » 11 Oct 2024, 13:32

We are using Typo3 language selector. It was working normally in previous versions. But after update, it only shows English version of Aimeos, even if you choose eg. Turkish

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

Re: Translation (localisation) not working after update

Post by aimeos » 11 Oct 2024, 13:39

Can you copy this code into the appropriate class in your extension?
https://github.com/aimeos/aimeos-typo3/ ... hp#L32-L72

It should fix the problem but isn't released yet.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 109
Joined: 13 Jul 2015, 23:59

Re: Translation (localisation) not working after update

Post by Metalics » 12 Oct 2024, 11:46

I am afraid I don't know which code I should copy to where.

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

Re: Translation (localisation) not working after update

Post by aimeos » 14 Oct 2024, 14:52

Do you have a composer based setup?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 109
Joined: 13 Jul 2015, 23:59

Re: Translation (localisation) not working after update

Post by Metalics » 14 Oct 2024, 15:38

No, installed via Typo3 extension manager

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

Re: Translation (localisation) not working after update

Post by aimeos » 14 Oct 2024, 15:48

Then, the relevant code to replace is most likely in typo3conf/ext/aimeos/Classes/Base/Locale.php and needs to be replaced by these file: https://github.com/aimeos/aimeos-typo3/ ... Locale.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply