Re: Re[2]: [PHP] How to do i18n better?

From: Date: Mon, 19 Apr 2010 14:28:14 +0000
Subject: Re: Re[2]: [PHP] How to do i18n better?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-304214@lists.php.net to get a copy of this message
On 19 April 2010 12:54, Andre Polykanine <andre@oire.org> wrote: > Hello Peter, > > Regarding the URL switching suggested by you and Michiel, how do I do > this if I have a rather complicated .htaccess file? For instance, a > blog entry URL is formed as follows: > http://oire.org/menelion/entry/190/ which is phisically > http://oire.org/oire.php?o=menelion&e=190 > If I need to insert the locale somewhere inhere, sorry, I just don't > know how to do that) Switch your url structure to something like /en/menelion/entry/190/ and map that to /oire.php?o=menelion&e=190&l=en You can still default to one language and leave the language bit out of that - but when switching to a language explicitly, having that as part of the url helps. Regards Peter -- <hype> WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 </hype>

« previous php.general (#304214) next »