I understand. Thanks for response.
I am doing this in a MVC Web application (with references to the Kentico CMS DLLs) and and debugging it into a Controller class.
The following
LocalizationContext.CurrentCulture.CultureCode
is still returning en-GB even the culture code in the URL is fr-FR
Also the following Property
DocumentContext.CurrentDocument.AbsoluteURL
is "http://websitename.com/en-GB/Home" even the URL in the browser is http://localhost:8001/fr-FR