Override phrases? (just in English to re-word things)
I have set the misc option 'enable_translate_locale_base_locale' to true in concrete.php so that I can translate en_US to en_US?
Then I created a messages.mo file with just that translation in it from en_US to en_US, and put it in application/languages/en_US/LC_MESSAGES
(attached messages.po and messages.mo files to this)
However the text is still the same. I also added a /site/ folder to application/languages so that I could access /dashboard/system/multilingual/translate_interface however I don't know what it supposed to go in the site folder, and that dashboard page just says "You have not created any multilingual content sections yet."
I welcome any other suggestions how to change that wording/phrasing (and others) more easily!
This is on concrete5.7.
That worked fine - I expect it may come up again that we want to change other bits of language though so it would be nice to know how to do that without overriding too many whole template files and functions just to change a phrase here & there.
What's more, I have the only 2FA package in the marketplace and it uses exactly that type of override without any issue.
It's here if you're curious:https://www.concrete5.org/marketplace/addons/two-factor-login-securi...
So, I still have these files:
In the controller.php I copied the public = $apiMethods line and changed email_validated to email_validated_custom, copied the email_validated() method but renamed it to email_validated_custom, and copied the v() method, renaming email_validated to email_validated_custom on the redirect line.
It does seem a pain to have to completely override any file at all really just to adjust the wording. I would have thought that as the text I wanted to change was wrapped in a t() function that there would be some easy way to override it through the translations system but I couldn't find one.