Replace translation not working

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!
kdim95
Advanced
Posts: 210
Joined: 26 Aug 2022, 12:17

Replace translation not working

Post by kdim95 » 17 Oct 2022, 08:36

Laravel framework version: 9.26.1
Aimeos Laravel version: * 2022.07.2
PHP Version: 8.1.9
Environment: Linux

I'm following the documentation for replacing translations here:
https://aimeos.org/docs/2022.x/develope ... anslations

I am attempting to replace the translations found in:
vendor/aimeos/aimeos-core/i18n/mshop/code/bg.po

I have placed the copied and modified .po file in my extension like so:
packages/my-extension/i18n/mshop/code/bg.po

And I have executed the required command in the directory:
msgfmt --statistics -c -o bg bg.po

This created a new "bg" file in the same directory.
But it's not working, apparently it's not using the new "bg" file I've generated.

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

Re: Replace translation not working

Post by aimeos » 18 Oct 2022, 06:26

The translations must be directly in the i18n directory of your extension (all in one file).
Where the translations are looked up is defined in the "i18n" section of the manifest.php file in your extension.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kdim95
Advanced
Posts: 210
Joined: 26 Aug 2022, 12:17

Re: Replace translation not working

Post by kdim95 » 18 Oct 2022, 08:14

Thank you, it works now

Post Reply