You're on the right track, use a translation pattern for this, use the DN you want to match as DN or pattern and the called party transformation mask as what you want to translate it to, adjust your CSS and partitions as necessary.
Pretty sure if you google you'll find many examples and even videos on how to configure a TP, which is quite simple, but you need good understanding of your dial plan, CSS and partitions.
HTH
java
if this helps, please rate