You are here: Re: Writing multilingual site - how to effectively output strings depending on language « PHP Programming Language « IT news, forums, messages
Re: Writing multilingual site - how to effectively output strings depending on language

Posted by Tony Marston on 12/17/44 11:53

I personally put the text for each language into a separate file, then load
that file into memory at the start of each script. Each individual string is
therefore taken from memory. Because there is only one disk I/O for the
whole file, not each piece of text, it is very fast.

This is documented at
http://www.tonymarston.net/php-mysql/internationalisation.html

HTH

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

<romayankin@gmail.com> wrote in message
news:1152572356.909186.79170@h48g2000cwc.googlegroups.com...
>I plan to write site on a few language. For this reason I'm trying to
> find the most convenient way to output strings depending on their
> unique ID. As far as I plan to have pretty much strings translated, I'm
> concerned about the performance issues any of the approaches may have
> on the server. Perhaps someone has already solved that of kind of
> problems and can share his/her experience in this matter.
>

 

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

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