Original: When the glass is broken, ammonia and hydrogen sulfide gases, both of which have a powerful unpleasant smell, are released from the solution.
Simplified: When the ampoule is broken, ammonia and hydrogen sulfide gases are released from the solution.