#9322: Documentation/Welcome: automatically detect user's language ---------------------------+------------------------------ Reporter: dsjonny | Owner: nielx Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Documentation | Version: R1/Development Keywords: | Blocked By: Blocking: | Has a Patch: 0 Platform: All | ---------------------------+------------------------------ It would be fine if we open the documentation in the browser and the user's language page will be loaded. So; the page should be detect the browser's preferred language, and load the documentation for that language. Only this change need to make at the begining of the page: {{{ var language = window.navigator.userLanguage || window.navigator.language; var xmlhttp; var offLineWelcomePage = 'file:///boot/system/documentation/userguide/' + language + '/contents.html'; var onLineWelcomePage = 'http://cgit.haiku- os.org/haiku/plain/docs/userguide/' + language + '/contents.html'; }}} This change can be work in the local version, and in the online version too. In the offline version I have changed: /boot/home/config/settings/WebPositive/LoaderPages/UserGuide and /boot/home/config/settings/WebPositive/LoaderPages/Welcome at line 10. There maybe one problem: if there is no documentation available in the given language, the user may got problem. -- Ticket URL: <http://dev.haiku-os.org/ticket/9322> Haiku <http://dev.haiku-os.org> Haiku - the operating system.