I have a website which uses CakePHP’s localization. The website text is hardcoded in Cake’s
__('') function in the Polish language and I have language files for English and Hungarian.
I’m trying to figure out a way to replace all the hardcoded polish strings in the
__('') functions with their english translation from the language files.
I’d like to do this in order to create content for my website in English and then later translate it, rather than creating it in Polish and then translating it.
I’ve read the documentation (https://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html) and found nothing. The CakePHP translator uses po/pot files. Any ideas?