5. Multilingual Support

Create a default Welsh landing page

This video describes how to make a default landing page on your Info-Point in a language other than English. This trick is necessary as the menus will always default to the base language of English.

The following javascript code is used in this demonstration.

 

######Javascript##########

<script>
//This simple script replaces the current page with the target
//The page chosen here is the desired default landing page in Welsh
//There are several similar commands that could be used with little to choose between them
//window.location.href = "http://ip.lan/node/85?language=cy";
//would work just as well, but with subtle differences in the behavior of the back button.
//There is no need to invoke the additional complexity of jQuery in this case.

window.location.replace("http://ip.lan/node/85?language=cy");

</script>

 
00:00

Pages

Subscribe to 5.   Multilingual Support