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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19 April 2010 12:54, Andre Polykanine <andre@xxxxxxxx> 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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux