Translation issue?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Translation issue?
I've added a new translation file for swedish for the client side in my extension.
This all works very well. But on the product detail page I get this text above the add to basket button
The "Finns i lager" is my translation for stock-high but want to get the right text instead of the "stocktype:default" I'm guessing there is a translation somewhere.
In this case the text stocktype:default comes from the /ext/dinsaluhall/client/html/catalog/stock/body-standard.php
where translate is called at row 69-73, like this
I can't find the key 'client/code' anywhere in the codebase other than being used as a key in a lot of various templates and cases, tried adding it to my .po file, didn't work.
What am I missing?
Thanx/Dan
This all works very well. But on the product detail page I get this text above the add to basket button
Code: Select all
Finns i lager stocktype:default
In this case the text stocktype:default comes from the /ext/dinsaluhall/client/html/catalog/stock/body-standard.php
where translate is called at row 69-73, like this
Code: Select all
$stockType = 'stocktype:' . $item->getType();
if( !isset( $typeText[$stockType] ) ) {
$typeText[$stockType] = $this->translate( 'client/code', $stockType );
}
What am I missing?
Thanx/Dan
_____________
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Re: Translation issue?
Found it.
For others that wonder, these translations are .po files in the i18n/code/ folder
To translate to text, add the text you want, to remove, add a whitespace as translation.
/Dan
For others that wonder, these translations are .po files in the i18n/code/ folder
To translate to text, add the text you want, to remove, add a whitespace as translation.
/Dan
_____________
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Re: Translation issue?
If you do in Transifex, it will be fixed for all others too:
https://www.transifex.com/aimeos/public/
https://www.transifex.com/aimeos/public/
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: Translation issue?
Added client .po and client/code .po with swedish translations to transifex
_____________
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25