Page 1 of 1

How do I avoid making Core changes in english.php?

Posted: Sun Jul 28, 2024 3:15 pm
by jcarndt
I would like to make changes to the following lines in english.php:

const ENTRY_COMMENTS = 'Anything we need to know?';
const ENTRY_COMMENTS_PLACEHOLDER = 'Comment here...';

What is the correct way to make those changes to english.php without actually making changes to the Core?

Thanks!!

Re: How do I avoid making Core changes in english.php?

Posted: Sun Jul 28, 2024 5:13 pm
by Kofod95
Copy english.php to templates/override/includes/languages/ (assuming "override" is the template you have selected). Then make your changes

//Daniel

Re: How do I avoid making Core changes in english.php?

Posted: Sun Jul 28, 2024 8:27 pm
by jcarndt
Thanks!! That is easy enough.

Should I copy the entire file, or just put the lines that I want to change? If I put the entire file, I will just have to compare to the core copy to the override copy with each upgrade?

Thanks,

Jim

Re: How do I avoid making Core changes in english.php?

Posted: Sun Jul 28, 2024 9:06 pm
by Kofod95
The entire file. Override tells the system to use that file instead of the original.
I keep a list of overridden files, and search for those in the update-packages, to know when I must carry over changes.

//Daniel

Re: How do I avoid making Core changes in english.php?

Posted: Sun Jul 28, 2024 9:14 pm
by jcarndt
Thanks again!!

Jim