Re: [PHP] changing language on fly

2002-05-14 Thread Yura

Here are two possible solutions:

1. 

2. Make link to "indexr.php?"

THank you for help =)) I just was too lazy=(

Youri

> You might want to use the format:
> 
>http://www.body-builders.org/index.php.en?links=1
>http://www.body-builders.org/index.php.ru?links=1
> 
> so that you can take advantage of Apache's mod_mime features, and not
> have to do so much complicated guesswork to determine when you are
> displaying in an alternate language (what if you had pages called
> taste.php and taster.php already - how would you make the first one
> russian?)
> 
> miguel
> 
> On Sat, 11 May 2002, Yura wrote:
> 
> > I'm looking for possibility to change language of my site on fly you
> > may take a look at http://body-builders.org and see yourself - now
> > when I press language button I can get to the main page in sertain
> > language but what I want it to do is if I'm for example at 'Links'
> > page and click on language button (or text link) I get to 'Links'
> > page on different language. It can be reached by changing one
> > charachter in the name of the file Let's say I'm on links page in
> > English:
> > 
> > http://www.body-builders.org/index.php?links=1
> > 
> > I want to go to russian page which would be:
> > 
> > http://www.body-builders.org/indexr.php?links=1
> > 
> > So I want do make a script to do this change
> > 
> > Youri
> > 
> > <>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
> > http://www.body-builders.org/
> > 
> > 
> > 
> 
> 
> 

<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org/


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




Re: [PHP] changing language on fly

2002-05-13 Thread Miguel Cruz

Well, you can do that, but it's a lot more work than the way I suggested
(since Apache's mod_mime is already set up to handle language extensions
like .en and .ru). For your way, you'd have to either set up a bunch of
softlinks (ln -s index.php indexr.php), or write some very tricky
mod_rewrite rules.

As I said, sticking a letter on the end without using any separator is a 
big pain because you never know if that letter is there to indicate a 
language, or if it's part of the base name of a file.

miguel

On Mon, 13 May 2002, Yura wrote:
> That seems more coplecated to me. What I wanna do is to make a script 
> to catch URL of my current page (lets say .../index.php?links=1) 
> split it with on two on the '?' mark save as array and after changing 
> first part 'index.php' to 'indexr.php' insert $array[0]+$array[1] 
> back into URL that what I was thinking to do but have NO IDEA how. 
> Any suggestion?
> 
> Youri
> 
> > You might want to use the format:
> > 
> >http://www.body-builders.org/index.php.en?links=1
> >http://www.body-builders.org/index.php.ru?links=1
> > 
> > so that you can take advantage of Apache's mod_mime features, and not
> > have to do so much complicated guesswork to determine when you are
> > displaying in an alternate language (what if you had pages called
> > taste.php and taster.php already - how would you make the first one
> > russian?)
> > 
> > miguel
> > 
> > On Sat, 11 May 2002, Yura wrote:
> > 
> > > I'm looking for possibility to change language of my site on fly you
> > > may take a look at http://body-builders.org and see yourself - now
> > > when I press language button I can get to the main page in sertain
> > > language but what I want it to do is if I'm for example at 'Links'
> > > page and click on language button (or text link) I get to 'Links'
> > > page on different language. It can be reached by changing one
> > > charachter in the name of the file Let's say I'm on links page in
> > > English:
> > > 
> > > http://www.body-builders.org/index.php?links=1
> > > 
> > > I want to go to russian page which would be:
> > > 
> > > http://www.body-builders.org/indexr.php?links=1
> > > 
> > > So I want do make a script to do this change
> > > 
> > > Youri
> > > 
> > > <>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
> > > http://www.body-builders.org/
> > > 
> > > 
> > > 
> > 
> > 
> > 
> 
> <>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
> http://www.body-builders.org/
> 
> 


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




Re: [PHP] changing language on fly

2002-05-13 Thread Yura

Hi Miguel,

That seems more coplecated to me. What I wanna do is to make a script 
to catch URL of my current page (lets say .../index.php?links=1) 
split it with on two on the '?' mark save as array and after changing 
first part 'index.php' to 'indexr.php' insert $array[0]+$array[1] 
back into URL that what I was thinking to do but have NO IDEA how. 
Any suggestion?

Youri

> You might want to use the format:
> 
>http://www.body-builders.org/index.php.en?links=1
>http://www.body-builders.org/index.php.ru?links=1
> 
> so that you can take advantage of Apache's mod_mime features, and not
> have to do so much complicated guesswork to determine when you are
> displaying in an alternate language (what if you had pages called
> taste.php and taster.php already - how would you make the first one
> russian?)
> 
> miguel
> 
> On Sat, 11 May 2002, Yura wrote:
> 
> > I'm looking for possibility to change language of my site on fly you
> > may take a look at http://body-builders.org and see yourself - now
> > when I press language button I can get to the main page in sertain
> > language but what I want it to do is if I'm for example at 'Links'
> > page and click on language button (or text link) I get to 'Links'
> > page on different language. It can be reached by changing one
> > charachter in the name of the file Let's say I'm on links page in
> > English:
> > 
> > http://www.body-builders.org/index.php?links=1
> > 
> > I want to go to russian page which would be:
> > 
> > http://www.body-builders.org/indexr.php?links=1
> > 
> > So I want do make a script to do this change
> > 
> > Youri
> > 
> > <>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
> > http://www.body-builders.org/
> > 
> > 
> > 
> 
> 
> 

<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org/


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




Re: [PHP] changing language on fly

2002-05-11 Thread Miguel Cruz

You might want to use the format:

   http://www.body-builders.org/index.php.en?links=1
   http://www.body-builders.org/index.php.ru?links=1

so that you can take advantage of Apache's mod_mime features, and not have 
to do so much complicated guesswork to determine when you are displaying 
in an alternate language (what if you had pages called taste.php and 
taster.php already - how would you make the first one russian?)

miguel

On Sat, 11 May 2002, Yura wrote:

> I'm looking for possibility to change language of my site on fly you 
> may take a look at http://body-builders.org and see yourself - now 
> when I press language button I can get to the main page in sertain 
> language but what I want it to do is if I'm for example at 'Links' 
> page and click on language button (or text link) I get to 'Links' 
> page on different language. It can be reached by changing one 
> charachter in the name of the file Let's say I'm on links page in 
> English:
> 
> http://www.body-builders.org/index.php?links=1
> 
> I want to go to russian page which would be:
> 
> http://www.body-builders.org/indexr.php?links=1
> 
> So I want do make a script to do this change
> 
> Youri
> 
> <>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
> http://www.body-builders.org/
> 
> 
> 


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




[PHP] changing language on fly

2002-05-11 Thread Yura

I'm looking for possibility to change language of my site on fly you 
may take a look at http://body-builders.org and see yourself - now 
when I press language button I can get to the main page in sertain 
language but what I want it to do is if I'm for example at 'Links' 
page and click on language button (or text link) I get to 'Links' 
page on different language. It can be reached by changing one 
charachter in the name of the file Let's say I'm on links page in 
English:

http://www.body-builders.org/index.php?links=1

I want to go to russian page which would be:

http://www.body-builders.org/indexr.php?links=1

So I want do make a script to do this change

Youri

<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org/


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