How to set stocktype per locale?
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How to set stocktype per locale?
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
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
Re: How to set stocktype per locale?
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, give us a star
If you like Aimeos, give us a star
Re: How to set stocktype per locale?
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.