PHP recursive text substitution, like a simple macro or template system.

A simple function which translates strings by substituting keywords enclosed in braces – {{keyword}} – useful for language translations and multiple sites sharing the same code.