Re: localization folder for web site
| From: | Jason Pruim | Date: | Sat, 13 Sep 2008 18:25:06 +0000 |
| Subject: | Re: localization folder for web site | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280072@lists.php.net to get a copy of this message | ||
On Sep 13, 2008, at 2:01 PM, Maciek Sokolewicz wrote:
Alain R. wrote:You might also look at my recent thread "Regex Help" it was talking about that.. Not exactly what you are talking about, but I believe it has info that will help.so how can i do the same ? i mean to have 1 single PHP page and to localize, but to have the URI with /en, or /fr or /de ? i know how to localize the complete website i already done it, but what you told ?One would hope that unless it's a pretty small static site those1. don't top-post please 2. google "apache mod_rewrite", that way you can rewrite urls of the form www.example.org/de/whatever to www.example.org/whatever?lang=de or even stick the de part into an environment variable $_ENV['lang'] = 'de'"folders" actually map to the same place and generate pages in the required language. The reason it's in the URI and not URI agnostic is indeed so that search engines can index multiple languages if they want to. -Stut
- Tul --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php