Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write mo files #60

Open
gemal opened this issue Sep 21, 2016 · 3 comments
Open

write mo files #60

gemal opened this issue Sep 21, 2016 · 3 comments
Milestone

Comments

@gemal
Copy link

gemal commented Sep 21, 2016

could be super if it could write mo files

perhaps get inspiration here:
https://github.com/phpmo/php.mo/blob/master/php-mo.php

@pherrymason pherrymason added this to the 5.1 milestone Feb 2, 2018
@Clemweb
Copy link
Contributor

Clemweb commented Mar 15, 2018

Hi,

Is there any way to generate the MO file in PHP ? I've try https://github.com/phpmo/php.mo/blob/master/php-mo.php and https://github.com/bigwhoop/potomoco

Nothing work, the mo file is generate but the translation on the page is wrong. And when I use PoEdit it works....

Thx !

@pherrymason
Copy link
Owner

Well, I've never used mo files so have no idea how they work neither what's the best library out there.

@Clemweb
Copy link
Contributor

Clemweb commented Mar 16, 2018

Thx @raulferras

Finaly I've found this : https://github.com/oscarotero/Gettext and it works.

But I've found a bug in EntryFactory, the msgid_plural is missing so I've add this in line 56 👍

$entry->setMsgIdPlural($entryArray['msgid_plural']);

You confirm ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants