Page 1 of 1

Proper way to translate mshoplib/codes

Posted: 20 Mar 2018, 13:05
by fehermichal
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

Re: Proper way to translate mshoplib/codes

Posted: 20 Mar 2018, 16:26
by aimeos
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

Re: Proper way to translate mshoplib/codes

Posted: 02 Apr 2018, 13:42
by michal.fehér
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.

Re: Proper way to translate mshoplib/codes

Posted: 03 Apr 2018, 07:52
by aimeos
If the strings aren't translated for SK yet, please translate them at Transifex:
https://www.transifex.com/aimeos/public/

Re: Proper way to translate mshoplib/codes

Posted: 15 Nov 2023, 11:11
by alababdiy
Same problem here "stat:2" and "pay:-1" not able to overwrited