Updated get_permalink to use get_translation