Closed lachlan-00 closed 1 year ago
In Gettext v5, the translator was moved to a different package: https://github.com/php-gettext/Translator#translator-functions
excellent! thank you.
@oscarotero do you mind if i edit the wiki page there to provide that info as well?
No problem. Do you need permissions or something?
No, I was just asking out of politeness. Thanks for being so responsive to my queries and I'll update the wiki tomorrow. :)
I'm sorry i have to raise this issue but i don't really understand how this code works.
Ampache loads the MO and uses __() for translations using a helper function so migration should be simple?
I've looked at the the guide https://github.com/php-gettext/Gettext/wiki/Migration-from-v4-to-v5
But i can't see a function in the v5 code that functions the same as register()
I'm assuming all i need to do is load the MO file using Gettext\Loader\MoLoader and then register them somehow to the __() function but the wiki page is about loading and generating files and i don't really understand.