Forums / General Questions / Editing text in template file instead of language file

Editing text in template file instead of language file

Locked

Started by cochlear on 3 Jun 2008, 1:51 PM · Views: 1,724

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
3 Jun 2008, 1:51 PM
#1
cochlear avatar

cochlear

Zen Follower

Join Date:
Apr 2007
Location:
Sydney
Posts:
110
Plugin Contributions:
0

Editing text in template file instead of language file

When customising ZenCart I find myself frequenly changing texts directly in the template files (by replacing echo statements with real texts), instead of going to the language files. I guess I find it convenient this way. Is this bad practice though?

3 Jun 2008, 2:47 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Editing text in template file instead of language file

It might be depending upon what the code calls for as language variables might be called in several instances...

If you are utilizing the override system for your edits and there are no other issues you should be safe on an upgrade - albeit you will have more files to merge if there are updated files that you have edited versus one-two lang files

Zen-Venom Get Bitten

4 Jun 2008, 12:47 AM
#3
cochlear avatar

cochlear

Zen Follower

Join Date:
Apr 2007
Location:
Sydney
Posts:
110
Plugin Contributions:
0

Re: Editing text in template file instead of language file

kobra:

language variables might be called in several instances...
Thanks kobra, that's a good point that I didn't think of. :smile: