Translate the following sentence into Turkish.
Depending on the practice in that country, the death penalty was commuted to perpetual detention.
Ama o ülke adetleri gereği, ölüm cezası müebbet hapse çevrildi.