PDA

View Full Version : phrasing a website



dtommy79
August 13th, 2008, 03:51 PM
Hi,

I'd like to store the most common phrases of my website in separate language files. how can I do that?

Thanks

Reiger
August 13th, 2008, 05:03 PM
Right inside your website code if you want to!



<style type="text/css">
.show { display: visible; }
.hide { display: none; }
</style>
[omitted code]
<div lang="en" class="hide">
A hornet is a kind of wasp.
</div>
<div lang="nl" class="show">
Een hoornaar is een soort wesp.
</div>


Include some JavaScript file which filters language based on preset preferences (Cookie!) by switching certain languages-sensitive tags to "hide" and others to "show" ...