Hello there!

I've been programming for quite a few years now, but only just recently got to write a few web pages. Never been into that, because I somehow find it very filthy (or well, just how it used to be back in late 90s when I first started with programming). Maybe there are some clever frameworks that handle this for you, but I just can't seem to figure out the "best" way to localize a website.

Naturally, I'm very lazy so I made localization files and I'm using variables for all texts and storing the language selection in a cookie (don't need sessions, there is no other settings or login w/e). But as you would expect, I'd eventually run into complications with formating the site. Is it best to just have separated files for every language selection? I'd imagine that is very tedious and lengthy to update/change.

Thanks for your answers.