In my website there are several english strings in the HTML and JS code ( NOT in the database ) and I need to translate these strings in others languages ( spanish, italian, etc ).
What is the best way to do that ?
I can save a cookie where there is the language but where can I put these translated strings ?
If you don't use a framework like, for instance, symfony2 (that have a component called translation) or Zend (that i'm sure will have some corrispective standalone "component"), a way for achive this is to keep a php file with key=> value pairs (or better, an array) and include that file onto your page. In that way, you could lookup everytime and, then, load the "right" labels and similar ...
Also, symfony2 translation component could be used as a standalone part so take a look if it could satisfy your needs.