There was a post in the old forum about overriding core text in English and since I figured out an “easy” way to do this, I figured I would post it here. There is a desire in our organization to customize some of the English messaging within the CMS. For example, instead of the message “Submit to Workflow”, we wanted it to say “Submit for Approval”. To do this, here is what I did:
- From the command line, run bin/concrete5 c5:config set concrete.misc.enable_translate_locale_base_locale true
- Create a messages.po file in \application\languages\en_US\LC_MESSAGES\ (create folders if they don’t exist)
- Enter translations in the following format:
msgid “Submit to Workflow”
msgstr “Submit for Approval”
(separate additional translations by line breaks)
- Download and install poedit
- Open messages.po in poedit and click compile to MO. Save the mo file in the same folder above
- Clear the cache in the CMS (System & Settings → Optimization → Clear cache)
As a result, anywhere in the CMS where a t(‘Submit to Workflow’) tag is being used, the text displayed for the end user will be ‘Submit for Approval’.
I hope this helps someone else who has a similar need!