Line temperatures and elemental abundances in H ii galaxies