how to overwrite translation files for jobs

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!
akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

how to overwrite translation files for jobs

Post by akropivko » 27 Oct 2023, 13:32

Hi,
I'd like to overwrite translation files from vendor/aimeos/ai-controller-jobs/i18n.
What folder in my extention I should use to do this?
"aimeos/aimeos-laravel": "2023.10.x-dev",

thanks

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

Re: how to overwrite translation files for jobs

Post by aimeos » 30 Oct 2023, 11:47

Place the .po file in the "i18n" directory of your extension and generate the MO file in the same directory:
https://aimeos.org/docs/latest/develope ... s/#gettext
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

Re: how to overwrite translation files for jobs

Post by akropivko » 05 Nov 2023, 16:22

There are multiple i18n directories with .po files, such as:
  • vendor/aimeos/ai-controller-jobs/i18n/
  • vendor/aimeos/ai-client-html/i18n
  • vendor/aimeos/ai-client-html/i18n/code
  • ...
Should I use a single .po (and .mo) file in the "i18n" directory of my extension to override all of these files?

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

Re: how to overwrite translation files for jobs

Post by aimeos » 06 Nov 2023, 09:00

Yes, you need only one file which must contain all translations from all translation domains.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply