FW: [PHP] Two languages
| From: | Fatih Ustundag | Date: | Tue, 31 Oct 2000 14:43:46 +0000 |
| Subject: | FW: [PHP] Two languages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22940@lists.php.net to get a copy of this message | ||
try this :
<?
if (language == "en") {
echo " English ";
} else
if (language == "ne") {
echo "Nederlands";
}
?>
-----Original Message-----
From: Ivanoff Jari [mailto:Jari.Ivanoff@autonova.se]
Sent: Tuesday, October 31, 2000 3:23 PM
To: 'PHP'
Subject: RE: [PHP] Two languages
> Well.. I am a *big* newbie, but I would try something similar to this
> instead:
> <?
> if (language == en) {
> printf(" English ");
> } else {
> printf("Nederlands");
> }
> ?>
>
> or like this:
>
> <?
> if (language == en) {
> printf(" English ");
> } else
> if (language == ne) {
> printf("Nederlands");
> }
> ?>
>
>
> With My Best Regards / Med Vänlig Hälsning
> Jari Ivanoff
> IS/IT
> Volvo Cars Uddevalla
> Phone/Tel: +46-(0)522-80671
> Fax: +46-(0)522-80427
> Pbx/Växel: +46-(0)522-80000
>
>
> -----Original Message-----
> From: Jan van Schaijk [SMTP:beethoven@hetnet.nl]
> Sent: den 30 oktober 2000 13:45
> 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