multi language website link problems

hassan kalach asked on September 29, 2017 08:59

so i have a website that has a default language Arabic and now i have added the English version , so on the Arabic version the link have Arabic links like /الوزارة/رسالة-من-الوزير.aspx and thats great but in the English version the links have the same Arabic texts i need them to look in English not Arabic

Correct Answer

Matt Nield answered on September 29, 2017 10:33

Hi hassan, you're able to customise the alias based on the culture being used. The Setting page aliases documentation explains in more detail.

That allows the URLs to work, the next chanllenge is getting Kentico to render the correct link for the currently selected culture. For that, I think you're going to need a custom method. You'll need somethign similar to GetDocumentCultureUrls().Where(u => u.CultureCode == CMSContext.CurrentDocumentCulture.CodeName).Url to pull out the correct URL in your transfomations etc.

2 votesVote for this answer Unmark Correct answer

Recent Answers

Emily Dean answered on September 29, 2017 14:50 (last edited on October 2, 2017 08:52)

comment removed by admin

0 votesVote for this answer Mark as a Correct answer

hassan kalach answered on September 29, 2017 15:33

thank you Matt nield i will look it up

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.