Makes it possible to use template scripting in user menu items

This is helpful if the language item has different values based on option settings, e.g. if a certain part of the language item is only visible if a related option is enabled.