Proposition for the language issue

As per our discussion yesterday, this is my proposal.
So with the variable REQUEST_URI i'm getting all the filename and querystring.

Let me know if you agree or might want to change it!

But I think using this method will be better in the futur because you only work with your file name... not http_referer.

Let me know what do you think about that :)
Seem to work great on my side!
New code.

Now it can handle multiple language
Merge pull request #115 from crochefort/patch-1

See the new code