Trigonometric approximation and a general form of the Erdős-Turan inequality