I think you have to set the ' CanonicalMediaName '. To get that name if you have the locale media name, you will have to get the list of canonical names, and the change them to locale names, and then when you find the one you want, assign that to the aforementioned property of the layout.