Translation issue?
Posted: 13 Sep 2021, 13:02
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