Re: [PHP] How to do i18n better?

2010-04-20 Thread Per Jessen
Ashley Sheridan wrote: That's the check I did on the last site i worked on (vicestyle.com) The user agent string is checked for a language and the site uses that. If none is found (bearing in mind that there's no hard and fast rule about what can go into a UA string) then it defaults to

Re: [PHP] How to do i18n better?

2010-04-20 Thread Ashley Sheridan
On Tue, 2010-04-20 at 20:27 +0200, Per Jessen wrote: Ashley Sheridan wrote: That's the check I did on the last site i worked on (vicestyle.com) The user agent string is checked for a language and the site uses that. If none is found (bearing in mind that there's no hard and fast rule

Re: [PHP] How to do i18n better?

2010-04-20 Thread Per Jessen
Ashley Sheridan wrote: On Tue, 2010-04-20 at 20:27 +0200, Per Jessen wrote: Ashley Sheridan wrote: That's the check I did on the last site i worked on (vicestyle.com) The user agent string is checked for a language and the site uses that. If none is found (bearing in mind that there's

Re: [PHP] How to do i18n better?

2010-04-19 Thread Peter Lind
Consider checking out http://php.net/gettext - it's the set of functions in PHP for i18n. With regards to language switching, you should consider using a url hierarchy for it, instead of just serving all pages with changing content. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk

Re: [PHP] How to do i18n better?

2010-04-19 Thread Michiel Sikma
On 19 April 2010 00:55, Andre Polykanine an...@oire.org wrote: Now the i18n process is made as follows: we set a cookie on the site and depending on it we select the language to display the site in. We have three (currently) interface files: rus.lng, ukr.lng, and enu.lng (for English US).

Re: [PHP] How to do i18n better?

2010-04-19 Thread Per Jessen
Andre Polykanine wrote: etc. I know that PHP does support somehow exporting the strings into a .pod file. Maybe it would be better to do that? If so, how can I do it? Could you suggest me maybe a better solution than we currently have? For mostly dynamic messages or pages, I would take a

Re: [PHP] How to do i18n better?

2010-04-19 Thread Robert Cummings
Michiel Sikma wrote: On 19 April 2010 00:55, Andre Polykanine an...@oire.org wrote: Now the i18n process is made as follows: we set a cookie on the site and depending on it we select the language to display the site in. We have three (currently) interface files: rus.lng, ukr.lng, and enu.lng

Re: [PHP] How to do i18n better?

2010-04-19 Thread Peter Lind
On 19 April 2010 15:56, Robert Cummings rob...@interjinn.com wrote: Unless you have namespaces (and I can't remember if they completed namespaced based functions) then don't use something so commuon as a function named underscore :/ Cheers, Rob. You might want to have a look at

Re: [PHP] How to do i18n better?

2010-04-19 Thread Robert Cummings
Peter Lind wrote: On 19 April 2010 15:56, Robert Cummings rob...@interjinn.com wrote: Unless you have namespaces (and I can't remember if they completed namespaced based functions) then don't use something so commuon as a function named underscore :/ Cheers, Rob. You might want to have a

Re: [PHP] How to do i18n better?

2010-04-19 Thread Michiel Sikma
On 19 April 2010 15:56, Robert Cummings rob...@interjinn.com wrote: -snip- Unless you have namespaces (and I can't remember if they completed namespaced based functions) then don't use something so commuon as a function named underscore :/ Cheers, Rob. No, you're actually absolutely

Re: [PHP] How to do i18n better?

2010-04-19 Thread Jason Pruim
On Apr 18, 2010, at 6:55 PM, Andre Polykanine wrote: Hi everyone, I posted this in the PHP-i18n list, however got no answer so trying here). We are making a blog platform (http://oire.org/) which is provided in several languages (currently they are Russian, Ukrainian, and English). Now the

Re: [PHP] How to do i18n better?

2010-04-19 Thread Ashley Sheridan
On Mon, 2010-04-19 at 19:17 -0400, Jason Pruim wrote: On Apr 18, 2010, at 6:55 PM, Andre Polykanine wrote: Hi everyone, I posted this in the PHP-i18n list, however got no answer so trying here). We are making a blog platform (http://oire.org/) which is provided in several languages

Re: [PHP] How to do i18n better?

2010-04-19 Thread tedd
At 12:17 AM +0100 4/20/10, Ashley Sheridan wrote: Links within the site itself allow the user to change their language afterwards, and you could store that in a cookie to it remembers their choice. Thanks, Ash Ash: This is something I found interesting. http://php1.net/c/language-example/

Re: [PHP] How to do i18n better?

2010-04-18 Thread Robert Cummings
Andre Polykanine wrote: Hi everyone, I posted this in the PHP-i18n list, however got no answer so trying here). We are making a blog platform (http://oire.org/) which is provided in several languages (currently they are Russian, Ukrainian, and English). Now the i18n process is made as follows: