How to disable auto setup of locale en-Euro?
Posted: 11 Oct 2021, 13:58
Hello, I find hardcoded locale en Euro in app/vendor/aimeos/aimeos-core/lib/mshoplib/setup/MShopAddLocaleData.php in migrate()
But, what if I don't need this? How can I disable this from the setup? Thank you.
Code: Select all
try
{
$localeItem = $localeManager->create();
$localeItem->setSiteId( $siteItem->getSiteId() );
$localeItem->setLanguageId( 'en' );
$localeItem->setCurrencyId( 'EUR' );
$localeItem->setStatus( 1 );
$localeManager->save( $localeItem, false );
}
catch( \Aimeos\MW\DB\Exception $e ) // already in the database
{
$this->status( 'OK' );
return;
}