Re: Questions about multi-lingual web site
| From: | n0n4m3d | Date: | Sun, 15 Dec 2002 06:35:40 +0000 |
| Subject: | Re: Questions about multi-lingual web site | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-377@lists.php.net to get a copy of this message | ||
You can make a query only in the 1st page load.
Not in every pageload...
And you can make your uor template engines... prepared with the
miltilanguage purpose...
Register an Array array of your result
IF (!$_SESSION[$strings]) {
session_start();
$_SESSION[$strings] = mysql_fetch_array($result);
}
echo "<HR><PRE>\n";
print_r($_SESSION);
echo "</PRE><HR>\n";
"William Lam" <william@zenon.com.hk> escreveu na mensagem
news:20021206045400.6521.qmail@pb1.pair.com...
> Hi all.
>
> I've just got a project that develop a Traditonal Chinese (Big5) &
> Simplified Chinese (GB) web site.
>
> When I was working with multi-lingual web site, I used to stored every
> single string in the database and load it on each page. It's very slow.
>
> Is there a better method to do that?? Also any tutorial / article
available
> online??
>
> I've heard people to sue gettext to do it. I'm planning to use Smarty with
> my application, how should I work together?
>
> I'll be using PHP 4.23 with MySQL
>
> Thanks,
>
> William Lam
> Solution Specialist
> Zenon Consulting