Computer Science Internationalization - Adaptive URL
A URL can consist of a Domain Name and a pathname. In the examples below x.y.z represents the Domain Name, the remainder being the pathname. My experience of the internet is that the pathname is usually written in English or more accurately ASCII. The below ASCII pathname represents a multi-page website in the form of a journey from home to a hotel in Korea. x.y.z/home/bus/airplane/korea/taxi/hotel Websites, such as Google, adapt the language of their text content according to the browser preferred display language (BL). This browser preferred language can be set by the user. Letʼs go one step further than Google and adapt the language of the URL pathname according to the BL. Here is the ASCII pathname rewritten into Chinese, Japanese and Korean. x.y.z/家/公共汽车/飞机/韩国/出租车/饭店 x.y.z/ホーム/バス/飛行機/韓国/タクシー/ホテル x.y.z/홈/버스/비행기/한국/택시/호텔 So, how do we implement these language adaptive URL parthnames? Firstly, we need to programmatically determine the BL. One way of achieving this is to examine the A...