One Page Multilingual Website using only CSS and PHP -


given simple static website homepage , 2 other pages, each containing text in 2 langages: english , dutch. contents should held in single php file per page:

<body> <menu id="en">   <ul>     <li>about</li>     <li>home</li>   </ul> </menu>  <menu id="nl">   <ul>     <li>over</li>     <li>thuis</li>   </ul> </menu>  <article id="en">      goodmorning [...] </article>  <article id="nl">      goedemorgen [...] </article> </body> 

the default can english, upon arrival english content shown, unless viewer chooses dutch language. once user clicks on language, system should "remember" choice sothat further links open in correct language. how set via php/css simple possible few lines code possible? if possible @ all? absolute , ultimate alternative , simplest way have multilingual website without setting entire (database driven dynamic) multilingual framework, way surpassing modest nature of wish).

the question doesn't entirely make sense. if you're using php, you're looking keep track of user's language on server side. typically done through session variables.

the alternative send both languages , use css , javascript replace values on client side depending on flag clicked.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -