How to extend language file en.po
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
How to extend language file en.po
Hello,
I'm trying to overwrite the "en.po" file. I copy the file from the vendor, and paste it inside the path:
"packages\theme2\i18n\currency\en.po". But it didn't accept the translation from this file.
What did I do wrong?
I'm trying to overwrite the "en.po" file. I copy the file from the vendor, and paste it inside the path:
"packages\theme2\i18n\currency\en.po". But it didn't accept the translation from this file.
What did I do wrong?
Re: How to extend language file en.po
The .po files need to be compiled into the MO file format:
See here: https://aimeos.org/docs/latest/developer/translations/
Code: Select all
msgmft -o en.po en
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: How to extend language file en.po
executing this command "msgmft -o en.po en" returns this error message:
OS: windows
Code: Select all
'msgfmt' is not recognized as an internal or external command,
operable program or batch file.
Re: How to extend language file en.po
For Windows, you need the Cygwin environement with the Gettext tools installed.
Alternatively, you can add your translations to your ./config/shop.php file:
https://aimeos.org/docs/latest/laravel/ ... anslations
Alternatively, you can add your translations to your ./config/shop.php file:
https://aimeos.org/docs/latest/laravel/ ... anslations
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: How to extend language file en.po
thanks, I installed poedit program. It converts the .po file. It works.