A Translation-based approach to Contingent Planning