Emulate language_attributes() for plugins.