4 ms·
Even if it's a small project the code is mediocre at best. For example, isn't there a library for PHP that handles internalization and why do internalization in
by amix 18y ago
Even if it's a small project the code is mediocre at best. For example, isn't there a library for PHP that handles internalization and why do internalization in both JavaScript and PHP (and no is only internalized in the JavaScript version...)
Lastly it's a really bad idea to determine language based on IP, a much safer way is to use the browser's language (ACCEPT_LANGUAGE header).