how add locale text for product property types?

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!
Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

how add locale text for product property types?

Post by Ahmad » 05 Dec 2017, 16:53

i add a product type in Product Types for show in additional box properties in product details page,
but I did not find a place to add text in another languages for product types like attributes?
How can I do this?

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

Re: how add locale text for product property types?

Post by aimeos » 05 Dec 2017, 22:12

You can add a translation for your property types that are translated there:
https://github.com/aimeos/ai-client-htm ... t.php#L452

Here's documentation how to add/overwrite translations:
https://aimeos.org/docs/Laravel/Overwrite_translations

You need something like:

Code: Select all

'i18n' => array(
    'ar' => array(
        'client/code' => array(
            '<my property type>' => array('<new translation>'),
        ),
    ),
),
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply