RE: [PHP] Two languages
| From: | Maxim Maletsky | Date: | Tue, 31 Oct 2000 01:44:41 +0000 |
| Subject: | RE: [PHP] Two languages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22807@lists.php.net to get a copy of this message | ||
Looks, too crazy to me... (you forgot the dollar sign $ , hope that was the
real problem and not just a typo in the mail)
make it :
<? if($language == 'en') { ?>
English ....
<? } elseif($language == 'ne') { ?>
Dutch ... (isn't it?)
<? } ?>
the variable $language should be passed somehow by your script to here.
You can also use Apache predefined variables (php.net) to get the browser
language automatically if you want to.
Cheers!
-----Original Message-----
From: Jan van Schaijk [mailto:beethoven@hetnet.nl]
Sent: Monday, October 30, 2000 9:45 PM
To: PHP
Subject: [PHP] Two languages
Hi,
I want to write a PHP file in two languages like this:
<? if (language==en): ?>
The english text
<? endif; if (language==ne): ?>
De nederlandse tekst
<? endif; ?>
Well, when I select language=en it is okay, but language=ne doesn't work!
How is that possible?
Jan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net