Translating error messages

Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

Translating error messages

Post by pixls » 04 Oct 2017, 13:14

Hi

In the the file ai-client-html/client/html/templates/basket/standard/body-default.php
there are these error messages:

<?php if( isset( $this->standardErrorList ) ) : ?>
<ul class="error-list">
<?php foreach( (array) $this->standardErrorList as $errmsg ) : ?>
<li class="error-item"><?= $enc->html( $errmsg ); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>

How can I translate/change those? I'm working on a German speaking site and if I enter a voucher code without meeting the basket value requirement I get an English Message.

Thanks for any help.
PHP 7.0.24, TYPO3 8.7.7, aimeos 17.7.0

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

Re: Translating error messages

Post by aimeos » 05 Oct 2017, 07:30

Which error message do you get exactly?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

Re: Translating error messages

Post by pixls » 05 Oct 2017, 07:55

It's this one:
Requirements for coupon code "XYZ" aren't met

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

Re: Translating error messages

Post by aimeos » 05 Oct 2017, 14:03

The problem is that the coupon code is part of the message. It can't be translated because of that dynamic part. We've fixed that in the dev-master branch and it will be part of the next release:
https://github.com/aimeos/ai-controller ... 39fbdc1b71
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

Re: Translating error messages

Post by pixls » 05 Oct 2017, 14:27

Awesome, using this version worked.
Thanks a lot :)

Post Reply