RE: [PHP] Two languages
| From: | Ivanoff Jari | Date: | Tue, 31 Oct 2000 13:23:08 +0000 |
| Subject: | RE: [PHP] Two languages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22930@lists.php.net to get a copy of this message | ||
> 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
>
>
>
>