From completeness of discrete translates to phaseless sampling of the short-time Fourier transform