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!!
How do I avoid making Core changes in english.php?
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: How do I avoid making Core changes in english.php?
Copy english.php to templates/override/includes/languages/ (assuming "override" is the template you have selected). Then make your changes
//Daniel
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
-
jcarndt
- Member
- Posts: 29
- Joined: Tue Mar 09, 2021 7:12 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 4 times
Re: How do I avoid making Core changes in english.php?
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
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
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: How do I avoid making Core changes in english.php?
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
I keep a list of overridden files, and search for those in the update-packages, to know when I must carry over changes.
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide