Joomla locales on Debian

I had a problem with Joomla running on a Debian server. I set the locale to nl_NL within Joomla but the dates still did not appear in Dutch (Like Friday, 20 October while I really wanted Vrijdag, 20 Oktober).

I was quite puzzled as on other machines (running other OS’es) this worked just fine. And Googling on this didn’t bring me much farther than setting “nl_NL” in the locale setting of Joomla should fix this (which in general it probably does).

Eventually I figured out that the locales did not appear in the /etc/locale.gen file

So I added:

nl_NL.UTF-8 UTF-8
nl_NL ISO-8859-1
nl_NL@euro ISO-8859-15

and ran local-gen

But this still did not fix it as when I used the following PHP script:

<?php
/* Set locale to Dutch */
setlocale(LC_ALL, ‘nl_NL’);

/* Output: vrijdag 22 december 1978 */
echo strftime(“%A %e %B %Y”, mktime(0, 0, 0, 12, 22, 1978));
?>

It ran fine on the command line but it still did not show the correct Dutch language within Joomla.

So I guessed that after adding locales you also should recompile Apache so I made a make distclean, ran a configure with my options and did a make and make install and tadaa now in Joomla also the proper Dutch language.

Gerelateerde posts:

  1. 0×80072EFD error
  2. Lene Marlin – Hope you’re happy
  3. David Gray: Friday I’m in love
  4. A Fine Frenzy: Whisper
  5. Waarom? Lontje!

U kunt reacties op dit bericht volgen via de RSS 2.0 feed. U kunt een bericht achterlaten, of een trackback geven op uw eigen site.

Geef een reactie

XHTML: U kunt deze tags gebruiken: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>