RE: [DOC-NL] Nederlandse setlocale-vertalingen in PHP 4

[email protected] (Derick Rethans)
Newsgroups php.doc.nl
Message-ID <Pine.LNX.4.62.0703081444440.3587@localhost>
On Thu, 8 Mar 2007, Aäron van Geffen wrote:

> Hallo,
> 
> Ik sprak dan ook niet over de documentatie van de setlocale() functie,
> alswel de localisations van de functie zelf:
> 
> <?php
> setlocale(LC_ALL, 'nl_NL');
> echo date("l"); // geeft "Donderdag"
> echo date("F"); // geeft "Maart"
> ?>
> 
> Hopelijk is het zo duidelijker wat ik bedoel.

Niet helemaal, aangezien "date" helemaal geen rekening houd met locales, 
en alleen het Engelse "Thursday" en "March" toont.

strftime('%A %B');  toont wel de goede information:

<?php
setlocale(LC_ALL, 'nl_NL');
echo strftime("%A %B\n");
?>
donderdag maart

groeten,
Derick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.