This is a (multiple allowed):
[ ] feature-discussion (RFC)
CakePHP Version: 3.4.11
I have some projects where I use empty translation files. My PO files my have some possible translations flagged fuzzy while the compliled MO files will be empty.
CakePHP loads the MO files then checks they're not empty or the PO file is loaded instead. This has 2 immediate consequences:
All of this wouldn't happen if there was at least one translation in the MO file. One translation up and the behavior changes significantly.
Is this the intended way to do it? If not I'm willing to work on it.
I would propose:
It makes sense to not load the po, regardless of the contents of the mo. Would you like to make that change? I really it should just check whether or not the mo file exists, if it does then it should not load the po at all
I'll make a PR soon.
Closing as a pull request is open now.
Most helpful comment
I'll make a PR soon.