A generalization of the Liouville-Arnol'd theorem