I am using a set of files with DEFINES's for different languages and translation phrases.
For items that are database driven I would like to be able to pull the $title of a catagory for example and then using that result (_CATAGORYNAME) have it pull the appropriate DEFINE result based on the users language selection.
Normally my DEFINE works like this:
DEFINE ("_CATAGORYNAME","Widgets");
echo "The catagory name is"._CATAGORYNAME."";
But what I want to be able to do is pull the _CATAGORYNAME dynamically from the database. The trick seems to be to have the define function do it's work first. All my attempts thus far lead to just seeing:
_CATAGORYNAME
🙁
Thanks for any help,
Jim