Translate PO file for admin

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!
User avatar
AleksandarJovanovic
Posts: 26
Joined: 01 Jun 2022, 21:26

Translate PO file for admin

Post by AleksandarJovanovic » 09 Dec 2023, 16:54

Aimeos version 2023.10
Php: 8.1
Linux

Dear,
I try to translate po file to edit some word on serbian language.
I save that file in poeditor but nothing change in admin panel.
When i look in file sr.po the changes is saved.
Best regards, Alex.

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

Re: Translate PO file for admin

Post by aimeos » 10 Dec 2023, 10:49

PO files have to be compiled into MO files which are use for translation lookup:
https://aimeos.org/docs/latest/developer/translations/

If you want to fix a translation because it's wrong, then please do it in Transifex. Then, it will be available in all future releases:
https://app.transifex.com/aimeos/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AleksandarJovanovic
Posts: 26
Joined: 01 Jun 2022, 21:26

Re: Translate PO file for admin

Post by AleksandarJovanovic » 10 Dec 2023, 16:02

Dear,
I translete in poedit and save file than i compile in to .mo file and replace file. Butn nothing change on admin dasboard.
Did i miss something?

I read documentation and example of gettext and seems i doing well.
Screenshot is in attachments.
Alex
Attachments
Screenshot from 2023-12-10 16-58-31.png
Screenshot from 2023-12-10 16-58-31.png (142.15 KiB) Viewed 2924 times
Screenshot from 2023-12-10 16-58-57.png
Screenshot from 2023-12-10 16-58-57.png (182.64 KiB) Viewed 2924 times

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

Re: Translate PO file for admin

Post by aimeos » 12 Dec 2023, 12:32

The .po file and the compiled MO binary must be in the ./i18n/ directory of your own project-specific Aimeos extension, e.g. "./packages/myext/i18n/sr"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AleksandarJovanovic
Posts: 26
Joined: 01 Jun 2022, 21:26

Re: Translate PO file for admin

Post by AleksandarJovanovic » 15 Dec 2023, 18:33

Thanks, work like a charm 😇
Best regards

Post Reply