You are here: Re: How to make multilingual website? « PHP Programming Language « IT news, forums, messages
Re: How to make multilingual website?

Posted by Crispy Beef on 04/10/07 11:15

CAH wrote:
>> If people can't log in, _and_ have cookies switched off, how would your
>> server know who's who at their next visit? For sessions to work in a
>> helpful manner you'd still have to be able to retrieve some unique data
>> from the client identifying them at each new visit.
>> I don't think it's too much asked from visitors to allow cookies for
>> your domain if they want to enjoy the luxury of having their preferences
>> kept across visits.
>>
>
> But from what I read search engines ignore cookies, and at the
> same time I would like the users to be able to send links in there
> choice of language to there friends, so I would like this sort of url
> scheme.
>
>
> www.site.com/en/
> www.site.com/de/
> www.site.com/fr/
> ....
>
>
> But I don´t like the idea of having a lot of duplicate files, with
> the
> only difference being a reference to a specific column in my sql
> database. What to do? How do others solve these problems?

Why not have a look at the PHP gettext functions, they would surely help you
do exactly what you want to do?

http://uk2.php.net/manual/en/ref.gettext.php

Have a play with the language settings on www.php.net to see how it works.

Just a thought. ;)

Paul

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация