Lookup Where Language Variables Are Used

Hello everyone,

I have a question about language variables. Occasionally, I like to tweak the wording on different areas of my site and use the language variables to do that. However, I always wonder if editing the text will affect just the area I am intending to change, or if it will affect other areas where the context might be different and therefore I wouldn’t want to make the edit.

So, my question is if there is a way for me to check if a certain variable is used in one place or in multiple places. And, if multiple places, if I could find out where so I can check each and make sure the edit will make sense before I make the change.

Thanks in advance for your help.


That's gonna be a challenge without something that will scan your site and build the references. Language variables are used in PHP as well as TPL files and sometimes they are a combination of variables. I.e. ($var1.“_”.$var2) or {($foo.bar.zing_$foo.bar.zang)}. So it's actually quite difficult to be 100% accurate in this.

I use TextCrawler almost everyday to search for language variables in the tpl files. I couldn't do my job without it. It tells me exactly what files are using the variable.


Thanks for the help guys. I was afraid there wasn't going to be an easy/accurate way to do this, but worth asking. It seems like I could get away with just searching the tpl files with a program like TextCrawler, but good to know that that can reside in the PHP files as well.