i'll try to ellaborate a bit further.
you see, i have a system, where user can choose his/her prefered interface language. deffinitions for words are stored in flat text files. for example, the word for "password" is stored in english lang file like this:
define ("LangPassword", "Password");
now, every page checks for user's preference and includes the required lang file. when i have a input field for password, let's say, then i have to just call <?= LangPassword ?> in the page code, and the correct title in the right language will be displaied.
this works fine for static pages. but when i have a dynamic page - a tree of available modules, for example - i want to store the variable name in the database, call it, and display its value. this way even dynamic pages will be in the user's language of choice.
hopefully this will help a bit.
p.s. if you have an alternative idea, that doesn't require storing the variable name, please do share.