Attribute types translation in admin

Help for integrating the Laravel package
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!
akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

Attribute types translation in admin

Post by akropivko » 23 Sep 2023, 13:57

Please provide the way to translate the attribute types on product details, see the screenshot
Screenshot_37.jpg
Screenshot_37.jpg (199.07 KiB) Viewed 19692 times
Version - 2023.07
Integration - Laravel
System - Windows10

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Attribute types translation in admin

Post by aimeos » 24 Sep 2023, 20:46

You can translate the attribute types in your ./config/shop.php or using a PO/MO file in the "client/code" domain:
https://github.com/aimeos/ai-client-htm ... y.php#L387

See also: https://aimeos.org/docs/latest/laravel/ ... anslations
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

Re: Attribute types translation in admin

Post by akropivko » 27 Sep 2023, 19:10

aimeos wrote: 24 Sep 2023, 20:46 You can translate the attribute types in your ./config/shop.php
Could you prodide me with the path for the translation in ./config/shop.php? I tried several options, but with no result

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Attribute types translation in admin

Post by aimeos » 29 Sep 2023, 06:53

Code: Select all

'i18n' => [
	'en' => [
		'client/code' => [
			'Material_fasadu' => ['Facade material']
		]
	]
]
Starting with 2023.10 LTS, you will be able to add translations directly to the type items in the Aimeos backend.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

Re: Attribute types translation in admin

Post by akropivko » 29 Sep 2023, 10:42

aimeos wrote: 29 Sep 2023, 06:53 'i18n' => [
'en' => [
'client/code' => [
'Material_fasadu' => ['Facade material']
]
]
]
It works good for the frontend, but it still doesn't work for the admin part, see the screenshort:
Screenshot_38.jpg
Screenshot_38.jpg (237.87 KiB) Viewed 19627 times
aimeos wrote: 29 Sep 2023, 06:53 Starting with 2023.10 LTS, you will be able to add translations directly to the type items in the Aimeos backend.
That's great, thanks

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Attribute types translation in admin

Post by aimeos » 29 Sep 2023, 10:45

The backend attribute codes won't be translated, only in the frontend
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply