Page 1 of 1

Translating error messages

Posted: 04 Oct 2017, 13:14
by pixls
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

Re: Translating error messages

Posted: 05 Oct 2017, 07:30
by aimeos
Which error message do you get exactly?

Re: Translating error messages

Posted: 05 Oct 2017, 07:55
by pixls
It's this one:
Requirements for coupon code "XYZ" aren't met

Re: Translating error messages

Posted: 05 Oct 2017, 14:03
by aimeos
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

Re: Translating error messages

Posted: 05 Oct 2017, 14:27
by pixls
Awesome, using this version worked.
Thanks a lot :)