How to set stocktype per locale?

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

How to set stocktype per locale?

Post by cnoelker » 06 Apr 2022, 09:00

Hello,
after a bit of digging into the code, I found this line:

$type = $context->getLocale()->getSite()->getConfigValue( 'stocktype' );

So I figured out, that this type is what I need to set. Are the translation files the correct location? E.g.

Resources/Private/Extensions/ai-client-html/client/i18n/code/en.po
#. Stock type
msgid "stocktype:default"
msgstr " "

Claudia

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

Re: How to set stocktype per locale?

Post by aimeos » 08 Apr 2022, 07:11

Yes, the translation file is in the correct location but remember you need to create a binary MO file using "msgfmt".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: How to set stocktype per locale?

Post by cnoelker » 11 Apr 2022, 07:56

Thanks for the confirmation. I have a script which created the files with msgfmt so that I don't have to worry about that one. :-)

Post Reply