Overriding Status Names
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!
Overriding Status Names
I would like to change the name of the statuses used in the admin panels. This code seems pretty standard:
I tried overriding in the shop.php under i18n, en, mshop but that didn't work. I also tried adding values to mshop, i18n, en which didn't work.
Can you let me know how I would make that change?
Code: Select all
'status' => ['op' => '==', 'type' => 'select', 'val' => [
'1' => $this->translate( 'mshop/code', 'status:1' ),
'0' => $this->translate( 'mshop/code', 'status:0' ),
'-1' => $this->translate( 'mshop/code', 'status:-1' ),
'-2' => $this->translate( 'mshop/code', 'status:-2' ),
]],
Can you let me know how I would make that change?
Re: Overriding Status Names
The translation domain is "mshop/code":
See also: https://aimeos.org/docs/latest/laravel/ ... anslations
Code: Select all
'i18n' => [
'en' => [
'mshop/code' => [
'status:1' => ['Active'],
],
],
],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)