The World Health Organization has declared the swine flu outbreak a pandemic , and says up to two billion people may eventually be infected .