Translating error messages
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!
Translating error messages
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
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
Which error message do you get exactly?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Translating error messages
It's this one:
Requirements for coupon code "XYZ" aren't met
Requirements for coupon code "XYZ" aren't met
Re: Translating error messages
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
https://github.com/aimeos/ai-controller ... 39fbdc1b71
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Translating error messages
Awesome, using this version worked.
Thanks a lot
Thanks a lot