Proper way to translate mshoplib/codes

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!
fehermichal
Posts: 1
Joined: 20 Mar 2018, 13:04

Proper way to translate mshoplib/codes

Post by fehermichal » 20 Mar 2018, 13:05

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

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

Re: Proper way to translate mshoplib/codes

Post by aimeos » 20 Mar 2018, 16:26

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:

Code: Select all

	'i18n' => array(
		// ...
		'mshop' => 'lib/custom/i18n',
	),
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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

michal.fehér
Posts: 44
Joined: 05 Feb 2018, 09:57

Re: Proper way to translate mshoplib/codes

Post by michal.fehér » 02 Apr 2018, 13:42

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
Snip20180402_1.png (14.55 KiB) Viewed 3678 times

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

Re: Proper way to translate mshoplib/codes

Post by aimeos » 03 Apr 2018, 07:52

If the strings aren't translated for SK yet, please translate them at Transifex:
https://www.transifex.com/aimeos/public/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

alababdiy
Posts: 39
Joined: 30 Apr 2023, 12:46

Re: Proper way to translate mshoplib/codes

Post by alababdiy » 15 Nov 2023, 11:11

Same problem here "stat:2" and "pay:-1" not able to overwrited

Post Reply