Proper way to translate mshoplib/codes
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!
-
- Posts: 1
- Joined: 20 Mar 2018, 13:04
Proper way to translate mshoplib/codes
Hi. I need to change translations which are located in this PO file:
/vendor/aimeos/aimeos-core/lib/mshoplib/i18n/code/sk.po
How should I do that properly so I wont lose my changes upon next update?
Thanks
/vendor/aimeos/aimeos-core/lib/mshoplib/i18n/code/sk.po
How should I do that properly so I wont lose my changes upon next update?
Thanks
Re: Proper way to translate mshoplib/codes
Create a .po file with your new translations "./lib/custom/i18n/sk.po" in you own Aimeos extension. Then use the msgfmt command to create a MO file named "./lib/custom/i18n/sk" (without extension):
https://aimeos.org/docs/Developers/Add_ ... anslations
Make sure the manifest.php file of your extension contains the proper reference:
As alternative, you can also add a few translations to your ./config/shop.php of your Laravel application:
https://aimeos.org/docs/Laravel/Overwrite_translations
https://aimeos.org/docs/Developers/Add_ ... anslations
Make sure the manifest.php file of your extension contains the proper reference:
Code: Select all
'i18n' => array(
// ...
'mshop' => 'lib/custom/i18n',
),
https://aimeos.org/docs/Laravel/Overwrite_translations
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)
-
- Posts: 44
- Joined: 05 Feb 2018, 09:57
Re: Proper way to translate mshoplib/codes
Thanks, but it doesnt seem to be working for "stat:1" or "status:1" strings. I tried both from shop.php and custom i18n. Strange that I could manage to overwrite "All" string, that is situated in the same selectbox.
- Attachments
-
- Snip20180402_1.png (14.55 KiB) Viewed 3758 times
Re: Proper way to translate mshoplib/codes
If the strings aren't translated for SK yet, please translate them at Transifex:
https://www.transifex.com/aimeos/public/
https://www.transifex.com/aimeos/public/
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)
Re: Proper way to translate mshoplib/codes
Same problem here "stat:2" and "pay:-1" not able to overwrited